Examples of shutdown()


Examples of org.xmlBlaster.util.plugin.I_Plugin.shutdown()

            }
         }
         else {
            try {
               I_Plugin plugin = this.glob.getPluginManager().getPluginObject(pluginConfig.getPluginInfo());
               plugin.shutdown();
               this.glob.getPluginManager().removeFromPluginCache(pluginConfig.getPluginInfo().getId());
            }
            catch (XmlBlasterException e) {
               log.warning("Failed to remove plugin: " + e.toString());
               throw new IllegalArgumentException("Failed to create plugin: " + e.toString());
View Full Code Here

Examples of org.xmlBlaster.util.protocol.socket.SocketExecutor.shutdown()

         // Give a Authenticate.connect exception to be delivered to the client
         // or the client some chance to close the socket itself after disconnect
         long delay = 5000; // 5 sec
         glob.getBurstModeTimer().addTimeoutListener(new I_Timeout() {
               public void timeout(Object userData) {
                  se.shutdown();
                  //handler = null;
               }
            }, delay, null);
      }
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.I_Queue.shutdown()

         tmpQueue.put(entry, false);
         entry = new DummyEntry(glob, PriorityEnum.NORM_PRIORITY, queue.getStorageId(), 100, true);
         tmpQueue.put(entry, false);
         entry = new DummyEntry(glob, PriorityEnum.NORM_PRIORITY, queue.getStorageId(), 100, true);
         tmpQueue.put(entry, false);
         tmpQueue.shutdown(); // to allow to initialize again
         I_Queue tmpQueue2 = pluginManager.getPlugin(pluginInfo, queueId, cbProp);
         long numOfEntries = tmpQueue2.getNumOfEntries();
         assertEquals("Wrong number of entries in queue", 3L, numOfEntries);
         List<I_Entry> lst = tmpQueue2.peek(-1, -1L);
         assertEquals("Wrong number of entries retrieved from queue", 3, lst.size());
View Full Code Here

Examples of org.xnio.XnioWorker.shutdown()

        latch.await(10, TimeUnit.SECONDS);
        Assert.assertEquals(longMsg.toString(), result.get());
        clientChannel.sendClose();

        client.shutdown();
        server.stop();
    }

    @Test
    @Ignore
View Full Code Here

Examples of org.xtreemfs.babudb.api.BabuDB.shutdown()

           
            // create a checkpoint for faster start-ups
            databaseSystem.getCheckpointer().checkpoint();
           
            // shutdown database
            databaseSystem.shutdown();
        } catch (BabuDBException ex) {
            ex.printStackTrace();
        }
    }
}
View Full Code Here

Examples of org.xtreemfs.babudb.api.database.Database.shutdown()

            }
        }

        System.out.println("shutting down databases...");
        database.shutdown();
        backupDB.shutdown();
    }

    public static void main(String[] args) {
        TestRunner.run(BackupTest.class);
    }
View Full Code Here

Examples of org.xtreemfs.foundation.TimeSync.shutdown()

     * @throws java.lang.Exception
     */
    @AfterClass
    public static void tearDownAfterClass() throws Exception {
        TimeSync ts = TimeSync.getInstance();
        ts.shutdown();
        ts.waitForShutdown();
    }
   
    /**
     * @throws Exception
View Full Code Here

Examples of org.zorbaxquery.api.Zorba.shutdown()

      System.out.println(test);
    }
    iter.close();
    iter.destroy();
    xquery.destroy();
    zorba.shutdown();
  }
}
View Full Code Here

Examples of org.zper.server.ZPReader.shutdown()

        try {
            writer.start();
            reader.start();
        } finally {
            writer.shutdown();
            reader.shutdown();

            destoryed = true;
        }
    }
View Full Code Here

Examples of org.zper.server.ZPWriter.shutdown()

        try {
            writer.start();
            reader.start();
        } finally {
            writer.shutdown();
            reader.shutdown();

            destoryed = true;
        }
    }
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.