Package models.agent.batch.commands.message

Examples of models.agent.batch.commands.message.GenericResponseFromDirector


    final String directorJobUuid = UUID.randomUUID().toString();
    jobStatus.setJobInfo(directorJobUuid, nodeGroupType, agentCommandType);
    if (asyncMode) {
     
      scheduler.tell(new JobInitInfo(nodeGroupType, agentCommandType, localMode, failOver, dataStore, maxConcNum, asyncMode, directorJobUuid, dataStore.get(nodeGroupType).getNodeDataMapValid().size()), ActorRef.noSender());
      GenericResponseFromDirector uuid = new GenericResponseFromDirector();
      uuid.directorJobUuid = directorJobUuid;
      return uuid;
      
    }
     
    scheduler.tell(new JobInitInfo(nodeGroupType, agentCommandType, localMode, failOver, dataStore, maxConcNum, asyncMode, directorJobUuid, dataStore.get(nodeGroupType).getNodeDataMapValid().size()), ActorRef.noSender());
    GenericResponseFromDirector uuid = new GenericResponseFromDirector();
    uuid.directorJobUuid = directorJobUuid;
   
    JobStatus.JobInfo jobInfo = jobStatus.getJobInfo(directorJobUuid);
    while (jobInfo!=null && jobInfo.state != JobStatus.State.gathered) {
      jobInfo = jobStatus.getJobInfo(directorJobUuid);
View Full Code Here


        : AgentDataProvider.allAgentData;

    Map<String, NodeGroupSourceMetadata> nodeGroupStore = (isAdhocData) ? AgentDataProvider.adhocNodeGroups
        : AgentDataProvider.nodeGroupSourceMetadatas;

    GenericResponseFromDirector batchResponseFromManager = null;

    try {

      /**
       * CATCH EXCEPTION: fixed 20130828. LESSON: for none existing node
View Full Code Here

        : AgentDataProvider.allAgentData;

    Map<String, NodeGroupSourceMetadata> nodeGroupStore = (isAdhocData) ? AgentDataProvider.adhocNodeGroups
        : AgentDataProvider.nodeGroupSourceMetadatas;

    GenericResponseFromDirector batchResponseFromManager = null;

    try {

      /**
       * CATCH EXCEPTION: fixed 20130828. LESSON: for none existing node
View Full Code Here

  public static String generateUpdateSendAgentCommandToNodeGroupForAsyncPolling(
      String nodeGroupType, String agentCommandType, boolean localMode, boolean failOver, int maxConcNum) {

    try {

      GenericResponseFromDirector response = AgentCommandProvider
          .generateUpdateSendAgentCommandToNodeGroupPredefined(
              nodeGroupType, agentCommandType, localMode, failOver, maxConcNum);

     
      return response.directorJobUuid;
View Full Code Here

 
  public static GenericResponseFromDirector generateUpdateSendAgentCommandToNodeGroupAndSleep(
      String nodeGroupType, String agentCommandType,
      long sleepTimeAfterDoneMillis) {

    GenericResponseFromDirector batchResponseFromManager = generateUpdateSendAgentCommandToNodeGroupPredefined(
        nodeGroupType, agentCommandType);
    try {
      Thread.sleep(sleepTimeAfterDoneMillis);
    } catch (InterruptedException e) {
      e.printStackTrace();
View Full Code Here

 
  public static GenericResponseFromDirector generateUpdateSendAgentCommandToNodeGroupAdhocWithReplaceVarAndSleep(
      String nodeGroupType, String agentCommandType, Map<String, String> replacementVarMap,
      long sleepTimeAfterDoneMillis) {

    GenericResponseFromDirector batchResponseFromManager = generateUpdateSendAgentCommandWithReplaceVarAdhocMap(
        nodeGroupType, agentCommandType, replacementVarMap);
    try {
      Thread.sleep(sleepTimeAfterDoneMillis);
    } catch (InterruptedException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of models.agent.batch.commands.message.GenericResponseFromDirector

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.