Examples of ping()


Examples of org.jboss.test.cts.interfaces.StatefulSession.ping()

      StatefulSessionHome sessionHome = ( StatefulSessionHome ) ctx.lookup("ejbcts/LongWaitStatefulSessionBean");
      StatefulSession sessionBean = sessionHome.create("testLongWait");   

      getLog().debug("Sleeping...");
      sessionBean.sleep(5000);
      sessionBean.ping();
      getLog().debug("+++ testLongWait passed");
  }

   public static Test suite() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.cts.interfaces.StatefulSessionLocal.ping()

      {
         Context ctx = new InitialContext();
         log.debug("+++ testPassivationByTime");
         StatefulSessionLocalHome sessionHome = ( StatefulSessionLocalHome ) ctx.lookup("ejbcts/StatefulSessionLocalBean");
         sessionBean1 = sessionHome.create("testPassivationByTimeLocal");   
         sessionBean1.ping();

       handle = sessionBean1.getHandle();

         log.debug("Waiting 41 seconds for passivation...");
         Thread.sleep(41*1000);
 
View Full Code Here

Examples of org.jboss.test.ejb3.basic.SimpleSession.ping()

   {
      InitialContext ctx = getInitialContext();
      String jndiName = "ejb3/basic/SimpleSessionBean";
      Object ref = ctx.lookup(jndiName);
      SimpleSession test = (SimpleSession) ref;
      test.ping();
   }
}
View Full Code Here

Examples of org.jboss.test.messaging.tools.container.Server.ping()

         try
         {
            while (true)
            {
               server.ping();
               log.debug("server " + i + " still alive ...");
               Thread.sleep(100);
            }
         }
         catch (Throwable e)
View Full Code Here

Examples of org.jboss.test.messaging.tools.jmx.rmi.Server.ping()

      kill(i);
      try
      {
         while(true)
         {
            server.ping();
            log.debug("server " + i + " still alive ...");
            Thread.sleep(10);
         }
      }
      catch (Throwable e)
View Full Code Here

Examples of org.jredis.JRedis.ping()

  }

  private void run(String password) {
    try {
      JRedis  jredis = new JRedisClient("localhost", 6379, "jredis", 0);
      jredis.ping();
     
      if(!jredis.exists(key)) {
        jredis.set(key, "Hello Again!");
        System.out.format("Hello!  You should run me again!\n");
      }
View Full Code Here

Examples of org.jredis.JRedisFuture.ping()

        do {
          int cnt = 0;
          Util.Timer timer = Timer.startNewTimer();
          Future<ResponseStatus> futureStat = null;
          while(cnt < reqCnt){
            futureStat = pipeline.ping();
            cnt++;
          }
          long reqDoneTime = timer.mark();
        futureStat.get();
          long respDoneTime = timer.mark();
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisClient.ping()

  }

  private void run(String password) {
    try {
      JRedis  jredis = new JRedisClient("localhost", 6379, "jredis", 0);
      jredis.ping();
     
      if(!jredis.exists(key)) {
        jredis.set(key, "Hello Again!");
        System.out.format("Hello!  You should run me again!\n");
      }
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisPipeline.ping()

       * ExecutionException handling code so its a bit prettier.
       */
      try {
        long start = System.currentTimeMillis();
       
          pipeline.ping();
          pipeline.flushdb();

          Random rand = new Random();
          byte[] data = new byte[8];
          for(int i=0; i<100000; i++){
View Full Code Here

Examples of org.moparscape.msc.gs.model.Player.ping()

        final String ip = player.getCurrentIP();
        IPBanManager.throttle(ip);
        continue;
      }
      PacketHandler handler = packetHandlers.get(p.getID());
      player.ping();
      if (handler != null) {
        try {
          handler.handlePacket(p, session);
          try {
            if (p.getID() != 5) {
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.