test_class.declarator: INTERPRETER_SCRIPT =
            System.getProperty("os.name").startsWith("Windows") ?
                    "../bin/interpreter.cmd" :
                    "../bin/interpreter.sh"
test_class.modifier: private static final
test_class.original_string: private static final String INTERPRETER_SCRIPT =
            System.getProperty("os.name").startsWith("Windows") ?
                    "../bin/interpreter.cmd" :
                    "../bin/interpreter.sh";
test_class.type: String
test_class.var_name: INTERPRETER_SCRIPT
test_class.declarator: intpGroup1
test_class.modifier: private
test_class.original_string: private InterpreterGroup intpGroup1;
test_class.type: InterpreterGroup
test_class.var_name: intpGroup1
test_class.declarator: intpGroup2
test_class.modifier: private
test_class.original_string: private InterpreterGroup intpGroup2;
test_class.type: InterpreterGroup
test_class.var_name: intpGroup2
test_class.declarator: env
test_class.modifier: private
test_class.original_string: private HashMap<String, String> env;
test_class.type: HashMap<String, String>
test_class.var_name: env
test_class.declarator: intp1
test_class.modifier: private
test_class.original_string: private RemoteInterpreter intp1;
test_class.type: RemoteInterpreter
test_class.var_name: intp1
test_class.declarator: intp2
test_class.modifier: private
test_class.original_string: private RemoteInterpreter intp2;
test_class.type: RemoteInterpreter
test_class.var_name: intp2
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private InterpreterContext context;
test_class.type: InterpreterContext
test_class.var_name: context
test_class.declarator: eventPoller1
test_class.modifier: private
test_class.original_string: private RemoteInterpreterEventPoller eventPoller1;
test_class.type: RemoteInterpreterEventPoller
test_class.var_name: eventPoller1
test_class.declarator: eventPoller2
test_class.modifier: private
test_class.original_string: private RemoteInterpreterEventPoller eventPoller2;
test_class.type: RemoteInterpreterEventPoller
test_class.var_name: eventPoller2
test_class.file: smart-zeppelin/zeppelin-interpreter/src/test/java/org/apache/zeppelin/resource/DistributedResourcePoolTest.java
test_class.identifier: DistributedResourcePoolTest
test_case.body: @Test
    public void testResourcePoolUtils() {
      Gson gson = new Gson();
      InterpreterResult ret;
  
      // when create some resources
      intp1.interpret("put note1:paragraph1:key1 value1", context);
      intp1.interpret("put note1:paragraph2:key1 value2", context);
      intp2.interpret("put note2:paragraph1:key1 value1", context);
      intp2.interpret("put note2:paragraph2:key2 value2", context);
  
  
      // then get all resources.
      assertEquals(4, ResourcePoolUtils.getAllResources().size());
  
      // when remove all resources from note1
      ResourcePoolUtils.removeResourcesBelongsToNote("note1");
  
      // then resources should be removed.
      assertEquals(2, ResourcePoolUtils.getAllResources().size());
      assertEquals("", gson.fromJson(
          intp1.interpret("get note1:paragraph1:key1", context).message().get(0).getData(),
          String.class));
      assertEquals("", gson.fromJson(
          intp1.interpret("get note1:paragraph2:key1", context).message().get(0).getData(),
          String.class));
  
  
      // when remove all resources from note2:paragraph1
      ResourcePoolUtils.removeResourcesBelongsToParagraph("note2", "paragraph1");
  
      // then 1
      assertEquals(1, ResourcePoolUtils.getAllResources().size());
      assertEquals("value2", gson.fromJson(
          intp1.interpret("get note2:paragraph2:key2", context).message().get(0).getData(),
          String.class));
  
    }
test_case.class_method_signature: DistributedResourcePoolTest.testResourcePoolUtils()
test_case.full_signature: @Test public void testResourcePoolUtils()
test_case.identifier: testResourcePoolUtils
test_case.invocations: interpret interpret interpret interpret assertEquals size getAllResources removeResourcesBelongsToNote assertEquals size getAllResources assertEquals fromJson getData get message interpret assertEquals fromJson getData get message interpret removeResourcesBelongsToParagraph assertEquals size getAllResources assertEquals fromJson getData get message interpret
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResourcePoolUtils()
focal_class.declarator: connector
focal_class.modifier: private final
focal_class.original_string: private final ResourcePoolConnector connector;
focal_class.type: ResourcePoolConnector
focal_class.var_name: connector
focal_class.file: smart-zeppelin/zeppelin-interpreter/src/main/java/org/apache/zeppelin/resource/DistributedResourcePool.java
focal_class.identifier: DistributedResourcePool
focal_class.class_method_signature: DistributedResourcePool.DistributedResourcePool(String id, ResourcePoolConnector connector)
focal_class.full_signature: public  DistributedResourcePool(String id, ResourcePoolConnector connector)
focal_class.identifier: DistributedResourcePool
focal_class.modifiers: public
focal_class.parameters: (String id, ResourcePoolConnector connector)
focal_class.signature:  DistributedResourcePool(String id, ResourcePoolConnector connector)
focal_class.class_method_signature: DistributedResourcePool.get(String name)
focal_class.full_signature: @Override public Resource get(String name)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: Resource
focal_class.signature: Resource get(String name)
focal_class.class_method_signature: DistributedResourcePool.get(String noteId, String paragraphId, String name)
focal_class.full_signature: @Override public Resource get(String noteId, String paragraphId, String name)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (String noteId, String paragraphId, String name)
focal_class.return: Resource
focal_class.signature: Resource get(String noteId, String paragraphId, String name)
focal_class.class_method_signature: DistributedResourcePool.get(String name, boolean remote)
focal_class.full_signature: public Resource get(String name, boolean remote)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String name, boolean remote)
focal_class.return: Resource
focal_class.signature: Resource get(String name, boolean remote)
focal_class.class_method_signature: DistributedResourcePool.get(String noteId, String paragraphId, String name, boolean remote)
focal_class.full_signature: public Resource get(String noteId, String paragraphId, String name, boolean remote)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String noteId, String paragraphId, String name, boolean remote)
focal_class.return: Resource
focal_class.signature: Resource get(String noteId, String paragraphId, String name, boolean remote)
focal_class.class_method_signature: DistributedResourcePool.getAll()
focal_class.full_signature: @Override public ResourceSet getAll()
focal_class.identifier: getAll
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ResourceSet
focal_class.signature: ResourceSet getAll()
focal_class.class_method_signature: DistributedResourcePool.getAll(boolean remote)
focal_class.full_signature: public ResourceSet getAll(boolean remote)
focal_class.identifier: getAll
focal_class.modifiers: public
focal_class.parameters: (boolean remote)
focal_class.return: ResourceSet
focal_class.signature: ResourceSet getAll(boolean remote)
focal_class.superclass: extends LocalResourcePool
focal_method.body: @Override
    public Resource get(String name) {
      return get(name, true);
    }
focal_method.class_method_signature: DistributedResourcePool.get(String name)
focal_method.full_signature: @Override public Resource get(String name)
focal_method.identifier: get
focal_method.invocations: get
focal_method.modifiers: @Override public
focal_method.parameters: (String name)
focal_method.return: Resource
focal_method.signature: Resource get(String name)