Package org.tanukisoftware.wrapper.event
Class WrapperServiceActionEvent
java.lang.Object
java.util.EventObject
org.tanukisoftware.wrapper.event.WrapperEvent
org.tanukisoftware.wrapper.event.WrapperServiceEvent
org.tanukisoftware.wrapper.event.WrapperServiceActionEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WrapperServicePauseEvent
,WrapperServiceResumeEvent
WrapperServicePauseResumeEvents are used to notify the listener that the Wrapper
is requesting that the Java application be paused or resumed. This does not
mean that it should exit, only that it should internally go into an idle state.
See the wrapper.pausable and wrapper.pausable.stop_jvm properties for more
information.
- Since:
- Wrapper 3.5.0
- Author:
- Tanuki Software Development Team <support@tanukisoftware.com>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Action result of an event command's block timeout expired.static final int
Action result of a command from a command file.static final int
Action result of a deadlock being detected.static final int
Action result of a configured filter being fired.static final int
Action result of a matched exit code.static final int
Action result of a signal.static final int
Action result of a configured timer being fired.static final int
Action resulted from the Windows Service Manager.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperServiceActionEvent
(int actionSourceCode) Creates a new WrapperServiceActionEvent. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Source Code describing where the event originated.Returns the Source Code name.static String
getSourceCodeName
(int actionSourceCode) Returns the name of the specified Source Code.toString()
Returns a string representation of the event.Methods inherited from class org.tanukisoftware.wrapper.event.WrapperServiceEvent
getFlags
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
SOURCE_CODE_FILTER
public static final int SOURCE_CODE_FILTERAction result of a configured filter being fired. See the wrapper.filter.action.<n> property.- See Also:
-
SOURCE_CODE_COMMANDFILE
public static final int SOURCE_CODE_COMMANDFILEAction result of a command from a command file. See the wrapper.commandfile property.- See Also:
-
SOURCE_CODE_WINDOWS_SERVICE_MANAGER
public static final int SOURCE_CODE_WINDOWS_SERVICE_MANAGERAction resulted from the Windows Service Manager. This can happen from a number of sources including the command line, Service Control Panel, etc.- See Also:
-
SOURCE_CODE_ON_EXIT
public static final int SOURCE_CODE_ON_EXITAction result of a matched exit code. See the wrapper.on_exit.<n> property.- See Also:
-
SOURCE_CODE_SIGNAL
public static final int SOURCE_CODE_SIGNALAction result of a signal. See the wrapper.on_exit.<n> property.- See Also:
-
SOURCE_CODE_DEADLOCK
public static final int SOURCE_CODE_DEADLOCKAction result of a deadlock being detected. See the wrapper.check.deadlock.action property.- See Also:
-
SOURCE_CODE_TIMER
public static final int SOURCE_CODE_TIMERAction result of a configured timer being fired. See the wrapper.timer.<n>.action property.- See Also:
-
SOURCE_CODE_COMMAND_BLOCK_TIMEOUT
public static final int SOURCE_CODE_COMMAND_BLOCK_TIMEOUTAction result of an event command's block timeout expired. See the wrapper.event.<event_name>.command.block.action property.- See Also:
-
-
Constructor Details
-
WrapperServiceActionEvent
public WrapperServiceActionEvent(int actionSourceCode) Creates a new WrapperServiceActionEvent.- Parameters:
actionSourceCode
- Source Code specifying where the action originated.
-
-
Method Details
-
getSourceCodeName
Returns the name of the specified Source Code.- Parameters:
actionSourceCode
- The Source Code whose name is being requested.- Returns:
- The name of the Source Code.
-
getSourceCode
public int getSourceCode()Returns the Source Code describing where the event originated.- Returns:
- The Source Code.
-
getSourceCodeName
Returns the Source Code name.- Returns:
- The Source Code name.
-
toString
Returns a string representation of the event.- Overrides:
toString
in classEventObject
- Returns:
- A string representation of the event.
-