Package org.apache.giraph.zk

Examples of org.apache.giraph.zk.PredicateLock


   * Constructor.
   *
   * @param progressable {@link Progressable} to report progress
   */
  public InputSplitEvents(Progressable progressable) {
    allReadyChanged = new PredicateLock(progressable);
    stateChanged = new PredicateLock(progressable);
    allDoneChanged = new PredicateLock(progressable);
    doneStateChanged = new PredicateLock(progressable);
  }
View Full Code Here


      Mapper<?, ?, ?, ?>.Context context,
      GraphTaskManager<I, V, E> graphTaskManager) {
    this.mappingInputSplitsEvents = new InputSplitEvents(context);
    this.vertexInputSplitsEvents = new InputSplitEvents(context);
    this.edgeInputSplitsEvents = new InputSplitEvents(context);
    this.connectedEvent = new PredicateLock(context);
    this.workerHealthRegistrationChanged = new PredicateLock(context);
    this.addressesAndPartitionsReadyChanged = new PredicateLock(context);
    this.applicationAttemptChanged = new PredicateLock(context);
    this.superstepFinished = new PredicateLock(context);
    this.masterElectionChildrenChanged = new PredicateLock(context);
    this.cleanedUpChildrenChanged = new PredicateLock(context);

    registerBspEvent(connectedEvent);
    registerBspEvent(workerHealthRegistrationChanged);
    registerBspEvent(vertexInputSplitsEvents.getAllReadyChanged());
    registerBspEvent(vertexInputSplitsEvents.getStateChanged());
View Full Code Here

   */
  public BspServiceMaster(
      Mapper<?, ?, ?, ?>.Context context,
      GraphTaskManager<I, V, E> graphTaskManager) {
    super(context, graphTaskManager);
    workerWroteCheckpoint = new PredicateLock(context);
    registerBspEvent(workerWroteCheckpoint);
    superstepStateChanged = new PredicateLock(context);
    registerBspEvent(superstepStateChanged);

    ImmutableClassesGiraphConfiguration<I, V, E> conf =
        getConfiguration();

View Full Code Here

    localData = new LocalData<>(conf);
    translateEdge = getConfiguration().edgeTranslationInstance();
    if (translateEdge != null) {
      translateEdge.initialize(this);
    }
    partitionExchangeChildrenChanged = new PredicateLock(context);
    registerBspEvent(partitionExchangeChildrenChanged);
    workerGraphPartitioner =
        getGraphPartitionerFactory().createWorkerGraphPartitioner();
    workerInfo = new WorkerInfo();
    workerServer = new NettyWorkerServer<I, V, E>(conf, this, context,
View Full Code Here

TOP

Related Classes of org.apache.giraph.zk.PredicateLock

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.