Examples of sendNotification()


Examples of com.dbay.apns4j.IApnsService.sendNotification()

  }
  public void resend(String name, Queue<PushNotification> queue) {
    IApnsService service = ApnsServiceImpl.getCachedService(name);
    if (service != null) {
      while (!queue.isEmpty()) {
        service.sendNotification(queue.poll());
      }
    } else {
      logger.error("Cached service is null. name: " + name);
    }
  }
View Full Code Here

Examples of com.hazelcast.mapreduce.impl.MapReduceService.sendNotification()

        if (reducerChunk.partitionId != -1) {
            MapReduceService mapReduceService = supervisor.getMapReduceService();
            ReducingFinishedNotification notification = new ReducingFinishedNotification(mapReduceService.getLocalAddress(), name,
                    jobId, reducerChunk.partitionId);

            mapReduceService.sendNotification(reducerChunk.sender, notification);
        }
    }

}
View Full Code Here

Examples of com.hazelcast.mapreduce.impl.MapReduceService.sendNotification()

        if (reducerChunk.partitionId != -1) {
            MapReduceService mapReduceService = supervisor.getMapReduceService();
            ReducingFinishedNotification notification = new ReducingFinishedNotification(mapReduceService.getLocalAddress(), name,
                    jobId, reducerChunk.partitionId);

            mapReduceService.sendNotification(reducerChunk.sender, notification);
        }
    }

}
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.client.JsonRpcClient.sendNotification()

        serverRequestLatch.countDown();
      }
    });

    client.sendNotification("echo", 1);
    client.sendNotification("echo", 2);
    client.sendNotification("echo", 3);

    Assert.assertTrue("The server has not invoked requests",
        serverRequestLatch.await(5000, TimeUnit.MILLISECONDS));
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.client.JsonRpcClient.sendNotification()

        serverRequestLatch.countDown();
      }
    });

    client.sendNotification("echo", 1);
    client.sendNotification("echo", 2);
    client.sendNotification("echo", 3);

    Assert.assertTrue("The server has not invoked requests",
        serverRequestLatch.await(5000, TimeUnit.MILLISECONDS));
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.client.JsonRpcClient.sendNotification()

      }
    });

    client.sendNotification("echo", 1);
    client.sendNotification("echo", 2);
    client.sendNotification("echo", 3);

    Assert.assertTrue("The server has not invoked requests",
        serverRequestLatch.await(5000, TimeUnit.MILLISECONDS));

    client.close();
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.channel.RMIClient.sendNotification()

      ShutdownEvent shutdownEvent = new ShutdownEvent(SERVER_INSTANCE, "true");
      getLogger().log(Level.INFO,
          "sending notification to server..." +
          SERVER_INSTANCE);
      AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
      getLogger().log(Level.INFO,
          "server.shutdown_complete");

  } catch(Exception e) {
      getLogger().log(Level.SEVERE, "j2eerunner.initError", e);
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.channel.RMIClient.sendNotification()

        // domains set the instance name to "server" -- but not in the RepositoryConfig
        if(!ok(instanceName))
            instanceName = "server";
       
      ShutdownEvent shutdownEvent = new ShutdownEvent(instanceName, stopInstancesOverride);
      AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
        waitUntilStopped(60);
        postStop();
    }

    public boolean stopInstanceWithinTime(int timeout) throws InstanceException
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.channel.RMIClient.sendNotification()

        // domains set the instance name to "server" -- but not in the RepositoryConfig
        if(!ok(instanceName))
            instanceName = "server";
       
  ShutdownEvent shutdownEvent = new ShutdownEvent(instanceName, "true");
  AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
        waitUntilStopped(timeout);
        if (isInstanceNotRunning()) {
            postStop();
            return true;
        } else return false;
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.channel.RMIClient.sendNotification()

        try {
            getLogger().log(Level.INFO, "nodeAgent.sending-stop");
            String agentName = getConfig().getRepositoryName();
            RMIClient rmiClient = AdminChannel.getRMIClient(agentName);               
            ShutdownEvent shutdownEvent = new ShutdownEvent(agentName, "true");    
            AdminEventResult result = rmiClient.sendNotification(shutdownEvent);           
        } catch(Exception ex) {        
            getLogger().log(Level.WARNING, "nodeAgent.exception", ex);
            System.exit(1);
       
    }      
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.