Package com.sun.jini.admin

Examples of com.sun.jini.admin.DestroyAdmin.destroy()


            DestroyAdmin admin = (DestroyAdmin) ((Administrable)
                    txmgr).getAdmin();
            admin = (DestroyAdmin) getConfig().prepare("test.mahaloAdminPreparer",
                                                         admin);

            admin.destroy();
        } catch (UnmarshalException ue) {

            /*
             * Ignore. Can happen if the "destroy" thread actually
             * kills the service before we return from this call.
View Full Code Here


  // DestroyAdmin Methods
  /////////////////////////
  logger.log(Level.INFO, "\tCalling DestroyAdmin methods");
  DestroyAdmin da = (DestroyAdmin)admin;
  logger.log(Level.INFO, "Calling DestroyAdmin::destroy()");
  da.destroy();

  /* Delay for a bit before returning.  The destroy call
   * starts a "destroy" thread on the mailbox process.
   * One part of this clean up process
   * is to cancel any registration leases with the lookup service.
View Full Code Here

      perdir = getConfig().getStringConfigVal("com.sun.jini.outrigger.log",null);

  DestroyAdmin destroyAdmin = (DestroyAdmin)admin;

  try {
      destroyAdmin.destroy();
  } catch (RemoteException e) {
      // Ignore, destroy might have happend before call could
      // have returned
  }
View Full Code Here

  // DestroyAdmin Methods
  /////////////////////////
  logger.log(Level.INFO, "\tCalling DestroyAdmin methods");
  DestroyAdmin da = (DestroyAdmin)admin;
  logger.log(Level.INFO, "Calling DestroyAdmin::destroy()");
  da.destroy();

  /* Delay for a bit before returning.  The destroy call
   * starts a "destroy" thread on the mailbox process.
   * One part of this clean up process
   * is to cancel any registration leases with the lookup service.
View Full Code Here

  DestroyAdmin admin = (DestroyAdmin) ((Administrable)
               txmgr).getAdmin();
  admin = (DestroyAdmin) getConfig().prepare("test.mahaloAdminPreparer",
               admin);
 
  admin.destroy();

        // wait for a while
  int destroyDelay = getConfig().getIntConfigVal(
          "com.sun.jini.qa.harness.destroy.delay", 10);
 
View Full Code Here

            DestroyAdmin admin = (DestroyAdmin) ((Administrable)
                    txmgr).getAdmin();
            admin = (DestroyAdmin) getConfig().prepare("test.mahaloAdminPreparer",
                                                         admin);

            admin.destroy();
        } catch (UnmarshalException ue) {

            /*
             * Ignore. Can happen if the "destroy" thread actually
             * kills the service before we return from this call.
View Full Code Here

  // DestroyAdmin Methods
  /////////////////////////
  logger.log(Level.INFO, "\tCalling DestroyAdmin methods");
  DestroyAdmin da = (DestroyAdmin)admin;
  logger.log(Level.INFO, "Calling DestroyAdmin::destroy()");
  da.destroy();

  /* Delay for a bit before returning.  The destroy call
   * starts a "destroy" thread on the mailbox process.
   * One part of this clean up process
   * is to cancel any registration leases with the lookup service.
View Full Code Here

  // DestroyAdmin Methods
  /////////////////////////
  logger.log(Level.INFO, "\tCalling DestroyAdmin methods");
  DestroyAdmin da = (DestroyAdmin)admin;
  logger.log(Level.INFO, "Calling DestroyAdmin::destroy()");
  da.destroy();

  /* Delay for a bit before returning.  The destroy call
   * starts a "destroy" thread on the mailbox process.
   * One part of this clean up process
   * is to cancel any registration leases with the lookup service.
View Full Code Here

        Object admin = ((Administrable)service).getAdmin();
        if( !(admin instanceof DestroyAdmin) ) {
            return SERVICE_NOT_DESTROY_ADMIN;
        }
        destroyAdmin = (DestroyAdmin)admin;
        destroyAdmin.destroy();
        return DESTROY_SUCCESS;
    }

    /**
     * Administratively destroys the service referenced by the
View Full Code Here

                JOptionPane.YES_NO_OPTION);
            if (answer == JOptionPane.NO_OPTION)
                return;
            Administrable admin = (Administrable) this.item.service;
            DestroyAdmin destroyAdmin = (DestroyAdmin) admin.getAdmin();
            destroyAdmin.destroy();
            if (component != null) {
                Util.dispose(component);
            }
        } catch (Exception e) {
            e.printStackTrace();
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.