Package org.apache.helix

Examples of org.apache.helix.HelixAutoController


    case PARTICIPANT:
      HelixParticipant participant = (HelixParticipant) _role;
      engine = participant.getStateMachineEngine();
      break;
    case CONTROLLER_PARTICIPANT:
      HelixAutoController autoController = (HelixAutoController) _role;
      engine = autoController.getStateMachineEngine();
      break;
    default:
      LOG.info("helix manager type: " + _role.getType()
          + " does NOT have state-machine-engine");
      break;
View Full Code Here


    case CONTROLLER:
      HelixController controller = (HelixController) _role;
      isLeader = controller.isLeader();
      break;
    case CONTROLLER_PARTICIPANT:
      HelixAutoController autoController = (HelixAutoController) _role;
      isLeader = autoController.isLeader();
      break;
    default:
      LOG.info("helix manager type: " + _role.getType() + " does NOT support leadership");
      break;
    }
View Full Code Here

    case PARTICIPANT:
      HelixParticipant participant = (HelixParticipant) _role;
      participant.addPreConnectCallback(callback);
      break;
    case CONTROLLER_PARTICIPANT:
      HelixAutoController autoController = (HelixAutoController) _role;
      autoController.addPreConnectCallback(callback);
      break;
    default:
      LOG.info("helix manager type: " + _role.getType()
          + " does NOT support add pre-connect callback");
      break;
View Full Code Here

    case PARTICIPANT:
      HelixParticipant participant = (HelixParticipant) _role;
      participant.setLiveInstanceInfoProvider(liveInstanceInfoProvider);
      break;
    case CONTROLLER_PARTICIPANT:
      HelixAutoController autoController = (HelixAutoController) _role;
      autoController.setLiveInstanceInfoProvider(liveInstanceInfoProvider);
      break;
    default:
      LOG.info("helix manager type: " + _role.getType()
          + " does NOT support set additional live instance information");
      break;
View Full Code Here

TOP

Related Classes of org.apache.helix.HelixAutoController

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.