Package org.apache.uima.ducc.rm.event

Examples of org.apache.uima.ducc.rm.event.ResourceManagerEventListener


        @Autowired DuccTransportConfiguration resourceManagerTransport;

        DuccLogger logger = DuccLogger.getLogger(this.getClass(), COMPONENT_NAME);
       
        public ResourceManagerEventListener resourceManagerDelegateListener(ResourceManagerComponent rm) {
            ResourceManagerEventListener jmel =  new ResourceManagerEventListener(rm);
            int nodeStability = SystemPropertyResolver.getIntProperty("ducc.rm.node.stability", DEFAULT_STABILITY_COUNT);
            int agentMetricsRate = SystemPropertyResolver.getIntProperty("ducc.agent.node.metrics.publish.rate", DEFAULT_NODE_METRICS_RATE);
            NodeStability ns = new NodeStability(rm, nodeStability, agentMetricsRate);           
            rm.setNodeStability(ns);
            jmel.setEndpoint(common.rmStateUpdateEndpoint);
            jmel.setNodeStability(ns);
            ns.start();
            return jmel;
        }
View Full Code Here


                rm.setTransportConfiguration(resourceManagerTransport.duccEventDispatcher(common.rmStateUpdateEndpoint, rm.getContext()),
                                             common.rmStateUpdateEndpoint);
       
                //  Instantiate Resource Manager delegate listener. This listener will receive
                //  incoming messages.
                ResourceManagerEventListener delegateListener = this.resourceManagerDelegateListener(rm);

                //  Inject a dispatcher into the listener in case it needs to send
                //  a message to another component.
                delegateListener.setDuccEventDispatcher(resourceManagerTransport.duccEventDispatcher(common.orchestratorStateUpdateEndpoint,rm.getContext()));

                //  Inject Camel Router that will generate state updates at regular intervals
                // jrc rm.getContext().addRoutes(this.routeBuilderForRMStateUpdate(rm, common.rmStateUpdateEndpoint, Integer.parseInt(common.rmStatePublishRate)));

                //  Inject Camel Router that will handle Job Manager state update messages
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.rm.event.ResourceManagerEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.