ext.sulis.service
Class StandardPremiumEventService

java.lang.Object
  extended by wt.services.StandardManager
      extended by ext.sulis.service.StandardPremiumEventService
All Implemented Interfaces:
PremiumEventService, java.io.Serializable, wt.fc.NetFactor, wt.method.RemoteAccess, wt.services.Manager

public class StandardPremiumEventService
extends wt.services.StandardManager
implements PremiumEventService, wt.method.RemoteAccess

Provide a service to allow I*E tasks as event handlers with the option to veto aginst the event.

this service allows chaining of tasks, and can reread it's setup file on changes.

to register the service add the following line to site.xconf:

<Property name="wt.services.service.33" overridable="true" targetFile="codebase/wt.properties" value="ext.sulis.service.PremiumEventService/ext.sulis.service.StandardPremiumEventService"/>
the description of configuration is in $WT_HOME/codebase/ext/sulis/service/PremiumEventService.setup during debugging it is good to set
 wt.services.verbose=true
 wt.services.verboseEvents=true
 
to see what events get registered and dispatched.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardPremiumEventService()
           
 
Method Summary
static StandardPremiumEventService newStandardPremiumEventService()
           
protected  void performStartupProcess()
           
 java.lang.String processNotifyVetoableEvent(java.lang.Object event)
           
protected  long setup()
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getConceptualClassname, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardPremiumEventService

public StandardPremiumEventService()
Method Detail

setup

protected long setup()

performStartupProcess

protected void performStartupProcess()
                              throws wt.services.ManagerException
Overrides:
performStartupProcess in class wt.services.StandardManager
Throws:
wt.services.ManagerException

newStandardPremiumEventService

public static StandardPremiumEventService newStandardPremiumEventService()
                                                                  throws wt.util.WTException
Throws:
wt.util.WTException

processNotifyVetoableEvent

public java.lang.String processNotifyVetoableEvent(java.lang.Object event)
                                            throws wt.util.WTException,
                                                   java.rmi.RemoteException
Throws:
wt.util.WTException
java.rmi.RemoteException