Package org.eclipse.ecf.remoteservice

Examples of org.eclipse.ecf.remoteservice.IRemoteService


    assertReferencesValidAndFirstHasCorrectType(remoteReferences, classname);

    final Object o = remoteReferences[0].getProperty(SERVICE_IMPORTED);
    assertNotNull(o);
    assertTrue(o instanceof IRemoteService);
    final IRemoteService rs = (IRemoteService) o;

    // Call synchronously
    final Object result = rs.callSync(createRemoteCall());
    Trace.trace(Activator.PLUGIN_ID, "callSync.doStuff1 result=" + result);
    assertStringResultValid(result, TestServiceInterface1.TEST_SERVICE_STRING1);
    endTest("testCallSync");
  }
View Full Code Here


    assertReferencesValid(remoteReferences);

    final Object o = remoteReferences[0].getProperty(SERVICE_IMPORTED);
    assertNotNull(o);
    assertTrue(o instanceof IRemoteService);
    final IRemoteService rs = (IRemoteService) o;
    // Call asynchronously
    rs.callAsync(createRemoteCall(), new IRemoteCallListener() {
      public void handleEvent(final IRemoteCallEvent event) {
        if (event instanceof IRemoteCallCompleteEvent) {
          final Object result = ((IRemoteCallCompleteEvent) event)
              .getResponse();
          Trace.trace(Activator.PLUGIN_ID,
View Full Code Here

    assertReferencesValid(remoteReferences);

    final Object o = remoteReferences[0].getProperty(SERVICE_IMPORTED);
    assertNotNull(o);
    assertTrue(o instanceof IRemoteService);
    final IRemoteService rs = (IRemoteService) o;
    // Call asynchronously
    final IFuture futureResult = rs.callAsync(createRemoteCall());

    // now get result from futureResult
    final Object result = futureResult.get();
    Trace.trace(Activator.PLUGIN_ID, "callSync.doStuff1 result=" + result);
    assertStringResultValid(result, TestServiceInterface1.TEST_SERVICE_STRING1);
View Full Code Here

    assertReferencesValid(remoteReferences);

    final Object o = remoteReferences[0].getProperty(SERVICE_IMPORTED);
    assertNotNull(o);
    assertTrue(o instanceof IRemoteService);
    final IRemoteService rs = (IRemoteService) o;
    // Call asynchronously
    rs.fireAsync(createRemoteCall());
    Thread.sleep(REGISTER_WAIT);
    endTest("testFireAsync");
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.IRemoteService

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.