Package graphs

Examples of graphs.GraphPartition


        + partitionNumers);
    DataLocator aDataLocator = DataLocator.getDataLocator(partitionSize);
    for (Integer partitionNumber : partitionNumers) {
      String partitionFile = aDataLocator
          .getPartitionFile(partitionNumber);
      GraphPartition aGraphPartition = new GraphPartition(
          partitionNumber, partitionFile, this.vertexClassName, this,
          aDataLocator);
      logger.info("Worker : " + this.getId()
          + " initialized partition : " + partitionFile);
      this.listOfPartitions.add(aGraphPartition);
View Full Code Here


      logger.info("Restoring state of partition : "+partition);
      String chkPointFile = aDataLocator.getCheckpointFile(checkPointNumber,
          partition);
      FileInputStream fis = new FileInputStream(chkPointFile);
      ObjectInputStream in = new ObjectInputStream(fis);
      GraphPartition aPartition=(GraphPartition) in.readObject();
      aPartition.setWorker(this);
      aPartition.setDataLocator(aDataLocator);
      fis.close();
      in.close();
      restoredList.add(aPartition);
      logger.info("Restored : "+aPartition);
    }
View Full Code Here

TOP

Related Classes of graphs.GraphPartition

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.