public class Discovery extends AbstractServiceDaemon
Modifier and Type | Field and Description |
---|---|
protected static String |
DAEMON_NAME |
protected static String |
LOG4J_CATEGORY |
PAUSE_PENDING, PAUSED, RESUME_PENDING
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
Constructor and Description |
---|
Discovery()
Constructs a new discovery instance.
|
Modifier and Type | Method and Description |
---|---|
static String |
getLoggingCategory() |
void |
handleDiscoveryConfigurationChanged(IEvent event)
handleDiscoveryConfigurationChanged
|
void |
handleDiscoveryPause(IEvent event)
handleDiscoveryPause
|
void |
handleDiscoveryResume(IEvent event)
handleDiscoveryResume
|
protected void |
onInit()
onInit
|
protected void |
onPause()
onPause
|
protected void |
onResume()
onResume
|
protected void |
onStart()
onStart
|
protected void |
onStop()
onStop
|
void |
reloadDaemonConfig(IEvent e)
reloadDaemonConfig
|
void |
setDiscoveryFactory(DiscoveryConfigFactory discoveryFactory) |
void |
setDiscoveryTaskExecutor(DiscoveryTaskExecutor discoveryTaskExecutor) |
void |
setEventForwarder(EventForwarder eventForwarder) |
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
protected static final String DAEMON_NAME
protected static final String LOG4J_CATEGORY
protected void onInit() throws IllegalStateException
onInit
onInit
in class AbstractServiceDaemon
IllegalStateException
- if any.protected void onStart()
onStart
onStart
in class AbstractServiceDaemon
protected void onStop()
onStop
onStop
in class AbstractServiceDaemon
protected void onPause()
onPause
onPause
in class AbstractServiceDaemon
protected void onResume()
onResume
onResume
in class AbstractServiceDaemon
public void handleDiscoveryConfigurationChanged(IEvent event)
handleDiscoveryConfigurationChanged
event
- a IEvent
object.public void reloadDaemonConfig(IEvent e)
reloadDaemonConfig
e
- a IEvent
object.public void handleDiscoveryResume(IEvent event)
handleDiscoveryResume
event
- a IEvent
object.public void handleDiscoveryPause(IEvent event)
handleDiscoveryPause
event
- a IEvent
object.public static String getLoggingCategory()
public void setEventForwarder(EventForwarder eventForwarder)
public void setDiscoveryFactory(DiscoveryConfigFactory discoveryFactory)
public void setDiscoveryTaskExecutor(DiscoveryTaskExecutor discoveryTaskExecutor)
Copyright © 2021. All rights reserved.