@Service @Named @RunLevel(value=10) public class ListenerService extends AbstractServerService
ListenerService.start() EnableListenersIfAdminChannelAbsentService.start() or EnableListenersService.start()There may be some period of delay between the call to createAndBind the listeners and the call to enableServerSockets the listeners depending on the setting of Server.ListenersBindEarly. At shutdown EnableListenersService.stop() or EnableListenersIfAdminChannelAbsentService.stop() stops the non-admin listeners and the ListenerService does nothing, i.e. as early as possible. These functions are also called by the ChannelService to dynamically start and stop the Channels. Ideally the logic from ChannelListenerManager would exist in the ListenerService itself. However, the services are a bit of a mess and need to iron out some issues in order to bring this logic up and move to the correct packages. This is introduced as a temporary stop gap in order to introduce the correct functionality without having to resolve several different issues with regard to services.
|Modifier and Type||Field and Description|
ACTIVATE_LATER, ADMIN, DISCOVERED, FAILED, FAILED_MIGRATABLE, FAILED_NOT_RESTARTABLE, FAILED_RESTARTING, FORCE_SHUTTING_DOWN, FORCE_SUSPENDING, RESTART_REQUIRED, RESUMING, RUNNING, SERVERSTATES, SHUTDOWN, SHUTDOWN_IN_PROCESS, SHUTDOWN_PENDING, SHUTTING_DOWN, SRVR_ACTIVATE_LATER, SRVR_ADMIN, SRVR_DISCOVERED, SRVR_FAILED, SRVR_FAILED_MIGRATABLE, SRVR_FAILED_NOT_RESTARTABLE, SRVR_FAILED_RESTARTING, SRVR_FORCE_SHUTTING_DOWN, SRVR_FORCE_SUSPENDING, SRVR_RESUMING, SRVR_RUNNING, SRVR_SHUTDOWN, SRVR_SHUTDOWN_IN_PROCESS, SRVR_SHUTDOWN_PENDING, SRVR_SHUTTING_DOWN, SRVR_STANDBY, SRVR_STARTING, SRVR_SUSPENDING, SRVR_UNKNOWN, STANDBY, STARTING, SUSPENDING, UNKNOWN
|Constructor and Description|
|Modifier and Type||Method and Description|
This method starts the service.
getName, getVersion, halt, postConstruct, preDestroy, stop, stop
@Inject private RuntimeAccess runtimeAccess
public void start() throws ServiceFailureException
This method can be called more than once but not concurrently. Here are the conditions under which start() can be called:
ServiceFailureException- service is unable to start due to an internal error condition. The service is not available if this exception is thrown. The service should cleanup its state before throwing this exception. No further callbacks will be issued after this exception is thrown.