Package intf.mobile.storage

Examples of intf.mobile.storage.MasterStorageService


    // instantiate the MSS
    IndividualStorageService iss = new InMemoryIndividualStorageServiceImpl(serviceName,
                      portNum);
    logger.finest("IndividualStorageService instantiated");

    MasterStorageService mss = (MasterStorageService) SoapServices.getDefault().
      createStartpoint(masterURL,  // service location
           new Class[]{MasterStorageService.class}, // remote service interface
           "", // endpoint name
           soaprmi.soap.SoapStyle.SOAP11,
           "" // SOAPAction
           );
    String issLocation = ((RemoteRef) mss).getSoapRMIPort().getEndpoint().getLocation();
    mss.registerIndividualStorageService(issLocation);
    logger.finest("Registered location of service with the MasterStorageService");

    logger.finest("IndividualStorageService up and available at: " + issLocation);
  }
View Full Code Here


    // check if the above call was successful
    if (mInfo.getMigrationStatus() == AppCoordinatorCallback.EXCEPTION)
      throw new NonstandardException("Remote component threw exception while being frozen");

    // Store the individual component state into persistent storage
    MasterStorageService mss = (MasterStorageService)
      URLToReference.createReference(masterStorageServiceURL,
             MasterStorageService.class.getName());
    String individualStorageServiceURL = mss.getIndividualStorageServiceLocation();
    String storageID = cid.storeIndividualComponentState(individualStorageServiceURL);

    // destroy the remote component
    try {
      cid.destroy();
View Full Code Here

    }
    long time2 = System.currentTimeMillis();
    logger.info("Time for components to freeze: " + (time2 - time1));

    // send request to store the state of the components
    MasterStorageService mss = (MasterStorageService)
      URLToReference.createReference(masterStorageServiceURL,
             MasterStorageService.class.getName());
    for (int i = 0; i < componentList.length; i++) {
      String individualStorageServiceURL = mss.getIndividualStorageServiceLocation();
      ComponentInfo cInfo = (ComponentInfo) componentList[i];
      MobileComponentID cid =
  new MobileComponentIDClientImpl(cInfo.getInstanceName(),
          cInfo.getInstanceHandle());
      cid.appendStateToCheckpoint(individualStorageServiceURL, getGSH());
View Full Code Here

    String[] myArgs = parseArgs(args);
    String serviceName = myArgs[SERVICE_NAME];
    int portNum = Integer.parseInt(myArgs[SERVICE_PORT]);

    // instantiate the MSS
    MasterStorageService mss = new InMemoryMasterStorageServiceImpl(serviceName,
                    portNum);
    logger.finest("MasterStorageService up and available at: " +
      ((RemoteRef) mss).getSoapRMIPort().getEndpoint().getLocation());
  }
View Full Code Here

TOP

Related Classes of intf.mobile.storage.MasterStorageService

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.