Package org.nebulaframework.grid.service.message

Examples of org.nebulaframework.grid.service.message.ServiceMessage


    finished++;
    // Remove GridJob from Active GridJobs map
    removeJob(jobId);

    // Create ServiceMessage for Job Cancel Notification
    ServiceMessage message = new ServiceMessage(jobId,
        ServiceMessageType.JOB_CANCEL);

    // Send ServiceMessage to GridNodes
    cluster.getServiceMessageSender().sendServiceMessage(message);
    log.debug("[ClusterJobService] Notified Job Cancel {" + jobId + "}");
View Full Code Here


   */
  public void disconnected() {
    instance = null;
   
    // Fire Service Event (as ClusterShutdown)
    ServiceMessage message = new ServiceMessage(this.clusterId.toString(),
                                                ServiceMessageType.NODE_DISCONNECTED);
   
    // Reset Grid State
    Grid.nodeDisconnected();
   
View Full Code Here

         
          String msgBody = workerId + "#" + profile.getJobId();
         
         
          // Send banned message
          ServiceMessage message = new ServiceMessage(msgBody,
                                                      ServiceMessageType.NODE_BANNED);
         
          try {
            ServiceMessageSender sender = ClusterManager.getInstance().getServiceMessageSender();
            sender.sendServiceMessage(message);
View Full Code Here

     
      if (node.getId().toString().equals(message.getMessage().split("#")[0])) {
       
        try {
          // Create a Cancel Message and Send
          ServiceMessage msg = new ServiceMessage(message.getMessage().split("#")[1], ServiceMessageType.JOB_CANCEL);
          node.getJobExecutionService().onServiceMessage(msg);
         
        } catch (Exception e) {
          log.warn("[ServiceMessage] Exception while processing message", e);
        }
View Full Code Here

TOP

Related Classes of org.nebulaframework.grid.service.message.ServiceMessage

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.