Examples of JdStateDuccEvent


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

  }
 
  public JdStateDuccEvent getState() {
    String methodName = "getState";
    duccOut.trace(methodName, null, duccMsg.fetch("enter"));
    JdStateDuccEvent jdStateDuccEvent = new JdStateDuccEvent();
    if(active.get()) {
      publicationCounter.addAndGet(1);
      try {
        duccOut.debug(methodName, null, duccMsg.fetch("publishing state"));
        if(thread != null) {
          thread.rectifyStatus();
          DriverStatusReport dsr = thread.getDriverStatusReportCopy();
          if(dsr == null) {
            duccOut.debug(methodName, null, duccMsg.fetch("dsr is null"));
          }
          else {
            duccOut.debug(methodName, null, "driverState:"+dsr.getDriverState());
            duccOut.debug(methodName, dsr.getDuccId(), dsr.getLogReport());
            jdStateDuccEvent.setState(dsr);
          }
          publisher();
        }
        else {
          duccOut.debug(methodName, null, duccMsg.fetch("thread is null"));
View Full Code Here

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

    private JobDriverStateProcessor(IJobDriverComponent jdc) {
      this.jdc = jdc;
    }
    public void process(Exchange exchange) throws Exception {
      // Fetch new state from Dispatched Job
      JdStateDuccEvent sse = jdc.getState();
      //  Add the state object to the Message
      exchange.getIn().setBody(sse);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.