test_class.declarator: masterDataBundleManager
test_class.original_string: StandardMasterDataBundleManager masterDataBundleManager;
test_class.type: StandardMasterDataBundleManager
test_class.var_name: masterDataBundleManager
test_class.declarator: activeSpaceController
test_class.original_string: ActiveSpaceController activeSpaceController;
test_class.type: ActiveSpaceController
test_class.var_name: activeSpaceController
test_class.declarator: resourceRepositoryServer
test_class.original_string: ResourceRepositoryServer resourceRepositoryServer;
test_class.type: ResourceRepositoryServer
test_class.var_name: resourceRepositoryServer
test_class.declarator: testResults
test_class.original_string: TestResults testResults;
test_class.type: TestResults
test_class.var_name: testResults
test_class.declarator: TEST_RESOURCE_CATEGORY = "data"
test_class.modifier: static final
test_class.original_string: static final String TEST_RESOURCE_CATEGORY = "data";
test_class.type: String
test_class.var_name: TEST_RESOURCE_CATEGORY
test_class.declarator: TEST_UUID = "1bd6a9762679cba97d6b"
test_class.modifier: static final
test_class.original_string: static final String TEST_UUID = "1bd6a9762679cba97d6b";
test_class.type: String
test_class.var_name: TEST_UUID
test_class.declarator: TEST_RESOURCE_VERSION = StandardMasterDataBundleManager.DATA_BUNDLE_STATIC_VERSION
test_class.modifier: static final
test_class.original_string: static final Version TEST_RESOURCE_VERSION = StandardMasterDataBundleManager.DATA_BUNDLE_STATIC_VERSION;
test_class.type: Version
test_class.var_name: TEST_RESOURCE_VERSION
test_class.declarator: TEST_URI_SEPARATOR = "-"
test_class.modifier: static final
test_class.original_string: static final String TEST_URI_SEPARATOR = "-";
test_class.type: String
test_class.var_name: TEST_URI_SEPARATOR
test_class.declarator: TEST_OUTPUT_CONTENTS = "Qjwhqekjwh ekqjwhekqjweh q\n"
        + "WJQHD kqjhd qwDHOuwhqdouwh qWhodwq wqjdhwkqjdhqwk djhqKWJDhkqwjd\n"
test_class.modifier: static final
test_class.original_string: static final String TEST_OUTPUT_CONTENTS = "Qjwhqekjwh ekqjwhekqjweh q\n"
        + "WJQHD kqjhd qwDHOuwhqdouwh qWhodwq wqjdhwkqjdhqwk djhqKWJDhkqwjd\n";
test_class.type: String
test_class.var_name: TEST_OUTPUT_CONTENTS
test_class.declarator: TEST_RESOURCE = combineArgs(new Object[] { TEST_RESOURCE_CATEGORY, TEST_UUID,
        TEST_RESOURCE_VERSION })
test_class.modifier: static final
test_class.original_string: static final String TEST_RESOURCE = combineArgs(new Object[] { TEST_RESOURCE_CATEGORY, TEST_UUID,
        TEST_RESOURCE_VERSION });
test_class.type: String
test_class.var_name: TEST_RESOURCE
test_class.file: runtime/master/interactivespaces-master/src/test/java/interactivespaces/master/server/services/internal/StandardMasterDataBundleManagerTest.java
test_class.identifier: StandardMasterDataBundleManagerTest
test_case.body: @Test
    public void testRestoreControllerDataBundle() {
      masterDataBundleManager.restoreControllerDataBundle(activeSpaceController);
  
      assertEquals(ResourceRepositoryUploadChannel.DATA_BUNDLE_UPLOAD, testResults.uploadChannel);
      testResults.resourceListener.onUploadSuccess(TEST_UUID, new TestCopyableResource());
  
      assertEquals(TEST_OUTPUT_CONTENTS, testResults.testOutputStream.toString());
      assertEquals(TEST_RESOURCE, testResults.outputUri);
      assertEquals(TEST_RESOURCE, testResults.sourceUri);
      assertNull(testResults.destinationUri);
    }
test_case.class_method_signature: StandardMasterDataBundleManagerTest.testRestoreControllerDataBundle()
test_case.full_signature: @Test public void testRestoreControllerDataBundle()
test_case.identifier: testRestoreControllerDataBundle
test_case.invocations: restoreControllerDataBundle assertEquals onUploadSuccess assertEquals toString assertEquals assertEquals assertNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRestoreControllerDataBundle()
focal_class.declarator: DATA_BUNDLE_STATIC_VERSION = new Version(0, 0, 0, "noversion")
focal_class.modifier: public static final
focal_class.original_string: public static final Version DATA_BUNDLE_STATIC_VERSION = new Version(0, 0, 0, "noversion");
focal_class.type: Version
focal_class.var_name: DATA_BUNDLE_STATIC_VERSION
focal_class.declarator: resourceRepositoryServer
focal_class.modifier: private
focal_class.original_string: private ResourceRepositoryServer resourceRepositoryServer;
focal_class.type: ResourceRepositoryServer
focal_class.var_name: resourceRepositoryServer
focal_class.declarator: log
focal_class.modifier: private
focal_class.original_string: private Log log;
focal_class.type: Log
focal_class.var_name: log
focal_class.declarator: fileSupport = FileSupportImpl.INSTANCE
focal_class.modifier: private final
focal_class.original_string: private final FileSupport fileSupport = FileSupportImpl.INSTANCE;
focal_class.type: FileSupport
focal_class.var_name: fileSupport
focal_class.file: runtime/master/interactivespaces-master/src/main/java/interactivespaces/master/server/services/internal/StandardMasterDataBundleManager.java
focal_class.identifier: StandardMasterDataBundleManager
focal_class.interfaces: implements MasterDataBundleManager
focal_class.class_method_signature: StandardMasterDataBundleManager.startup()
focal_class.full_signature: @Override public void startup()
focal_class.identifier: startup
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startup()
focal_class.class_method_signature: StandardMasterDataBundleManager.shutdown()
focal_class.full_signature: @Override public void shutdown()
focal_class.identifier: shutdown
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shutdown()
focal_class.class_method_signature: StandardMasterDataBundleManager.captureControllerDataBundle(ActiveSpaceController controller)
focal_class.full_signature: @Override public void captureControllerDataBundle(ActiveSpaceController controller)
focal_class.identifier: captureControllerDataBundle
focal_class.modifiers: @Override public
focal_class.parameters: (ActiveSpaceController controller)
focal_class.return: void
focal_class.signature: void captureControllerDataBundle(ActiveSpaceController controller)
focal_class.class_method_signature: StandardMasterDataBundleManager.sendControllerDataBundleCaptureRequest(ActiveSpaceController controller, String destinationUri)
focal_class.full_signature: protected abstract void sendControllerDataBundleCaptureRequest(ActiveSpaceController controller, String destinationUri)
focal_class.identifier: sendControllerDataBundleCaptureRequest
focal_class.modifiers: protected abstract
focal_class.parameters: (ActiveSpaceController controller, String destinationUri)
focal_class.return: void
focal_class.signature: void sendControllerDataBundleCaptureRequest(ActiveSpaceController controller, String destinationUri)
focal_class.class_method_signature: StandardMasterDataBundleManager.restoreControllerDataBundle(ActiveSpaceController controller)
focal_class.full_signature: @Override public void restoreControllerDataBundle(ActiveSpaceController controller)
focal_class.identifier: restoreControllerDataBundle
focal_class.modifiers: @Override public
focal_class.parameters: (ActiveSpaceController controller)
focal_class.return: void
focal_class.signature: void restoreControllerDataBundle(ActiveSpaceController controller)
focal_class.class_method_signature: StandardMasterDataBundleManager.sendControllerDataBundleRestoreRequest(ActiveSpaceController controller, String sourceUri)
focal_class.full_signature: protected abstract void sendControllerDataBundleRestoreRequest(ActiveSpaceController controller, String sourceUri)
focal_class.identifier: sendControllerDataBundleRestoreRequest
focal_class.modifiers: protected abstract
focal_class.parameters: (ActiveSpaceController controller, String sourceUri)
focal_class.return: void
focal_class.signature: void sendControllerDataBundleRestoreRequest(ActiveSpaceController controller, String sourceUri)
focal_class.class_method_signature: StandardMasterDataBundleManager.handleDataBundleUploadSuccess(String controllerUuid, CopyableResource resourceUpload)
focal_class.full_signature: private void handleDataBundleUploadSuccess(String controllerUuid, CopyableResource resourceUpload)
focal_class.identifier: handleDataBundleUploadSuccess
focal_class.modifiers: private
focal_class.parameters: (String controllerUuid, CopyableResource resourceUpload)
focal_class.return: void
focal_class.signature: void handleDataBundleUploadSuccess(String controllerUuid, CopyableResource resourceUpload)
focal_class.class_method_signature: StandardMasterDataBundleManager.setRepositoryServer(ResourceRepositoryServer resourceRepositoryServer)
focal_class.full_signature: public void setRepositoryServer(ResourceRepositoryServer resourceRepositoryServer)
focal_class.identifier: setRepositoryServer
focal_class.modifiers: public
focal_class.parameters: (ResourceRepositoryServer resourceRepositoryServer)
focal_class.return: void
focal_class.signature: void setRepositoryServer(ResourceRepositoryServer resourceRepositoryServer)
focal_class.class_method_signature: StandardMasterDataBundleManager.setLog(Log log)
focal_class.full_signature: public void setLog(Log log)
focal_class.identifier: setLog
focal_class.modifiers: public
focal_class.parameters: (Log log)
focal_class.return: void
focal_class.signature: void setLog(Log log)
focal_method.body: @Override
    public void restoreControllerDataBundle(ActiveSpaceController controller) {
      String uuid = controller.getSpaceController().getUuid();
      String sourceUri =
          resourceRepositoryServer.getResourceUri(ResourceRepositoryStorageManager.RESOURCE_CATEGORY_DATA, uuid,
              DATA_BUNDLE_STATIC_VERSION);
      sendControllerDataBundleRestoreRequest(controller, sourceUri);
    }
focal_method.class_method_signature: StandardMasterDataBundleManager.restoreControllerDataBundle(ActiveSpaceController controller)
focal_method.full_signature: @Override public void restoreControllerDataBundle(ActiveSpaceController controller)
focal_method.identifier: restoreControllerDataBundle
focal_method.invocations: getUuid getSpaceController getResourceUri sendControllerDataBundleRestoreRequest
focal_method.modifiers: @Override public
focal_method.parameters: (ActiveSpaceController controller)
focal_method.return: void
focal_method.signature: void restoreControllerDataBundle(ActiveSpaceController controller)