Package com.sun.jini.thread

Examples of com.sun.jini.thread.NewThreadAction


      leaseTable.put(clientID,
               new Lease(clientID, duration));
      if (leaseChecker == null) {
          leaseChecker =
        (Thread) AccessController.doPrivileged(
            new NewThreadAction(new LeaseChecker(),
          "DGC Lease Checker", true));
          leaseChecker.start();
      }
        } else {
      lease.renew(duration);
View Full Code Here


  synchronized (keepAliveLock) {
      keepAliveCount++;

      if (keeper == null) {
    keeper = (Thread) AccessController.doPrivileged(
        new NewThreadAction(new Runnable() {
      public void run() {
          try {
        while (true) {
            Thread.sleep(Long.MAX_VALUE);
        }
View Full Code Here

    implRef = new ImplRef(lookupKey);
    weakImplTable.put(lookupKey, implRef);

    if (reaper == null) {
        reaper = (Thread) AccessController.doPrivileged(
      new NewThreadAction(new Reaper(), "Reaper", true));
        reaper.start();

        /*
         * We are now interested in special assistance from the
         * local garbage collector for aggressively collecting
View Full Code Here

      assert target.getEnableDGC();
      assert targets.contains(target);
      if (strongRef instanceof Unreferenced) {
    final Unreferenced obj = (Unreferenced) strongRef;
    final Thread t = (Thread) AccessController.doPrivileged(
        new NewThreadAction(new Runnable() {
      public void run() {
          SecurityContext securityContext =
        target.getSecurityContext();
          AccessController.doPrivileged(securityContext.wrap(
        new PrivilegedAction() {
View Full Code Here

            } else if ( count > 0){
                if (keeper == null) {
                    // This thread keeps the jvm alive, while remote objects
                    // exist and all local processes have completed.
                    keeper = (Thread) AccessController.doPrivileged(
                    new NewThreadAction(new Runnable() {
                        public void run() {
                            try {
                                while (!Thread.currentThread().isInterrupted()) {
                                    Thread.sleep(Long.MAX_VALUE);
                                }
View Full Code Here

      assert target.getEnableDGC();
      assert targets.contains(target);
      if (strongRef instanceof Unreferenced) {
    final Unreferenced obj = (Unreferenced) strongRef;
    final Thread t = (Thread) AccessController.doPrivileged(
        new NewThreadAction(new Runnable() {
      public void run() {
          SecurityContext securityContext =
        target.getSecurityContext();
          AccessController.doPrivileged(securityContext.wrap(
        new PrivilegedAction() {
View Full Code Here

  private EndpointEntry(final Object endpoint) {
      this.endpoint = endpoint;
      dgcProxy = getDgcProxy(endpoint);
      renewCleanThread = (ThreadAccessController.doPrivileged(
    new NewThreadAction(new RenewCleanThread(),
            "RenewClean-" + endpoint, true));
      renewCleanThread.start();
  }
View Full Code Here

    implRef = new ImplRef(lookupKey);
    weakImplTable.put(lookupKey, implRef);

    if (reaper == null) {
        reaper = (Thread) AccessController.doPrivileged(
      new NewThreadAction(new Reaper(), "Reaper", true));
        reaper.start();

        /*
         * We are now interested in special assistance from the
         * local garbage collector for aggressively collecting
View Full Code Here

             */
            synchronized (running){
                if (!running) {
                    leaseChecker =
                        (Thread) AccessController.doPrivileged(
                            new NewThreadAction(new LeaseChecker(),
                                "DGC Lease Checker", true));
                    leaseChecker.start();
                }
            }
            for (int i = 0; i < ids.length; i++) {
View Full Code Here

TOP

Related Classes of com.sun.jini.thread.NewThreadAction

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.