@Service @Named @RunLevel(value=20) public final class JMSServicePostDeploymentImpl extends AbstractServerService
Modifier and Type | Field and Description |
---|---|
private JMSServiceServerLifeCycleImpl |
dependency |
private ServerService |
dependencyOnDeploymentPostAdminServerService |
private JMSService |
jmsService |
CONNECTOR, EJB, JMS
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 |
---|
JMSServicePostDeploymentImpl() |
Modifier and Type | Method and Description |
---|---|
void |
halt()
Suspend right away no matter whether there are work pending or not
|
void |
start()
This method starts the service.
|
void |
stop()
Suspends the service.
|
getName, getVersion, postConstruct, preDestroy, stop
@Inject private JMSServiceServerLifeCycleImpl dependency
@Inject @Named(value="DeploymentPostAdminServerService") private ServerService dependencyOnDeploymentPostAdminServerService
private JMSService jmsService
public JMSServicePostDeploymentImpl() throws ManagementException, javax.jms.JMSException, ServiceFailureException
ManagementException
javax.jms.JMSException
ServiceFailureException
public void start() throws ServiceFailureException
ServerService
This method can be called more than once but not concurrently. Here are the conditions under which start() can be called:
start
in interface ServerService
start
in class AbstractServerService
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.public void stop()
stop
in interface ServerService
stop
in class AbstractServerService
public void halt()
halt
in interface ServerService
halt
in class AbstractServerService