org.almendra.janet.ade.executor.handlers
Class CommandArrivedHandler

java.lang.Object
  extended by org.almendra.janet.ade.executor.AnchorHolder
      extended by org.almendra.janet.ade.executor.handlers.CommandArrivedHandler
All Implemented Interfaces:
IEventHandler

public class CommandArrivedHandler
extends AnchorHolder
implements IEventHandler


Field Summary
 
Fields inherited from class org.almendra.janet.ade.executor.AnchorHolder
anchor
 
Constructor Summary
protected CommandArrivedHandler()
          Creates a new CommandArrivedHandler object.
  CommandArrivedHandler(ExecutorAnchor anchor)
          Creates a new CommandArrivedHandler object.
 
Method Summary
 void occured(Event event)
          Any object that wants to be notified about the occurrence of an event must implement this callback method.
protected  boolean sendToLoadSharingAgent(CommandEnvelope env)
           
protected  void setLeastLoadedDestinationAgent(CommandEnvelope env, java.lang.String capabilityPath)
           
 
Methods inherited from class org.almendra.janet.ade.executor.AnchorHolder
getAnchor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandArrivedHandler

protected CommandArrivedHandler()
Creates a new CommandArrivedHandler object.


CommandArrivedHandler

public CommandArrivedHandler(ExecutorAnchor anchor)
Creates a new CommandArrivedHandler object.

Method Detail

occured

public void occured(Event event)
Description copied from interface: IEventHandler
Any object that wants to be notified about the occurrence of an event must implement this callback method.

Specified by:
occured in interface IEventHandler

sendToLoadSharingAgent

protected boolean sendToLoadSharingAgent(CommandEnvelope env)
Parameters:
env -
Returns:

setLeastLoadedDestinationAgent

protected void setLeastLoadedDestinationAgent(CommandEnvelope env,
                                              java.lang.String capabilityPath)
Parameters:
env -
path -