public class ShutdownListener extends Object
This listens for the RHQ server's shutdown notification and when it hears it, will start shutting down RHQ components that need to clean up.
This session bean will depend on every over session bean in the deployment. Its class name is processed by the org.rhq.enterprise.startup.deployment.RhqShutdownDependenciesProcessor which is installed by the RHQ Startup Subsystem. This is completely AS7 specific and is a work around AS7 shutting down session beans in parallel.
DO NOT CHANGE THIS CLASS FULLY QUALIFIED NAME org.rhq.enterprise.server.core.ShutdownListener or make the change in the DUP accordingly.
| Constructor and Description |
|---|
ShutdownListener() |
| Modifier and Type | Method and Description |
|---|---|
File |
getShutdownTimeLogFile()
This is the file that the
ShutdownListener will write to when it logs
the last time the server was shutdown. |
void |
handleNotification()
This is called when the shutdown notification is received from the JBoss server.
|
public void handleNotification()
public File getShutdownTimeLogFile() throws Exception
ShutdownListener will write to when it logs
the last time the server was shutdown.ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.