Package org.apache.uima.ducc.transport.event

Examples of org.apache.uima.ducc.transport.event.ProcessStateUpdateDuccEvent


   * via configured dispatcher to a configured endpoint.
   *
   */
  public void notifyAgentWithStatus(ProcessStateUpdate state) {
    try {
      ProcessStateUpdateDuccEvent duccEvent =
        new ProcessStateUpdateDuccEvent(state);
      logger.info("notifyAgentWithStatus",null," >>>>>>> UIMA AS Service Deployed - PID:"+pid);

      if (endpoint != null ) {
        state.setSocketEndpoint(endpoint);
      }
View Full Code Here


      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();
        if (tw.getEnd() == null) {
          tw.setEnd(TimeStamp.getCurrentMillis());
View Full Code Here

      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.event.ProcessStateUpdateDuccEvent

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.