Package org.hcjf.io.process
Class ProcessDiscoveryService
- java.lang.Object
-
- org.hcjf.service.Service<ProcessDiscoveryConsumer>
-
- org.hcjf.io.process.ProcessDiscoveryService
-
public class ProcessDiscoveryService extends Service<ProcessDiscoveryConsumer>
- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.service.Service
Service.RunnableWrapperComparator, Service.ShutdownStage, Service.StaticServiceThread, Service.ThreadPoolAgent, Service.ThreadPoolAgentMBean
-
-
Field Summary
-
Fields inherited from class org.hcjf.service.Service
SERVICE_LOG_TAG
-
-
Method Summary
Modifier and Type Method Description static ProcessDiscoveryServicegetInstance()protected voidinit()This method will be called immediately after of the execution of the service's constructor methodvoidregisterConsumer(ProcessDiscoveryConsumer consumer)This method register the consumer in the service.protected voidshutdown(Service.ShutdownStage stage)This method will be called for the global shutdown process in each stage.voidunregisterConsumer(ProcessDiscoveryConsumer consumer)Unregister a specific consumer.-
Methods inherited from class org.hcjf.service.Service
call, call, fork, fork, fork, fork, getPriority, getServiceName, run, run, shutdownExecutor, systemShutdown
-
-
-
-
Method Detail
-
init
protected void init()
Description copied from class:ServiceThis method will be called immediately after of the execution of the service's constructor method- Overrides:
initin classService<ProcessDiscoveryConsumer>
-
getInstance
public static ProcessDiscoveryService getInstance()
-
registerConsumer
public void registerConsumer(ProcessDiscoveryConsumer consumer)
Description copied from class:ServiceThis method register the consumer in the service.- Specified by:
registerConsumerin classService<ProcessDiscoveryConsumer>- Parameters:
consumer- Object with the logic to consume the service.
-
unregisterConsumer
public void unregisterConsumer(ProcessDiscoveryConsumer consumer)
Description copied from class:ServiceUnregister a specific consumer.- Specified by:
unregisterConsumerin classService<ProcessDiscoveryConsumer>- Parameters:
consumer- Consumer to unregister.
-
shutdown
protected void shutdown(Service.ShutdownStage stage)
Description copied from class:ServiceThis method will be called for the global shutdown process in each stage.- Overrides:
shutdownin classService<ProcessDiscoveryConsumer>- Parameters:
stage- Shutdown stage.
-
-