test_class.file: session-agent/src/test/java/com/amadeus/session/agent/TestSessionAgent.java
test_class.identifier: TestSessionAgent
test_case.body: @Test
    public void testReadTimeoutAndFactory() {
      SessionAgent.readArguments("timeout=200,provider=redis");
      assertEquals("200", System.getProperty(SessionAgent.SESSION_TIMEOUT));
      assertEquals("timeout=200,provider=redis", System.getProperty(SessionAgent.REPOSITORY_CONF_PROPERTY));
      assertEquals("redis", System.getProperty(SessionAgent.SESSION_FACTORY));
      assertNull(System.getProperty(SessionAgent.SESSION_DISTRIBUTABLE));
      assertNull(System.getProperty(SessionAgent.SESSION_MANAGEMENT_DISABLED));
    }
test_case.class_method_signature: TestSessionAgent.testReadTimeoutAndFactory()
test_case.full_signature: @Test public void testReadTimeoutAndFactory()
test_case.identifier: testReadTimeoutAndFactory
test_case.invocations: readArguments assertEquals getProperty assertEquals getProperty assertEquals getProperty assertNull getProperty assertNull getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadTimeoutAndFactory()
focal_class.declarator: DEBUG_ACTIVE = "com.amadeus.session.debug"
focal_class.modifier: static final
focal_class.original_string: static final String DEBUG_ACTIVE = "com.amadeus.session.debug";
focal_class.type: String
focal_class.var_name: DEBUG_ACTIVE
focal_class.declarator: SESSION_FACTORY = "com.amadeus.session.repository.factory"
focal_class.modifier: static final
focal_class.original_string: static final String SESSION_FACTORY = "com.amadeus.session.repository.factory";
focal_class.type: String
focal_class.var_name: SESSION_FACTORY
focal_class.declarator: SESSION_DISTRIBUTABLE = "com.amadeus.session.distributable"
focal_class.modifier: static final
focal_class.original_string: static final String SESSION_DISTRIBUTABLE = "com.amadeus.session.distributable";
focal_class.type: String
focal_class.var_name: SESSION_DISTRIBUTABLE
focal_class.declarator: SESSION_TIMEOUT = "com.amadeus.session.timeout"
focal_class.modifier: static final
focal_class.original_string: static final String SESSION_TIMEOUT = "com.amadeus.session.timeout";
focal_class.type: String
focal_class.var_name: SESSION_TIMEOUT
focal_class.declarator: SESSION_MANAGEMENT_DISABLED = "com.amadeus.session.disabled"
focal_class.modifier: static final
focal_class.original_string: static final String SESSION_MANAGEMENT_DISABLED = "com.amadeus.session.disabled";
focal_class.type: String
focal_class.var_name: SESSION_MANAGEMENT_DISABLED
focal_class.declarator: REPOSITORY_CONF_PROPERTY = "com.amadeus.session.repository.conf"
focal_class.modifier: static final
focal_class.original_string: static final String REPOSITORY_CONF_PROPERTY = "com.amadeus.session.repository.conf";
focal_class.type: String
focal_class.var_name: REPOSITORY_CONF_PROPERTY
focal_class.declarator: INTERCEPT_LISTENER_PROPERTY = "com.amadeus.session.intercept.listeners"
focal_class.modifier: static final
focal_class.original_string: static final String INTERCEPT_LISTENER_PROPERTY = "com.amadeus.session.intercept.listeners";
focal_class.type: String
focal_class.var_name: INTERCEPT_LISTENER_PROPERTY
focal_class.declarator: PROVIDER = "provider="
focal_class.modifier: private static final
focal_class.original_string: private static final String PROVIDER = "provider=";
focal_class.type: String
focal_class.var_name: PROVIDER
focal_class.declarator: TIMEOUT = "timeout="
focal_class.modifier: private static final
focal_class.original_string: private static final String TIMEOUT = "timeout=";
focal_class.type: String
focal_class.var_name: TIMEOUT
focal_class.declarator: DISTRIBUTABLE = "distributable="
focal_class.modifier: private static final
focal_class.original_string: private static final String DISTRIBUTABLE = "distributable=";
focal_class.type: String
focal_class.var_name: DISTRIBUTABLE
focal_class.declarator: DISABLED = "disabled="
focal_class.modifier: private static final
focal_class.original_string: private static final String DISABLED = "disabled=";
focal_class.type: String
focal_class.var_name: DISABLED
focal_class.declarator: INTERCEPT_LISTENER = "interceptListeners="
focal_class.modifier: private static final
focal_class.original_string: private static final String INTERCEPT_LISTENER = "interceptListeners=";
focal_class.type: String
focal_class.var_name: INTERCEPT_LISTENER
focal_class.declarator: agentActive
focal_class.modifier: static
focal_class.original_string: static boolean agentActive;
focal_class.type: boolean
focal_class.var_name: agentActive
focal_class.declarator: debugMode
focal_class.modifier: static
focal_class.original_string: static boolean debugMode;
focal_class.type: boolean
focal_class.var_name: debugMode
focal_class.declarator: interceptListener
focal_class.modifier: static
focal_class.original_string: static boolean interceptListener;
focal_class.type: boolean
focal_class.var_name: interceptListener
focal_class.file: session-agent/src/main/java/com/amadeus/session/agent/SessionAgent.java
focal_class.identifier: SessionAgent
focal_class.class_method_signature: SessionAgent.SessionAgent()
focal_class.full_signature: private  SessionAgent()
focal_class.identifier: SessionAgent
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  SessionAgent()
focal_class.class_method_signature: SessionAgent.premain(String agentArgs, Instrumentation inst)
focal_class.full_signature: public static void premain(String agentArgs, Instrumentation inst)
focal_class.identifier: premain
focal_class.modifiers: public static
focal_class.parameters: (String agentArgs, Instrumentation inst)
focal_class.return: void
focal_class.signature: void premain(String agentArgs, Instrumentation inst)
focal_class.class_method_signature: SessionAgent.readArguments(String agentArgs)
focal_class.full_signature: static void readArguments(String agentArgs)
focal_class.identifier: readArguments
focal_class.modifiers: static
focal_class.parameters: (String agentArgs)
focal_class.return: void
focal_class.signature: void readArguments(String agentArgs)
focal_class.class_method_signature: SessionAgent.parseArgument(String agentArgs, String arg)
focal_class.full_signature: private static void parseArgument(String agentArgs, String arg)
focal_class.identifier: parseArgument
focal_class.modifiers: private static
focal_class.parameters: (String agentArgs, String arg)
focal_class.return: void
focal_class.signature: void parseArgument(String agentArgs, String arg)
focal_class.class_method_signature: SessionAgent.normalArguments(String agentArgs, String arg)
focal_class.full_signature: private static void normalArguments(String agentArgs, String arg)
focal_class.identifier: normalArguments
focal_class.modifiers: private static
focal_class.parameters: (String agentArgs, String arg)
focal_class.return: void
focal_class.signature: void normalArguments(String agentArgs, String arg)
focal_class.class_method_signature: SessionAgent.parseTimeout(String agentArgs, String arg)
focal_class.full_signature: static void parseTimeout(String agentArgs, String arg)
focal_class.identifier: parseTimeout
focal_class.modifiers: static
focal_class.parameters: (String agentArgs, String arg)
focal_class.return: void
focal_class.signature: void parseTimeout(String agentArgs, String arg)
focal_class.class_method_signature: SessionAgent.debug(String format, Object... args)
focal_class.full_signature: public static void debug(String format, Object... args)
focal_class.identifier: debug
focal_class.modifiers: public static
focal_class.parameters: (String format, Object... args)
focal_class.return: void
focal_class.signature: void debug(String format, Object... args)
focal_class.class_method_signature: SessionAgent.error(String format, Object... args)
focal_class.full_signature: public static void error(String format, Object... args)
focal_class.identifier: error
focal_class.modifiers: public static
focal_class.parameters: (String format, Object... args)
focal_class.return: void
focal_class.signature: void error(String format, Object... args)
focal_class.class_method_signature: SessionAgent.isAgentActive()
focal_class.full_signature: static boolean isAgentActive()
focal_class.identifier: isAgentActive
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAgentActive()
focal_class.class_method_signature: SessionAgent.isDebugMode()
focal_class.full_signature: public static boolean isDebugMode()
focal_class.identifier: isDebugMode
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDebugMode()
focal_method.body: static void readArguments(String agentArgs) {
      if (agentArgs == null) {
        return;
      }
      String[] args = agentArgs.split(",");
      for (String arg : args) {
        parseArgument(agentArgs, arg.trim());
      }
      if (!agentArgs.isEmpty() && System.getProperty(REPOSITORY_CONF_PROPERTY) == null) {
        System.setProperty(REPOSITORY_CONF_PROPERTY, agentArgs);
      }
    }
focal_method.class_method_signature: SessionAgent.readArguments(String agentArgs)
focal_method.full_signature: static void readArguments(String agentArgs)
focal_method.identifier: readArguments
focal_method.invocations: split parseArgument trim isEmpty getProperty setProperty
focal_method.modifiers: static
focal_method.parameters: (String agentArgs)
focal_method.return: void
focal_method.signature: void readArguments(String agentArgs)