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_PENDINGRUNNING, 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, waitForStatusprotected static final String DAEMON_NAME
protected static final String LOG4J_CATEGORY
protected void onInit()
throws IllegalStateException
onInit
onInit in class AbstractServiceDaemonIllegalStateException - if any.protected void onStart()
onStart
onStart in class AbstractServiceDaemonprotected void onStop()
onStop
onStop in class AbstractServiceDaemonprotected void onPause()
onPause
onPause in class AbstractServiceDaemonprotected void onResume()
onResume
onResume in class AbstractServiceDaemonpublic 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 © 2022. All rights reserved.