Package org.tanukisoftware.wrapper.test
Class AbstractActionApp
- java.lang.Object
-
- org.tanukisoftware.wrapper.test.AbstractActionApp
-
- All Implemented Interfaces:
WrapperEventListener
- Direct Known Subclasses:
Main
public abstract class AbstractActionApp extends java.lang.Object implements WrapperEventListener
-
-
Field Summary
-
Fields inherited from interface org.tanukisoftware.wrapper.event.WrapperEventListener
EVENT_FLAG_CONTROL, EVENT_FLAG_CORE, EVENT_FLAG_LOGGING, EVENT_FLAG_REMOTE_CONTROL, EVENT_FLAG_SERVICE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractActionApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doAction(java.lang.String action)
void
fired(WrapperEvent event)
Called whenever a WrapperEvent is fired.protected boolean
ignoreControlEvents()
protected boolean
isNestedExit()
protected void
prepareSystemOutErr()
protected static void
printActions()
protected void
setChildParams(java.lang.String childCommand, boolean childDetached)
protected void
setConsoleTitle(java.lang.String consoleTitle)
protected void
setEventMask(long eventMask)
protected void
setServiceName(java.lang.String serviceName)
protected void
setSlowSeconds(int slowSeconds)
protected void
setSuspendSeconds(int suspendSeconds)
protected void
updateEventListener()
-
-
-
Method Detail
-
fired
public void fired(WrapperEvent event)
Called whenever a WrapperEvent is fired. The exact set of events that a listener will receive will depend on the mask supplied when WrapperManager.addWrapperEventListener was called to register the listener. Listener implementations should never assume that they will only receive events of a particular type. To assure that events added to future versions of the Wrapper do not cause problems with user code, events should always be tested with "if ( event instanceof {EventClass} )" before casting it to a specific event type.- Specified by:
fired
in interfaceWrapperEventListener
- Parameters:
event
- WrapperEvent which was fired.
-
ignoreControlEvents
protected boolean ignoreControlEvents()
-
isNestedExit
protected boolean isNestedExit()
-
setEventMask
protected void setEventMask(long eventMask)
-
setSlowSeconds
protected void setSlowSeconds(int slowSeconds)
-
setSuspendSeconds
protected void setSuspendSeconds(int suspendSeconds)
-
setServiceName
protected void setServiceName(java.lang.String serviceName)
-
setConsoleTitle
protected void setConsoleTitle(java.lang.String consoleTitle)
-
setChildParams
protected void setChildParams(java.lang.String childCommand, boolean childDetached)
-
prepareSystemOutErr
protected void prepareSystemOutErr()
-
updateEventListener
protected void updateEventListener()
-
doAction
protected boolean doAction(java.lang.String action)
-
printActions
protected static void printActions()
-
-