org.tanukisoftware.wrapper.event
Class WrapperServiceActionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.tanukisoftware.wrapper.event.WrapperEvent
          extended by org.tanukisoftware.wrapper.event.WrapperServiceEvent
              extended by org.tanukisoftware.wrapper.event.WrapperServiceActionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WrapperServicePauseEvent, WrapperServiceResumeEvent

public abstract class WrapperServiceActionEvent
extends WrapperServiceEvent

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:
Leif Mortenson
See Also:
Serialized Form

Field Summary
static int SOURCE_CODE_COMMAND_BLOCK_TIMEOUT
          Action result of an event command's block timeout expired.
static int SOURCE_CODE_COMMANDFILE
          Action result of a command from a command file.
static int SOURCE_CODE_FILTER
          Action result of a configured filter being fired.
static int SOURCE_CODE_TIMER
          Action result of a configured timer being fired.
static int SOURCE_CODE_WINDOWS_SERVICE_MANAGER
          Action resulted from the Windows Service Manager.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WrapperServiceActionEvent(int sourceCode)
          Creates a new WrapperServiceActionEvent.
 
Method Summary
 int getSourceCode()
          Returns the Source Code.
 String 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOURCE_CODE_TIMER

public static final int SOURCE_CODE_TIMER
Action result of a configured timer being fired. See wrapper.timer..action.

See Also:
Constant Field Values

SOURCE_CODE_FILTER

public static final int SOURCE_CODE_FILTER
Action result of a configured filter being fired. See wrapper.filter.action..

See Also:
Constant Field Values

SOURCE_CODE_COMMANDFILE

public static final int SOURCE_CODE_COMMANDFILE
Action result of a command from a command file. See wrapper.commandfile.

See Also:
Constant Field Values

SOURCE_CODE_COMMAND_BLOCK_TIMEOUT

public static final int SOURCE_CODE_COMMAND_BLOCK_TIMEOUT
Action result of an event command's block timeout expired. See wrapper.event..command.block.action.

See Also:
Constant Field Values

SOURCE_CODE_WINDOWS_SERVICE_MANAGER

public static final int SOURCE_CODE_WINDOWS_SERVICE_MANAGER
Action resulted from the Windows Service Manager. This can happen from a number of sources including the command line, Service Control Panel, etc.

See Also:
Constant Field Values
Constructor Detail

WrapperServiceActionEvent

public WrapperServiceActionEvent(int sourceCode)
Creates a new WrapperServiceActionEvent.

Parameters:
sourceCode - Source Code specifying where the action originated.
Method Detail

getSourceCode

public int getSourceCode()
Returns the Source Code.

Returns:
The Source Code.

toString

public String toString()
Returns a string representation of the event.

Overrides:
toString in class EventObject
Returns:
A string representation of the event.


Copyright 1999, 2010 Tanuki Software Inc., All Rights Reserved.