Examples of shutdown()


Examples of org.xmlBlaster.contrib.db.I_DbPool.shutdown()

            ex.printStackTrace();
         }
         finally {
            if (pool != null) {
               try {
                  pool.shutdown();
               }
               catch (Exception ex) {
                  log.severe("Exception occured when shutting down the scheduler");
                  ex.printStackTrace();
               }
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.DbWatcher.shutdown()

         log.info("Sleeping no a long time ...");
         Thread.sleep(1000000);
      }


      processor.shutdown();
      log.info("Done!");
   }

   /**
    * Example code.
View Full Code Here

Examples of org.xmlBlaster.contrib.filewatcher.Publisher.shutdown()

         assertTrue("An exception should not occur here " + ex.getMessage(), false);
      }
      finally {
         if (publisher != null) {
            try {
               publisher.shutdown();
            }
            catch (Throwable ex) {
               ex.printStackTrace();
               fail("exception when shutting down the poller " + ex.getMessage());
            }
View Full Code Here

Examples of org.xmlBlaster.contrib.replication.I_DbSpecific.shutdown()

            }
         }
         log.info("setUp: cleanup done, going to bootstrap now ...");
         boolean force = true;
         dbSpecific.bootstrap(conn, doWarn, force);
         dbSpecific.shutdown();
         pool.shutdown();
         pool = null;
         dbSpecific = null;
         tmpInfo = null;
      }
View Full Code Here

Examples of org.xmlBlaster.contrib.replication.I_ReplSlave.shutdown()

            log.warning("The slave '" + sessionName + "' is not registered.");
         else {
            I_ReplSlave slave = (I_ReplSlave)this.replSlaveMap.remove(sessionName);
            if (slave != null) {
               try {
                  slave.shutdown();
               }
               catch (Exception ex) {
                  log.severe("Could not shut down the slave '" + sessionName + "' properly");
                  ex.printStackTrace();
               }
View Full Code Here

Examples of org.xmlBlaster.engine.msgstore.I_Map.shutdown()

         assertEquals(ME+": Wrong size", queueEntries.length, i_map.getNumOfEntries());
         assertEquals(ME+": Wrong bytes", numOfBytes, i_map.getNumOfBytes());

         System.out.println("***" + ME + " [SUCCESS]");
         i_map.clear();
         i_map.shutdown();
      }
      catch(XmlBlasterException e) {
         log.severe("Exception thrown: " + e.getMessage());
         fail(ME + ": Exception thrown: " + e.getMessage());
      }
View Full Code Here

Examples of org.xmlBlaster.protocol.socket.CallbackSocketDriver.shutdown()

                  try {
                     AddressServer addr = this.addressServer;
                     if (addr != null) {
                        CallbackSocketDriver cbd = (CallbackSocketDriver)addr.getCallbackDriver();
                        if (cbd != null) {
                           cbd.shutdown(); // notify about lost connection
                        }
                     }
                  }
                  catch(Throwable xx) {
                     xx.printStackTrace();
View Full Code Here

Examples of org.xmlBlaster.test.util.Client.shutdown()

         }
        
         sub1.shutdown(false);
         sub2.shutdown(false);
         pub1.shutdown(true);
         deadMsg.shutdown(false);
      }
      catch (Exception ex) {
         ex.printStackTrace();
         assertTrue(false);
      }
View Full Code Here

Examples of org.xmlBlaster.util.Timeout.shutdown()

      String ME = "Timeout-Tester";
      Timeout timeout = new Timeout();
     
      final int numTimers = 10000;
      timeout.shutdown();
      timeout = new Timeout(); // get a new handle
      class Dummy2 implements I_Timeout {
         private String ME = "Dummy2";
         private long start = 0L;
         public void timeout(Object userData) {
View Full Code Here

Examples of org.xmlBlaster.util.dispatch.DispatchManager.shutdown()

         // We do a auto logout if the callback is down
         if (dispatchManager == null || dispatchManager.isDead()) {
            if (log.isLoggable(Level.FINE)) log.fine("Doing error handling for dead connection state ...");
  
            if (dispatchManager!=null) dispatchManager.shutdown();
  
            // 3. Kill login session
            if (this.sessionInfo != null && // if callback has been configured (async)
                sessionInfo.getConnectQos().getSessionCbQueueProperty().getCallbackAddresses().length > 0) {
              
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.