Package net.jini.export

Examples of net.jini.export.Exporter.unexport()


    }

    protected void unexportListener(RemoteEventListener l, boolean force) {
  Exporter exporter = (Exporter) listenerMap.get(l);
  if (exporter != null) {
      exporter.unexport(force);
      listenerMap.remove(l);
  }
    }

    protected abstract class BasicListener
View Full Code Here


   * Unexport A1.
   *
   * - DGC call to A should fail again.
   * - DGC call to B should still succeed.
   */
  expA1.unexport(true);
  System.err.println("\t{A0}\t{B1}");

  System.err.print("DGC call to A ");
  verifyFailure(dgcA);
  System.err.print("DGC call to B ");
View Full Code Here

      csf.clientSocketsCreated + " instead of " +
      expectedSocketsCreated);
    }
      }
  } finally {
      exporter.unexport(true);
  }
    }

    private static void sleep(long millis) {
  long now = System.currentTimeMillis();
View Full Code Here

    }

    protected void unexportListener(RemoteEventListener l, boolean force) {
  Exporter exporter = (Exporter) listenerMap.get(l);
  if (exporter != null) {
      exporter.unexport(force);
      listenerMap.remove(l);
  }
    }

    protected abstract class BasicListener
View Full Code Here

    "exported remote object with loader as context class loader");

      loader = null;
      System.err.println("nulled strong reference to loader");

      exporter.unexport(true);
      System.err.println("unexported remote object");
      exporter = null;    // required to work around 4403470

      /*
       * HACK: Work around the fact that the sun.misc.GC daemon thread
View Full Code Here

      throw e;
  } catch (Exception e) {
      throw new RuntimeException("TEST FAILED: unexpected exception", e);
  } finally {
      try {
    exporter.unexport(true);
      } catch (Exception e) {
      }
  }
    }
}
View Full Code Here

      System.err.println(
    "TEST PASSED (server-side stack trace data suppressed)");
  } finally {
      try {
    exporter.unexport(true);
      } catch (Exception e) {
      }
  }
    }
View Full Code Here

        "UnexpectedException has correct nested exception");
      }
      System.err.println("test passed");
  } finally {
      if (proxy != null) {
    exporter.unexport(true);
      }
  }
    }
}
View Full Code Here

       "before server-side method __BAR__");
      }
      System.err.println("TEST PASSED");
  } finally {
      try {
    exporter.unexport(true);
      } catch (Exception e) {
      }
  }
    }
}
View Full Code Here

      System.err.println("ALL TESTS PASSSED");

  } finally {
      if (exporter != null) {
    exporter.unexport(true);
      }
  }
    }
}
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.