Package com.sun.jini.admin

Examples of com.sun.jini.admin.DestroyAdmin


        assertEquals(entry, readResult, "read");
        timeLog("entry read under t2");
        timeLog("destroying");

        try {
            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

  init();

  if (checkDir == true && perdir == null)
      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

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

  PullEventMailbox mb = getPullMailbox();
  Object admin = getMailboxAdmin(mb);
        DestroyAdmin dAdmin = (DestroyAdmin)admin;
        int i = 0;

  // Register and check lease
  MailboxPullRegistration mr = getPullRegistration(mb, DURATION1);
  Lease mrl = getPullMailboxLease(mr);
View Full Code Here

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

  PullEventMailbox mb = getPullMailbox();
  Object admin = getMailboxAdmin(mb);
        DestroyAdmin dAdmin = (DestroyAdmin)admin;
        int i = 0;

  // Register and check lease
        long[] durations =
            new long[] {DURATION1, DURATION1, DURATION1, DURATION1, DURATION1};
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

        writeEntry(txn, wentry);

        // shutdown transaction manager.
        pass("step-3: destroy transaction manager.");

  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

        assertEquals(entry, readResult, "read");
        timeLog("entry read under t2");
        timeLog("destroying");

        try {
            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

TOP

Related Classes of com.sun.jini.admin.DestroyAdmin

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.