test_class.file: step-controller/step-controller-base-plugins/src/test/java/step/plugins/quotamanager/QuotaManagerTest.java
test_class.identifier: QuotaManagerTest
test_case.body: @Test
  	public void testAcquireException() throws Exception {
  		QuotaManagerConfig config = new QuotaManagerConfig("testManager");
  		Quota quota = new Quota();
  		quota.setPermits(1);
  		quota.setAcquireTimeoutMs(0);
  		quota.setQuotaKeyFunction("key");
  		List<Quota> quotas = new ArrayList<>();
  		quotas.add(quota);
  		config.setQuotas(quotas);
  		
  		HashMap<String, Object> bindings = new HashMap<>();
  		bindings.put("key", "key1");
  		
  		QuotaManager manager = new QuotaManager(config);
  		boolean exceptionThrown = false;
  		try {
  			UUID id = manager.acquirePermit(bindings);
  			Assert.assertNotNull(id);
  			manager.acquirePermit(bindings);
  			Assert.assertTrue(false);
  		} catch (TimeoutException e) {
  			exceptionThrown = true;
  		}
  		Assert.assertTrue(exceptionThrown);
  		
  	}
test_case.class_method_signature: QuotaManagerTest.testAcquireException()
test_case.full_signature: @Test public void testAcquireException()
test_case.identifier: testAcquireException
test_case.invocations: setPermits setAcquireTimeoutMs setQuotaKeyFunction add setQuotas put acquirePermit assertNotNull acquirePermit assertTrue assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAcquireException()
focal_class.declarator: logger = LoggerFactory.getLogger(QuotaManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(QuotaManager.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: config
focal_class.modifier: private volatile
focal_class.original_string: private volatile QuotaManagerConfig config;
focal_class.type: QuotaManagerConfig
focal_class.var_name: config
focal_class.declarator: enabled = false
focal_class.modifier: private volatile
focal_class.original_string: private volatile boolean enabled = false;
focal_class.type: boolean
focal_class.var_name: enabled
focal_class.declarator: quotaHandlers
focal_class.modifier: private volatile
focal_class.original_string: private volatile List<QuotaHandler> quotaHandlers;
focal_class.type: List<QuotaHandler>
focal_class.var_name: quotaHandlers
focal_class.declarator: permits = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final ConcurrentHashMap<UUID, List<Permit>> permits = new ConcurrentHashMap<>();
focal_class.type: ConcurrentHashMap<UUID, List<Permit>>
focal_class.var_name: permits
focal_class.declarator: paceLockObject = new Object()
focal_class.modifier: private final
focal_class.original_string: private final Object paceLockObject = new Object();
focal_class.type: Object
focal_class.var_name: paceLockObject
focal_class.file: step-controller/step-controller-base-plugins/src/main/java/step/plugins/quotamanager/QuotaManager.java
focal_class.identifier: QuotaManager
focal_class.class_method_signature: QuotaManager.QuotaManager()
focal_class.full_signature: public  QuotaManager()
focal_class.identifier: QuotaManager
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  QuotaManager()
focal_class.class_method_signature: QuotaManager.QuotaManager(QuotaManagerConfig config)
focal_class.full_signature: public  QuotaManager(QuotaManagerConfig config)
focal_class.identifier: QuotaManager
focal_class.modifiers: public
focal_class.parameters: (QuotaManagerConfig config)
focal_class.signature:  QuotaManager(QuotaManagerConfig config)
focal_class.class_method_signature: QuotaManager.QuotaManager(File configFile)
focal_class.full_signature: public  QuotaManager(File configFile)
focal_class.identifier: QuotaManager
focal_class.modifiers: public
focal_class.parameters: (File configFile)
focal_class.signature:  QuotaManager(File configFile)
focal_class.class_method_signature: QuotaManager.getConfig()
focal_class.full_signature: public QuotaManagerConfig getConfig()
focal_class.identifier: getConfig
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: QuotaManagerConfig
focal_class.signature: QuotaManagerConfig getConfig()
focal_class.class_method_signature: QuotaManager.isEnabled()
focal_class.full_signature: protected boolean isEnabled()
focal_class.identifier: isEnabled
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEnabled()
focal_class.class_method_signature: QuotaManager.setEnabled(boolean enabled)
focal_class.full_signature: protected void setEnabled(boolean enabled)
focal_class.identifier: setEnabled
focal_class.modifiers: protected
focal_class.parameters: (boolean enabled)
focal_class.return: void
focal_class.signature: void setEnabled(boolean enabled)
focal_class.class_method_signature: QuotaManager.loadConfiguration(File configFile)
focal_class.full_signature: public void loadConfiguration(File configFile)
focal_class.identifier: loadConfiguration
focal_class.modifiers: public
focal_class.parameters: (File configFile)
focal_class.return: void
focal_class.signature: void loadConfiguration(File configFile)
focal_class.class_method_signature: QuotaManager.loadConfiguration(QuotaManagerConfig config)
focal_class.full_signature: public void loadConfiguration(QuotaManagerConfig config)
focal_class.identifier: loadConfiguration
focal_class.modifiers: public
focal_class.parameters: (QuotaManagerConfig config)
focal_class.return: void
focal_class.signature: void loadConfiguration(QuotaManagerConfig config)
focal_class.class_method_signature: QuotaManager.createHandlers()
focal_class.full_signature: private void createHandlers()
focal_class.identifier: createHandlers
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createHandlers()
focal_class.class_method_signature: QuotaManager.acquirePermit(Map<String, Object> bindingVariables)
focal_class.full_signature: public UUID acquirePermit(Map<String, Object> bindingVariables)
focal_class.identifier: acquirePermit
focal_class.modifiers: public
focal_class.parameters: (Map<String, Object> bindingVariables)
focal_class.return: UUID
focal_class.signature: UUID acquirePermit(Map<String, Object> bindingVariables)
focal_class.class_method_signature: QuotaManager.acquirePermit(UUID permitID, Map<String, Object> bindingVariables)
focal_class.full_signature: public UUID acquirePermit(UUID permitID, Map<String, Object> bindingVariables)
focal_class.identifier: acquirePermit
focal_class.modifiers: public
focal_class.parameters: (UUID permitID, Map<String, Object> bindingVariables)
focal_class.return: UUID
focal_class.signature: UUID acquirePermit(UUID permitID, Map<String, Object> bindingVariables)
focal_class.class_method_signature: QuotaManager.releasePermit(UUID id)
focal_class.full_signature: public void releasePermit(UUID id)
focal_class.identifier: releasePermit
focal_class.modifiers: public
focal_class.parameters: (UUID id)
focal_class.return: void
focal_class.signature: void releasePermit(UUID id)
focal_class.class_method_signature: QuotaManager.releasePermits(List<Permit> permits)
focal_class.full_signature: private void releasePermits(List<Permit> permits)
focal_class.identifier: releasePermits
focal_class.modifiers: private
focal_class.parameters: (List<Permit> permits)
focal_class.return: void
focal_class.signature: void releasePermits(List<Permit> permits)
focal_class.class_method_signature: QuotaManager.getStatus()
focal_class.full_signature: public List<QuotaHandlerStatus> getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<QuotaHandlerStatus>
focal_class.signature: List<QuotaHandlerStatus> getStatus()
focal_class.class_method_signature: QuotaManager.getPaceLockObject()
focal_class.full_signature: public Object getPaceLockObject()
focal_class.identifier: getPaceLockObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object getPaceLockObject()
focal_method.body: public UUID acquirePermit(Map<String, Object> bindingVariables) throws Exception {
  		return acquirePermit(null, bindingVariables);
  	}
focal_method.class_method_signature: QuotaManager.acquirePermit(Map<String, Object> bindingVariables)
focal_method.full_signature: public UUID acquirePermit(Map<String, Object> bindingVariables)
focal_method.identifier: acquirePermit
focal_method.invocations: acquirePermit
focal_method.modifiers: public
focal_method.parameters: (Map<String, Object> bindingVariables)
focal_method.return: UUID
focal_method.signature: UUID acquirePermit(Map<String, Object> bindingVariables)