Interface HooksConfig
- All Superinterfaces:
- Config
Server user hooks configuration.
 
Values can not be changed once the server has started.
- Since:
- 4.4
- 
Method SummaryModifier and TypeMethodDescriptionGets the shutdown hook.Gets the startup hook class name.voidsetShutdownHook(String className) Sets the value of the shutdownHook property.voidsetStartupHook(String className) Sets the start up hook.
- 
Method Details- 
setStartupHookSets the start up hook.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. If not specified, no startup hook will be called. - Parameters:
- className- the startup hook class name
- Throws:
- ConfigException- if unable to set the property.
 
- 
getStartupHookString getStartupHook()Gets the startup hook class name.- Returns:
- startup hook class name or null if none specified.
 
- 
setShutdownHookSets the value of the shutdownHook property.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, no shutdown hook will be called. - Parameters:
- className- the shutdown hook class name
- Throws:
- ConfigException- if unable to set the property
 
- 
getShutdownHookString getShutdownHook()Gets the shutdown hook.- Returns:
- shutdown hook class name or null if none specified.
 
 
-