Examples of Delegate


Examples of org.apache.uima.aae.delegate.Delegate

        }
        return;
      }
      String delegateKey = ((AggregateAnalysisEngineController) getController())
              .lookUpDelegateKey(aMessageContext.getEndpoint().getEndpoint());
      Delegate delegate = ((AggregateAnalysisEngineController) getController())
              .lookupDelegate(delegateKey);
      boolean casRemovedFromOutstandingList = delegate.removeCasFromOutstandingList(casReferenceId);

      // Check if this process reply message is expected. A message is expected if the Cas Id
      // in the message matches an entry in the delegate's outstanding list. This list stores
      // ids of CASes sent to the remote delegate pending reply.
      if (!casRemovedFromOutstandingList) {
View Full Code Here

Examples of org.apache.uima.aae.delegate.Delegate

              .getLocalCache().lookupEntry(casReferenceId);

      CAS cas = cacheEntry.getCas();
      String delegateKey = ((AggregateAnalysisEngineController) getController())
              .lookUpDelegateKey(aMessageContext.getEndpoint().getEndpoint());
      Delegate delegate = ((AggregateAnalysisEngineController) getController())
              .lookupDelegate(delegateKey);
      if (casStateEntry != null) {
        casStateEntry.setReplyReceived();
        casStateEntry.setLastDelegate(delegate);
      }
      delegate.removeCasFromOutstandingList(casReferenceId);

      if (cas != null) {
        cancelTimerAndProcess(aMessageContext, casReferenceId, cas);
      } else {
        if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
View Full Code Here

Examples of org.exolab.jms.net.proxy.Delegate

     * @throws ExportException if the proxy can't be constructed
     */
    public synchronized Proxy addProxy(URI uri) throws ExportException {
        Proxy proxy;
        try {
            Delegate delegate = new UnicastDelegate(_objID, uri.toString());
            Constructor constructor = _proxyClass.getConstructor(PROXY_ARGS);
            proxy = (Proxy) constructor.newInstance(new Object[]{delegate});
        } catch (InvocationTargetException exception) {
            if (exception.getTargetException() instanceof Exception) {
                Exception nested = (Exception) exception.getTargetException();
View Full Code Here

Examples of org.globus.workspace.client_core.actions.Delegate

            } else if (this.pr.useLogging()) {
                logger.debug(dbg);
            }
        }

        final Delegate delegate = new Delegate(credential,
                                               csd,
                                               this.d.delegationFactoryUrl,
                                               certToSign,
                                               this.d.delegationLifetime,
                                               true);

        delegate.validateAll();

        if (this.d.dryrun) {
            if (this.pr.enabled()) {
                final String msg = "Dryrun, not calling delegation service.";
                if (this.pr.useThis()) {
                    // part of PRCODE_CREATE__DRYRUN as a whole
                    this.pr.infoln(PrCodes.CREATE__DRYRUN, msg);
                } else if (this.pr.useLogging()) {
                    logger.info(msg);
                }
            }

            return; // *** EARLY RETURN ***
        }

        final EndpointReferenceType epr = delegate.delegate();
       
        //this.delegationWasPerformed = true;

        final OptionalParameters_Type opt = this.d.optionalParameters;
        if (opt == null) {
View Full Code Here

Examples of org.jacorb.orb.Delegate

            POA testPOA = rootPOA.create_POA("MyPOA", rootPOA.the_POAManager(), new Policy[] {rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID)});
            byte[] key = new byte[] {1, 2, 3, 4};
            org.omg.CORBA.Object object = testPOA.create_reference_with_id(key, BasicServerHelper.id());

            ObjectImpl objectImpl = (ObjectImpl) object;
            Delegate delegate = (Delegate) objectImpl._get_delegate();

            ParsedIOR parsedIOR = delegate.getParsedIOR();

            StringWriter out = new StringWriter();
            final PrintWriter printWriter = new PrintWriter(out);
            PrintIOR.printIOR(parsedIOR, printWriter);
            printWriter.close();
View Full Code Here

Examples of org.jboss.aop.proxy.container.Delegate

      container.setClass(proxyClass);
      container.initializeClassContainer();
      POJO proxy = (POJO) proxyClass.newInstance();
      AspectManaged cp = (AspectManaged)proxy;
      cp.setAdvisor(container);
      Delegate delegate = (Delegate)cp;
      delegate.setDelegate(new POJO());

      MixinInterface mi = (MixinInterface) proxy;
      System.out.println("--- mixin");
      assertEquals(mi.hello("mixin"), "mixin");
      System.out.println("--- hw");
View Full Code Here

Examples of org.omg.CORBA.portable.Delegate

  {
    String str = s.readUTF();
    String[] args = null;
    java.util.Properties props = null;
    org.omg.CORBA.Object obj = ORB.init(args, props).string_to_object(str);
    Delegate delegate = ((ObjectImpl) obj)._get_delegate();
    _set_delegate(delegate);
  }
View Full Code Here

Examples of org.omg.CORBA.portable.Delegate

      return (poa_comTester) obj;
    else if (!obj._is_a(id()))
      throw new org.omg.CORBA.BAD_PARAM();
    else
      {
        Delegate delegate = ((ObjectImpl) obj)._get_delegate();
        poa_comTesterStub stub = new poa_comTesterStub();
        stub._set_delegate(delegate);
        return stub;
      }
  }
View Full Code Here

Examples of org.omg.CORBA.portable.Delegate

      return (TestLocationForwardServer) obj;
    else if (!obj._is_a(id()))
      throw new BAD_PARAM();
    else
      {
        Delegate delegate = ((ObjectImpl) obj)._get_delegate();
        _TestLocationForwardServerStub stub =
          new _TestLocationForwardServerStub();
        stub._set_delegate(delegate);
        return stub;
      }
View Full Code Here

Examples of org.omg.CORBA.portable.Delegate

      return (TestLocationForward) obj;
    else if (!obj._is_a(id()))
      throw new BAD_PARAM();
    else
      {
        Delegate delegate = ((ObjectImpl) obj)._get_delegate();
        _TestLocationForwardStub stub = new _TestLocationForwardStub();
        stub._set_delegate(delegate);
        return stub;
      }
  }
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.