Modifier and Type | Method and Description |
---|---|
String |
getShutdownHook()
Gets the shutdown hook.
|
String |
getStartupHook()
Gets the startup hook class name.
|
void |
setShutdownHook(String className)
Sets the value of the shutdownHook property.
|
void |
setStartupHook(String className)
Sets the start up hook.
|
void setStartupHook(String className) throws ConfigException
This is the class name of a class that implements the interface com.pushtechnology.diffusion.api.publisher.ServerStartupHook. The method serverStarting will be called when the server is starting, this is called before the loading of the publishers.
If not specified then no startup hook will be called.
className
- the startup hook class nameConfigException
- if unable to set the property.String getStartupHook()
void setShutdownHook(String className) throws ConfigException
This is the class name of a class that implements the interface com.pushtechnology.diffusion.api.publisher.ServerShutdownHook. The method serverStopping will be called when the server is stopping.
If not specified then no shutdown hook will be called.
className
- the shutdown hook class nameConfigException
- if unable to set the propertyString getShutdownHook()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.