Package org.eclipse.ecf.remoteservice

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceReference


    final Object lock = new Object();
    adapters[1].addRemoteServiceListener(new IRemoteServiceListener() {
      public void handleServiceEvent(IRemoteServiceEvent event) {
        if (event instanceof IRemoteServiceRegisteredEvent) {
          IRemoteServiceRegisteredEvent e = (IRemoteServiceRegisteredEvent) event;
          IRemoteServiceReference ref = e.getReference();
          remoteService = adapters[1].getRemoteService(ref);
          assertNotNull(remoteService);
          synchronized (lock) {
            done = true;
            lock.notify();
View Full Code Here


    return registerCallable(container, callable, null);
  }
 
  public void testGetRemoteService() {
    IRemoteServiceRegistration registration = createRpcRegistration(RpcConstants.TEST_ECHO_METHOD);
    IRemoteServiceReference reference = registration.getReference();
    assertNotNull(reference);
    IRemoteService remoteService = getRemoteServiceClientContainerAdapter().getRemoteService(reference);
    assertNotNull(remoteService);
  }
View Full Code Here

    assertNotNull(remoteService);
  }
 
  public void testGetRemoteServiceReference() {
    IRemoteServiceRegistration registration = createRpcRegistration(RpcConstants.TEST_ECHO_METHOD);
    IRemoteServiceReference remoteServiceReference = getRemoteServiceClientContainerAdapter().getRemoteServiceReference(registration.getID());
    assertEquals(registration.getReference(), remoteServiceReference);
  }
View Full Code Here

    assertEquals(registration.getReference(), remoteServiceReference);
  }
 
  public void testUngetRemoteService() {
    IRemoteServiceRegistration registration = createRpcRegistration(RpcConstants.TEST_ECHO_METHOD);
    IRemoteServiceReference reference = registration.getReference();
    getRemoteServiceClientContainerAdapter().getRemoteService(reference);
    assertTrue(getRemoteServiceClientContainerAdapter().ungetRemoteService(reference));
  }
View Full Code Here

TOP

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

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.