Examples of invoke()


Examples of org.serviceconnector.call.SCMPSrvChangeSubscriptionCall.invoke()

    // setting the http url file qualifier which is necessary to communicate with the server.
    message.setHttpUrlFileQualifier(this.remoteNodeConfiguration.getHttpUrlFileQualifier());
    SCMPSrvChangeSubscriptionCall changeSubscriptionCall = new SCMPSrvChangeSubscriptionCall(this.requester, message);

    try {
      changeSubscriptionCall.invoke(callback, timeoutMillis);
    } catch (ConnectionPoolBusyException ex) {
      throw ex;
    } catch (Exception e) {
      // changeSubscription failed
      callback.receive(e);
View Full Code Here

Examples of org.serviceconnector.call.SCMPSrvCreateSessionCall.invoke()

      throws ConnectionPoolBusyException {
    // setting the http url file qualifier which is necessary to communicate with the server.
    msgToForward.setHttpUrlFileQualifier(this.remoteNodeConfiguration.getHttpUrlFileQualifier());
    SCMPSrvCreateSessionCall createSessionCall = new SCMPSrvCreateSessionCall(requester, msgToForward);
    try {
      createSessionCall.invoke(callback, timeoutMillis);
    } catch (ConnectionPoolBusyException ex) {
      throw ex;
    } catch (Exception e) {
      // create session failed
      callback.receive(e);
View Full Code Here

Examples of org.serviceconnector.call.SCMPSrvDeleteSessionCall.invoke()

      throws ConnectionPoolBusyException {
    // setting the http url file qualifier which is necessary to communicate with the server.
    message.setHttpUrlFileQualifier(this.remoteNodeConfiguration.getHttpUrlFileQualifier());
    SCMPSrvDeleteSessionCall deleteSessionCall = new SCMPSrvDeleteSessionCall(requester, message);
    try {
      deleteSessionCall.invoke(callback, timeoutMillis);
    } catch (ConnectionPoolBusyException ex) {
      throw ex;
    } catch (Exception e) {
      // delete session failed
      callback.receive(e);
View Full Code Here

Examples of org.serviceconnector.call.SCMPSrvExecuteCall.invoke()

  public void execute(SCMPMessage message, ISCMPMessageCallback callback, int timeoutMillis) throws ConnectionPoolBusyException {
    // setting the http url file qualifier which is necessary to communicate with the server.
    message.setHttpUrlFileQualifier(this.remoteNodeConfiguration.getHttpUrlFileQualifier());
    SCMPSrvExecuteCall srvExecuteCall = new SCMPSrvExecuteCall(this.requester, message);
    try {
      srvExecuteCall.invoke(callback, timeoutMillis);
    } catch (ConnectionPoolBusyException ex) {
      throw ex;
    } catch (Exception th) {
      // send data failed
      callback.receive(th);
View Full Code Here

Examples of org.serviceconnector.call.SCMPSrvSubscribeCall.invoke()

      throws ConnectionPoolBusyException {
    // setting the http url file qualifier which is necessary to communicate with the server.
    msgToForward.setHttpUrlFileQualifier(this.remoteNodeConfiguration.getHttpUrlFileQualifier());
    SCMPSrvSubscribeCall subscribeCall = new SCMPSrvSubscribeCall(requester, msgToForward);
    try {
      subscribeCall.invoke(callback, timeoutMillis);
    } catch (ConnectionPoolBusyException ex) {
      throw ex;
    } catch (Exception e) {
      // subscribe failed
      callback.receive(e);
View Full Code Here

Examples of org.serviceconnector.call.SCMPSrvUnsubscribeCall.invoke()

    // setting the http url file qualifier which is necessary to communicate with the server.
    message.setHttpUrlFileQualifier(this.remoteNodeConfiguration.getHttpUrlFileQualifier());
    SCMPSrvUnsubscribeCall unsubscribeCall = new SCMPSrvUnsubscribeCall(this.requester, message);

    try {
      unsubscribeCall.invoke(callback, timeoutMillis);
    } catch (ConnectionPoolBusyException ex) {
      throw ex;
    } catch (Exception e) {
      // unsubscribe failed
      callback.receive(e);
View Full Code Here

Examples of org.servicemix.components.util.ComponentSupport.invoke()

        MessageExchange exchange = getExchange(context, element);
        NormalizedMessage in = getInMessage(context, element);

        // TODO we should allow nested setOutProperty tags

        component.invoke(exchange, in, service, interfaceName, operation);
    }

    /**
     * Invokes the service with the XML content included in the XML element
     */
 
View Full Code Here

Examples of org.springframework.batch.item.adapter.HippyMethodInvoker.invoke()

      HippyMethodInvoker invoker = new HippyMethodInvoker();
      invoker.setTargetObject(target);
      invoker.setTargetMethod(method.getName());
      try {
        invoker.prepare();
        return (JobExecution) invoker.invoke();
      }
      catch (Exception e) {
        throw new IllegalArgumentException("Could not create job execution from method: " + method.getName(),
            e);
      }
View Full Code Here

Examples of org.springframework.beans.support.ArgumentConvertingMethodInvoker.invoke()

    ArgumentConvertingMethodInvoker methodInvoker = new ArgumentConvertingMethodInvoker();
    methodInvoker.setTargetClass(MethodInvokerTests.TestClass1.class);
    methodInvoker.setTargetMethod("intArgument");
    methodInvoker.setArguments(new Object[] {new Integer(5)});
    methodInvoker.prepare();
    methodInvoker.invoke();

    methodInvoker = new ArgumentConvertingMethodInvoker();
    methodInvoker.setTargetClass(MethodInvokerTests.TestClass1.class);
    methodInvoker.setTargetMethod("intArgument");
    methodInvoker.setArguments(new Object[] {"5"});
View Full Code Here

Examples of org.springframework.boot.actuate.endpoint.HealthEndpoint.invoke()

  public void healthEndpoint() {
    load(EmbeddedDataSourceConfiguration.class, EndpointAutoConfiguration.class,
        HealthIndicatorAutoConfiguration.class);
    HealthEndpoint bean = this.context.getBean(HealthEndpoint.class);
    assertNotNull(bean);
    Health result = bean.invoke();
    assertNotNull(result);
    assertTrue("Wrong result: " + result, result.getDetails().containsKey("db"));
  }

  @Test
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.