Package intf.mobile.storage

Examples of intf.mobile.storage.IndividualStorageService


    // get the state of the component
    String xmlState = getComponentState();

    // send the state of the component to the Storage Service
    IndividualStorageService ss = (IndividualStorageService)
      URLToReference.createReference(individualStorageServiceURL,
             IndividualStorageService.class.getName());
    return ss.storeState(xmlState);
  }
View Full Code Here


    try {
      // get the state of the component
      String xmlState = getComponentState();
     
      // send the state of the component to the Storage Service
      IndividualStorageService ss = (IndividualStorageService)
        URLToReference.createReference(individualStorageServiceURL,
               IndividualStorageService.class.getName());
      storageID = ss.storeState(xmlState);
    } catch (Exception e) {
      logger.severe("Exception while creating/storing checkpoint", e);
      try {
        // send an exception message to the coordinator
        AppCoordinatorCallback coord = (AppCoordinatorCallback)
View Full Code Here

         String storageID)
    throws gov.cca.CCAException {
    logger.finest("called");

    // retrieve the component state from the storage service
    IndividualStorageService ss = (IndividualStorageService)
      URLToReference.createReference(individualStorageServiceURL,
             IndividualStorageService.class.getName());
    String xmlState = ss.retrieveState(storageID);

    // set the state of the component
    setComponentState(xmlState);
  }
View Full Code Here

      System.out.println(USAGE);
      System.exit(1);
    }
     
    // instantiate the MSS
    IndividualStorageService iss = new InMemoryIndividualStorageServiceImpl(serviceName,
                      portNum);
    logger.finest("IndividualStorageService instantiated");

    MasterStorageService mss = (MasterStorageService) SoapServices.getDefault().
      createStartpoint(masterURL,  // service location
View Full Code Here

    // retrieve the state for the migrated component
    cid.loadComponentState(individualStorageServiceURL, storageID);

    // delete state from storage service
    IndividualStorageService iss = (IndividualStorageService)
      URLToReference.createReference(individualStorageServiceURL,
             IndividualStorageService.class.getName());
    iss.deleteState(storageID);

    // resume execution of the migrated component
    cid.resumeExecution();

    // set the isFrozen false to false
View Full Code Here

    // delete old checkpoints
    Object[] cpList = oldCheckpointMap.values().toArray();
    for (int i = 0; i < cpList.length; i++) {
      CheckpointInfo cpInfo = (CheckpointInfo) cpList[i];
      IndividualStorageService iss = (IndividualStorageService)
  URLToReference.createReference(cpInfo.getStorageServiceURL(),
               IndividualStorageService.class.getName());
      iss.deleteState(cpInfo.getStorageID());
    }

    long time4 = System.currentTimeMillis();
    logger.info("Committing checkpoints: " + (time4 - time3));
View Full Code Here

TOP

Related Classes of intf.mobile.storage.IndividualStorageService

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.