Package org.apache.uima.ducc.transport.agent

Examples of org.apache.uima.ducc.transport.agent.ProcessStateUpdate


      this.state = state;
      if ( pid == null ) {
        // Get the PID once and cache for future reference
        pid = Utils.getPID();
      }
      ProcessStateUpdate processUpdate = null;
      if ( message == null ) {
        processUpdate = new ProcessStateUpdate(state, pid, duccProcessId,null);
      } else {
        processUpdate = new ProcessStateUpdate(state, pid, duccProcessId,message, null);
      }
      //System.out.println("................. >>> ProcessStateUpdate==NULL?"+(processUpdate==null)+" JmxUrl="+processJmxUrl);
      if (endpoint != null ) {
        processUpdate.setSocketEndpoint(endpoint);
      }
      this.notifyAgentWithStatus(processUpdate);
    }
  }
View Full Code Here


  public void notifyAgentWithStatus(List<IUimaPipelineAEComponent> pipeline) {
     synchronized( stateLock ) {
       //  Only send update if the AE is initializing
       if ( state.equals(ProcessState.Initializing)) {
         try {
           ProcessStateUpdate processUpdate =
             new ProcessStateUpdate(state, pid, duccProcessId, null, pipeline);
           notifyAgentWithStatus(processUpdate);
         } catch( Exception e) {
           e.printStackTrace();
         }
       }
View Full Code Here

    String methodName = "onProcessExit";
    if ( process == null ) {
      return;
    }
    try {
      ProcessStateUpdate processStateUpdate = new ProcessStateUpdate(process.getProcessState(),
              process.getPID(), process.getDuccId().getUnique());
      ProcessStateUpdateDuccEvent event = new ProcessStateUpdateDuccEvent(processStateUpdate);
      /*
      if (process != null) {
        ITimeWindow tw = process.getTimeWindowInit();
View Full Code Here

    String methodName = "onJPInitTimeout";
    try {
      System.out.println("--------- Agent Timedout While Waiting For JP (PID:" + process.getPID()
              + ") to initialize. The JP exceeded configured timeout of "
              + System.getProperty("ducc.agent.launcher.process.init.timeout"));
      ProcessStateUpdate processStateUpdate = new ProcessStateUpdate(
              ProcessState.InitializationTimeout, process.getPID(), process.getDuccId().getUnique());
      ProcessStateUpdateDuccEvent event = new ProcessStateUpdateDuccEvent(processStateUpdate);
      updateProcessStatus(event);
    } catch (Exception e) {
      logger.error(methodName, null, e);
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.agent.ProcessStateUpdate

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.