org.apache.uima.ducc.rm.event
Class ResourceManagerEventListener

java.lang.Object
  extended by org.apache.uima.ducc.rm.event.ResourceManagerEventListener
All Implemented Interfaces:
SchedConstants, org.apache.uima.ducc.transport.event.delegate.DuccEventDelegateListener

public class ResourceManagerEventListener
extends Object
implements org.apache.uima.ducc.transport.event.delegate.DuccEventDelegateListener, SchedConstants


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.uima.ducc.rm.scheduler.SchedConstants
SchedConstants.EvictionPolicy, SchedConstants.Policy
 
Field Summary
 
Fields inherited from interface org.apache.uima.ducc.rm.scheduler.SchedConstants
COMPONENT_NAME, DEFAULT_INIT_STABILITY_COUNT, DEFAULT_INSTANCES, DEFAULT_MAX_INSTANCES, DEFAULT_MAX_PROCESSES, DEFAULT_NODE_METRICS_RATE, DEFAULT_PRIORITY, DEFAULT_PROCESSES, DEFAULT_SCHEDULING_RATE, DEFAULT_SCHEDULING_RATIO, DEFAULT_SHARE_WEIGHT, DEFAULT_STABILITY_COUNT
 
Constructor Summary
ResourceManagerEventListener(ResourceManager rm)
           
 
Method Summary
 org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher getEventDispatcher()
           
 String getTargetEndpoint()
           
 void onNodeInventoryUpdateEvent(org.apache.uima.ducc.transport.event.NodeInventoryUpdateDuccEvent duccEvent)
           
 void onNodeMetricsEvent(org.apache.uima.ducc.transport.event.NodeMetricsUpdateDuccEvent duccEvent)
          Receives NodeMetricsUpdateDuccEvent events from transport.
 void onOrchestratedAbbreviatedStateUpdateEvent(org.apache.uima.ducc.transport.event.OrchestratorAbbreviatedStateDuccEvent duccEvent)
          Receives OrchestratedAbbreviatedDuccEvent events from transport.
 void onOrchestratorStateUpdateEvent(org.apache.uima.ducc.transport.event.OrchestratorStateDuccEvent duccEvent)
          Receives OrchestratorDuccEvent events from transport.
 void setDuccEventDispatcher(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher)
           
 void setEndpoint(String endpoint)
           
 void setEventDispatcher(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher)
           
 void setNodeStability(org.apache.uima.ducc.common.ANodeStability ns)
           
 void setTargetEndpoint(String targetEndpoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManagerEventListener

public ResourceManagerEventListener(ResourceManager rm)
Method Detail

getEventDispatcher

public org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher getEventDispatcher()

setEventDispatcher

public void setEventDispatcher(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher)

setNodeStability

public void setNodeStability(org.apache.uima.ducc.common.ANodeStability ns)

getTargetEndpoint

public String getTargetEndpoint()

setTargetEndpoint

public void setTargetEndpoint(String targetEndpoint)

setDuccEventDispatcher

public void setDuccEventDispatcher(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher)
Specified by:
setDuccEventDispatcher in interface org.apache.uima.ducc.transport.event.delegate.DuccEventDelegateListener

setEndpoint

public void setEndpoint(String endpoint)

onNodeMetricsEvent

public void onNodeMetricsEvent(@Body
                               org.apache.uima.ducc.transport.event.NodeMetricsUpdateDuccEvent duccEvent)
                        throws Exception
Receives NodeMetricsUpdateDuccEvent events from transport.

Parameters:
duccEvent -
Throws:
Exception

onNodeInventoryUpdateEvent

public void onNodeInventoryUpdateEvent(@Body
                                       org.apache.uima.ducc.transport.event.NodeInventoryUpdateDuccEvent duccEvent)
                                throws Exception
Throws:
Exception

onOrchestratorStateUpdateEvent

public void onOrchestratorStateUpdateEvent(@Body
                                           org.apache.uima.ducc.transport.event.OrchestratorStateDuccEvent duccEvent)
                                    throws Exception
Receives OrchestratorDuccEvent events from transport.

Parameters:
duccEvent -
Throws:
Exception

onOrchestratedAbbreviatedStateUpdateEvent

public void onOrchestratedAbbreviatedStateUpdateEvent(@Body
                                                      org.apache.uima.ducc.transport.event.OrchestratorAbbreviatedStateDuccEvent duccEvent)
                                               throws Exception
Receives OrchestratedAbbreviatedDuccEvent events from transport.

Parameters:
duccEvent -
Throws:
Exception


Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.