org.apache.uima.ducc.rm
Class ResourceManagerComponent
java.lang.Object
org.apache.uima.ducc.common.component.AbstractDuccComponent
org.apache.uima.ducc.rm.ResourceManagerComponent
- All Implemented Interfaces:
- Runnable, Thread.UncaughtExceptionHandler, org.apache.uima.ducc.common.component.AbstractDuccComponentMBean, org.apache.uima.ducc.common.component.DuccComponent, org.apache.uima.ducc.common.component.DuccLifecycle, ResourceManager, SchedConstants
public class ResourceManagerComponent
- extends org.apache.uima.ducc.common.component.AbstractDuccComponent
- implements ResourceManager, SchedConstants, Runnable
| Nested classes/interfaces inherited from class org.apache.uima.ducc.common.component.AbstractDuccComponent |
org.apache.uima.ducc.common.component.AbstractDuccComponent.AdminEventProcessor, org.apache.uima.ducc.common.component.AbstractDuccComponent.ErrorProcessor |
| 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 |
| Methods inherited from class org.apache.uima.ducc.common.component.AbstractDuccComponent |
cleanup, enrichSystemPropertiesWith, getContext, getLogLevel, getProcessJmxUrl, handleAdminEvent, handleUncaughtException, isStopping, loadProperties, onDuccAdminKillEvent, setContext, setLogLevel, setLogLevel, start, startJmxAgent, stop, uncaughtException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceManagerComponent
public ResourceManagerComponent(org.apache.camel.CamelContext context)
getScheduler
public ISchedulerMain getScheduler()
isSchedulerReady
public boolean isSchedulerReady()
setNodeStability
public void setNodeStability(NodeStability ns)
getLogger
public org.apache.uima.ducc.common.utils.DuccLogger getLogger()
- Overrides:
getLogger in class org.apache.uima.ducc.common.component.AbstractDuccComponent
start
public void start(org.apache.uima.ducc.common.main.DuccService service,
String[] args)
throws Exception
- Overrides:
start in class org.apache.uima.ducc.common.component.AbstractDuccComponent
- Throws:
Exception
getState
public org.apache.uima.ducc.transport.event.RmStateDuccEvent getState()
throws Exception
- Specified by:
getState in interface ResourceManager
- Throws:
Exception
setTransportConfiguration
public void setTransportConfiguration(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher eventDispatcher,
String endpoint)
run
public void run()
- Specified by:
run in interface Runnable
runScheduler
public void runScheduler()
startStabilityTimer
protected void startStabilityTimer()
onOrchestratorStateUpdate
public void onOrchestratorStateUpdate(org.apache.uima.ducc.transport.event.common.DuccWorkMap map)
- Specified by:
onOrchestratorStateUpdate in interface ResourceManager
Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.