Examples of NewThreadAction


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

Examples of com.sun.jini.thread.NewThreadAction

  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

Examples of com.sun.jini.thread.NewThreadAction

    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

Examples of com.sun.jini.thread.NewThreadAction

      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

Examples of com.sun.jini.thread.NewThreadAction

            } 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

Examples of com.sun.jini.thread.NewThreadAction

      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

Examples of com.sun.jini.thread.NewThreadAction

  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

Examples of com.sun.jini.thread.NewThreadAction

    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

Examples of com.sun.jini.thread.NewThreadAction

             */
            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

Examples of sun.rmi.runtime.NewThreadAction

        int nExecs = getNumExec();

        /* start RMI threads to read output from child process */
        inThread = AccessController.doPrivileged(
            new NewThreadAction(new PipeWriter(in, out, "out", nExecs),
                                "out", true));
        outThread = AccessController.doPrivileged(
            new NewThreadAction(new PipeWriter(in1, out1, "err", nExecs),
                                "err", true));
        inThread.start();
        outThread.start();
    }
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.