wt.router
Class RoutingEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.router.RoutingEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EPMBaselineServiceEvent, RemoteContentUploadEvent, RevaultingEvent, URLRevaultingEvent

public class RoutingEvent
extends KeyedEvent
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  String a_methodName
           
private static String CLASSNAME
           
private  Serializable[] methodArgs
           
private static String RESOURCE
           
private  ScheduleHistory scheduleHistory
           
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
RoutingEvent(String eventType)
          

Supported API: false
RoutingEvent(String eventType, Object eventTarget)
          

Supported API: false
RoutingEvent(String eventType, Object eventTarget, String methodName, Serializable[] args, ScheduleHistory history)
          

Supported API: false
RoutingEvent(String eventType, WTKeyedMap eventTarget, String methodName, ScheduleHistory history)
          

Supported API: false
 
Method Summary
 Serializable[] getMethodArgs()
          Gets the value of the attribute: methodArgs.
 WTKeyedMap getTargets()
          Returns a WTKeyedMap with keys = event target objects and values = Serializable arrays of arguments.
protected  void initialize(String methodName, Serializable[] args, ScheduleHistory history)
           
 void setMethodArgs(Serializable[] a_MethodArgs)
          Sets the value of the attribute: methodArgs.
 KeyedEvent toMultiObjectEvent()
          Convert a single object event to a multi-object event with a target that is a WTKeyedMap containing 1 element with keys = target objects and values = Serializable[] of methodArgs and where all entries in the WTKeyedMap have the same methodName and ScheduleHistory values.
 KeyedEvent[] toSingleObjectEvents()
          Convert a multi-object event with a target that is a WTKeyedMap with keys = target objects and values = Serializable[] of methodArgs and where all entries in the WTKeyedMap have the same methodName and ScheduleHistory values to an array of single object KeyedEvents.
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

methodArgs

private Serializable[] methodArgs

scheduleHistory

private ScheduleHistory scheduleHistory

a_methodName

private String a_methodName
Constructor Detail

RoutingEvent

public RoutingEvent(String eventType)


Supported API: false

Parameters:
eventType -

RoutingEvent

public RoutingEvent(String eventType,
                    Object eventTarget)


Supported API: false

Parameters:
eventType -
eventTarget -

RoutingEvent

public RoutingEvent(String eventType,
                    Object eventTarget,
                    String methodName,
                    Serializable[] args,
                    ScheduleHistory history)


Supported API: false

Parameters:
eventType -
eventTarget -
methodName -
args -
history -

RoutingEvent

public RoutingEvent(String eventType,
                    WTKeyedMap eventTarget,
                    String methodName,
                    ScheduleHistory history)


Supported API: false

Parameters:
eventType -
eventTarget -
methodName -
history -
Method Detail

getMethodArgs

public Serializable[] getMethodArgs()
Gets the value of the attribute: methodArgs.

Supported API: false

Returns:
Serializable[]

setMethodArgs

public void setMethodArgs(Serializable[] a_MethodArgs)
Sets the value of the attribute: methodArgs.

Supported API: false

Parameters:
a_MethodArgs -

toMultiObjectEvent

public KeyedEvent toMultiObjectEvent()
Convert a single object event to a multi-object event with a target that is a WTKeyedMap containing 1 element with keys = target objects and values = Serializable[] of methodArgs and where all entries in the WTKeyedMap have the same methodName and ScheduleHistory values.

Supported API: false

Overrides:
toMultiObjectEvent in class KeyedEvent
Returns:
KeyedEvent

toSingleObjectEvents

public KeyedEvent[] toSingleObjectEvents()
                                  throws WTException
Convert a multi-object event with a target that is a WTKeyedMap with keys = target objects and values = Serializable[] of methodArgs and where all entries in the WTKeyedMap have the same methodName and ScheduleHistory values to an array of single object KeyedEvents.

Supported API: false

Overrides:
toSingleObjectEvents in class KeyedEvent
Returns:
KeyedEvent[]
Throws:
WTException

getTargets

public WTKeyedMap getTargets()
Returns a WTKeyedMap with keys = event target objects and values = Serializable arrays of arguments.

Supported API: false

Returns:
WTKeyedMap

initialize

protected void initialize(String methodName,
                          Serializable[] args,
                          ScheduleHistory history)
                   throws WTException
Throws:
WTException