Examples of produceMessage()


Examples of com.sun.jmx.remote.generic.ProfileClient.produceMessage()

         " <<<<<");
    }
    ProfileMessage pm = null;
    p.initialize(mc);
    while (!p.isComplete()) {
        pm = p.produceMessage();
        mc.writeMessage(pm);
        msg = mc.readMessage();
        if (msg instanceof ProfileMessage) {
      p.consumeMessage((ProfileMessage)msg);
        } else if (msg instanceof HandshakeErrorMessage) {
View Full Code Here

Examples of com.sun.jmx.remote.generic.ProfileServer.produceMessage()

      }
      p.initialize(mc, subject);
      putProfile(mc, p);
        }
        p.consumeMessage(pm);
        pm = p.produceMessage();
        mc.writeMessage(pm);
        if (p.isComplete()) {
      subject = p.activate();
        }
    } else {
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

    if (anEndpoint != null && aCasReferenceId != null && !anEndpoint.isCasMultiplier()) {
      try {
        if (!anEndpoint.isRemote()) {
          anEndpoint.setReplyEndpoint(true);
          UimaTransport vmTransport = aController.getTransport(anEndpoint.getEndpoint());
          UimaMessage message = vmTransport.produceMessage(AsynchAEMessage.Process,
                  AsynchAEMessage.Response, aController.getName());
          message.addIntProperty(AsynchAEMessage.Payload, AsynchAEMessage.Exception);
          message.addStringProperty(AsynchAEMessage.CasReference, aCasReferenceId);

          Throwable wrapper = null;
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

      Set<Entry<String, UimaTransport>> set = transports.entrySet();
      for (Entry<String, UimaTransport> entry : set) {
        UimaTransport transport = entry.getValue();
        try {

          UimaMessage message = transport.produceMessage(AsynchAEMessage.Stop,
                  AsynchAEMessage.Request, getName());
          transport.getUimaMessageDispatcher(entry.getKey()).dispatch(message);
          transport.stopIt();
          System.out.println("Service:" + getComponentName() + " Stopped Delegate Transport:"
                  + entry.getKey());
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          try {

            UimaTransport transport = null;
            transport = getTransport(anEndpoint.getEndpoint());
            UimaMessage message = transport.produceMessage(AsynchAEMessage.GetMeta,
                    AsynchAEMessage.Response, getName());
            metadata.toXML(bos);
            message.addStringCargo(bos.toString());
            transport.getUimaMessageDispatcher(anEndpoint.getEndpoint()).dispatch(message);
          } catch (Exception e) {
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

                "UIMAEE_cpc_all_cases_processed__FINEST", new Object[] { getComponentName() });
      }
      getServicePerformance().incrementAnalysisTime(super.getCpuTime() - start);
      if (!anEndpoint.isRemote()) {
        UimaTransport transport = getTransport(anEndpoint.getEndpoint());
        UimaMessage message = transport.produceMessage(AsynchAEMessage.CollectionProcessComplete,
                AsynchAEMessage.Response, getName());
        // Send CPC completion reply back to the client. Use internal (non-jms) transport
        transport.getUimaMessageDispatcher(anEndpoint.getEndpoint()).dispatch(message);
      } else {
        getOutputChannel().sendReply(AsynchAEMessage.CollectionProcessComplete, anEndpoint, null, false);
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

          // Increment number of CASes processed by this service
          sequence++;
        }
        if (!anEndpoint.isRemote()) {
          UimaTransport transport = getTransport(anEndpoint.getEndpoint());
          UimaMessage message = transport.produceMessage(AsynchAEMessage.Process,
                  AsynchAEMessage.Request, getName());
          message.addStringProperty(AsynchAEMessage.CasReference, newEntry.getCasReferenceId());
          message.addStringProperty(AsynchAEMessage.InputCasReference, aCasReferenceId);
          message.addLongProperty(AsynchAEMessage.CasSequence, sequence);
          ServicePerformance casStats = getCasStatistics(aCasReferenceId);
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

            // and the getCacheEntryForCAS() will throw an exception. Ignore it
            // here, we are shutting down.
          }
        }         
       
        UimaMessage message = transport.produceMessage(AsynchAEMessage.Process,
                AsynchAEMessage.Response, getName());
        message.addStringProperty(AsynchAEMessage.CasReference, aCasReferenceId);
        ServicePerformance casStats = getCasStatistics(aCasReferenceId);

        message.addLongProperty(AsynchAEMessage.TimeToSerializeCAS, casStats
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          try {

            UimaTransport transport = null;
            transport = getTransport(anEndpoint.getEndpoint());
            UimaMessage message = transport.produceMessage(AsynchAEMessage.GetMeta,
                    AsynchAEMessage.Response, getName());
            metadata.toXML(bos);
            message.addStringCargo(bos.toString());
            transport.getUimaMessageDispatcher(anEndpoint.getEndpoint()).dispatch(message);
          } catch (Exception e) {
View Full Code Here

Examples of org.apache.uima.aae.spi.transport.UimaTransport.produceMessage()

    if (aClientEndpoint == null) {
      aClientEndpoint = getClientEndpoint();
    }
    if (!aClientEndpoint.isRemote()) {
      UimaTransport transport = getTransport(aClientEndpoint.getEndpoint());
      UimaMessage message = transport.produceMessage(AsynchAEMessage.CollectionProcessComplete,
              AsynchAEMessage.Response, getName());
      // Send reply back to the client. Use internal (non-jms) transport
      transport.getUimaMessageDispatcher(aClientEndpoint.getEndpoint()).dispatch(message);
    } else {
      getOutputChannel().sendReply(AsynchAEMessage.CollectionProcessComplete, aClientEndpoint, null, false);
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.