public class ResourceManagerEventListener extends Object implements org.apache.uima.ducc.transport.event.delegate.DuccEventDelegateListener, SchedConstants
SchedConstants.EvictionPolicy, SchedConstants.PolicyCOMPONENT_NAME, DEFAULT_INIT_STABILITY_COUNT, DEFAULT_INSTANCES, DEFAULT_MAX_INSTANCES, DEFAULT_MAX_PROCESSES, DEFAULT_NODE_METRICS_RATE, DEFAULT_OR_PUBLISH_RATE, DEFAULT_PRIORITY, DEFAULT_PROCESSES, DEFAULT_RM_PUBLISHING_SLOP, DEFAULT_SCHEDULING_RATE, DEFAULT_SCHEDULING_RATIO, DEFAULT_SHARE_WEIGHT, DEFAULT_STABILITY_COUNT| Constructor and Description |
|---|
ResourceManagerEventListener(ResourceManager rm) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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) |
public ResourceManagerEventListener(ResourceManager rm)
public org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher getEventDispatcher()
public void setEventDispatcher(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher)
public void setNodeStability(org.apache.uima.ducc.common.ANodeStability ns)
public String getTargetEndpoint()
public void setTargetEndpoint(String targetEndpoint)
public void setDuccEventDispatcher(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher)
setDuccEventDispatcher in interface org.apache.uima.ducc.transport.event.delegate.DuccEventDelegateListenerpublic void setEndpoint(String endpoint)
public void onNodeMetricsEvent(@Body
org.apache.uima.ducc.transport.event.NodeMetricsUpdateDuccEvent duccEvent)
throws Exception
NodeMetricsUpdateDuccEvent events from transport.duccEvent - Exceptionpublic void onNodeInventoryUpdateEvent(@Body
org.apache.uima.ducc.transport.event.NodeInventoryUpdateDuccEvent duccEvent)
throws Exception
ExceptionCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.