Package org.eclipse.ecf.remoteservice

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceReference


      } else
        for (int i = 0; i < refs.length; i++)
          rsRefs.add(refs[i]);
      // If there are several refs resulting (should not be)
      // we select the one to use
      IRemoteServiceReference selectedRsReference = selectRemoteServiceReference(
          rsRefs, targetID, idFilter, interfaces, rsFilter,
          rsContainer);
      // If none found, we obviously can't continue
      if (selectedRsReference == null)
        throw new RemoteReferenceNotFoundException(targetID, idFilter,
View Full Code Here


    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

    assertNotNull(concatService);
    // test for proxy implementing IRemoteServiceProxy
    if (concatService instanceof IRemoteServiceProxy) {
      IRemoteService remoteService = ((IRemoteServiceProxy) concatService).getRemoteService();
      assertNotNull(remoteService);
      IRemoteServiceReference remoteServiceReference = ((IRemoteServiceProxy) concatService).getRemoteServiceReference();
      assertNotNull(remoteServiceReference);
      System.out.println("remote service reference found from proxy="+remoteServiceReference);
      System.out.println("remoteserviceproxy call start");
      Object result = RemoteServiceHelper.syncExec(remoteService, "concat" , new Object[] { "IRemoteServiceProxy ","is very cool" }, 20000);
      System.out.println("remoteserviceproxy call end. result=" + result);
View Full Code Here

    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

    assertNotNull(concatService);
    // test for proxy implementing IRemoteServiceProxy
    if (concatService instanceof IRemoteServiceProxy) {
      IRemoteService remoteService = ((IRemoteServiceProxy) concatService).getRemoteService();
      assertNotNull(remoteService);
      IRemoteServiceReference remoteServiceReference = ((IRemoteServiceProxy) concatService).getRemoteServiceReference();
      assertNotNull(remoteServiceReference);
      System.out.println("remote service reference found from proxy="+remoteServiceReference);
      System.out.println("remoteserviceproxy call start");
      Object result = RemoteServiceHelper.syncExec(remoteService, "concat" , new Object[] { "IRemoteServiceProxy ","is very cool" }, 20000);
      System.out.println("remoteserviceproxy call end. result=" + result);
View Full Code Here

    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

    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 = createRestRegistration("resourcePath");
    IRemoteServiceReference reference = registration.getReference();
    assertNotNull(reference);
    IRemoteService remoteService = getRemoteServiceClientContainerAdapter().getRemoteService(reference);
    assertNotNull(remoteService);
  }
View Full Code Here

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

    assertEquals(registration.getReference(), remoteServiceReference);
  }
 
  public void testUngetRemoteService() {
    IRemoteServiceRegistration registration = createRestRegistration("resourcePath");
    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.