test_class.declarator: activity
test_class.modifier: private
test_class.original_string: private SupportedActivity activity;
test_class.type: SupportedActivity
test_class.var_name: activity
test_class.declarator: componentFactory
test_class.modifier: private
test_class.original_string: private ActivityComponentFactory componentFactory;
test_class.type: ActivityComponentFactory
test_class.var_name: componentFactory
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private ActivityComponentContext context;
test_class.type: ActivityComponentContext
test_class.var_name: context
test_class.declarator: executor
test_class.modifier: private
test_class.original_string: private ExecutorService executor;
test_class.type: ExecutorService
test_class.var_name: executor
test_class.declarator: log
test_class.modifier: private
test_class.original_string: private Log log;
test_class.type: Log
test_class.var_name: log
test_class.declarator: activityConfiguration
test_class.modifier: private
test_class.original_string: private Configuration activityConfiguration;
test_class.type: Configuration
test_class.var_name: activityConfiguration
test_class.file: activityapi/interactivespaces-activity-core/src/test/java/interactivespaces/activity/component/ActivityComponentContextTest.java
test_class.identifier: ActivityComponentContextTest
test_case.body: @Test
    public void testWaitNoProcessingHandlersEver() {
      Assert.assertTrue(context.waitOnNoProcessingHandlings(500, 2000));
    }
test_case.class_method_signature: ActivityComponentContextTest.testWaitNoProcessingHandlersEver()
test_case.full_signature: @Test public void testWaitNoProcessingHandlersEver()
test_case.identifier: testWaitNoProcessingHandlersEver
test_case.invocations: assertTrue waitOnNoProcessingHandlings
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWaitNoProcessingHandlersEver()
focal_class.declarator: STARTUP_LATCH_TIMEOUT = 5000
focal_class.modifier: public static final
focal_class.original_string: public static final long STARTUP_LATCH_TIMEOUT = 5000;
focal_class.type: long
focal_class.var_name: STARTUP_LATCH_TIMEOUT
focal_class.declarator: activity
focal_class.modifier: private final
focal_class.original_string: private final SupportedActivity activity;
focal_class.type: SupportedActivity
focal_class.var_name: activity
focal_class.declarator: componentFactory
focal_class.modifier: private final
focal_class.original_string: private final ActivityComponentFactory componentFactory;
focal_class.type: ActivityComponentFactory
focal_class.var_name: componentFactory
focal_class.declarator: startupLatch = new CountDownLatch(1)
focal_class.modifier: private final
focal_class.original_string: private final CountDownLatch startupLatch = new CountDownLatch(1);
focal_class.type: CountDownLatch
focal_class.var_name: startupLatch
focal_class.declarator: handlersAllowed = new AtomicBoolean()
focal_class.modifier: private final
focal_class.original_string: private final AtomicBoolean handlersAllowed = new AtomicBoolean();
focal_class.type: AtomicBoolean
focal_class.var_name: handlersAllowed
focal_class.declarator: numberProcessingHandlers = new AtomicInteger()
focal_class.modifier: private final
focal_class.original_string: private final AtomicInteger numberProcessingHandlers = new AtomicInteger();
focal_class.type: AtomicInteger
focal_class.var_name: numberProcessingHandlers
focal_class.declarator: configuredComponents = Lists.newArrayList()
focal_class.modifier: private final
focal_class.original_string: private final List<ActivityComponent> configuredComponents = Lists.newArrayList();
focal_class.type: List<ActivityComponent>
focal_class.var_name: configuredComponents
focal_class.declarator: addedComponents = Maps.newHashMap()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, ActivityComponent> addedComponents = Maps.newHashMap();
focal_class.type: Map<String, ActivityComponent>
focal_class.var_name: addedComponents
focal_class.file: activityapi/interactivespaces-activity-core/src/main/java/interactivespaces/activity/component/ActivityComponentContext.java
focal_class.identifier: ActivityComponentContext
focal_class.class_method_signature: ActivityComponentContext.ActivityComponentContext(SupportedActivity activity, ActivityComponentFactory componentFactory)
focal_class.full_signature: public  ActivityComponentContext(SupportedActivity activity, ActivityComponentFactory componentFactory)
focal_class.identifier: ActivityComponentContext
focal_class.modifiers: public
focal_class.parameters: (SupportedActivity activity, ActivityComponentFactory componentFactory)
focal_class.signature:  ActivityComponentContext(SupportedActivity activity, ActivityComponentFactory componentFactory)
focal_class.class_method_signature: ActivityComponentContext.getActivity()
focal_class.full_signature: @SuppressWarnings("unchecked") public T getActivity()
focal_class.identifier: getActivity
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T getActivity()
focal_class.class_method_signature: ActivityComponentContext.getComponentFactory()
focal_class.full_signature: public ActivityComponentFactory getComponentFactory()
focal_class.identifier: getComponentFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ActivityComponentFactory
focal_class.signature: ActivityComponentFactory getComponentFactory()
focal_class.class_method_signature: ActivityComponentContext.beginStartupPhase()
focal_class.full_signature: public void beginStartupPhase()
focal_class.identifier: beginStartupPhase
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void beginStartupPhase()
focal_class.class_method_signature: ActivityComponentContext.endStartupPhase(boolean success)
focal_class.full_signature: public void endStartupPhase(boolean success)
focal_class.identifier: endStartupPhase
focal_class.modifiers: public
focal_class.parameters: (boolean success)
focal_class.return: void
focal_class.signature: void endStartupPhase(boolean success)
focal_class.class_method_signature: ActivityComponentContext.beginShutdownPhase()
focal_class.full_signature: public void beginShutdownPhase()
focal_class.identifier: beginShutdownPhase
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void beginShutdownPhase()
focal_class.class_method_signature: ActivityComponentContext.areHandlersAllowed()
focal_class.full_signature: public boolean areHandlersAllowed()
focal_class.identifier: areHandlersAllowed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean areHandlersAllowed()
focal_class.class_method_signature: ActivityComponentContext.enterHandler()
focal_class.full_signature: public void enterHandler()
focal_class.identifier: enterHandler
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void enterHandler()
focal_class.class_method_signature: ActivityComponentContext.exitHandler()
focal_class.full_signature: public void exitHandler()
focal_class.identifier: exitHandler
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void exitHandler()
focal_class.class_method_signature: ActivityComponentContext.areProcessingHandlers()
focal_class.full_signature: public boolean areProcessingHandlers()
focal_class.identifier: areProcessingHandlers
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean areProcessingHandlers()
focal_class.class_method_signature: ActivityComponentContext.waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime)
focal_class.full_signature: public boolean waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime)
focal_class.identifier: waitOnNoProcessingHandlings
focal_class.modifiers: public
focal_class.parameters: (long sampleTime, long maxSamplingTime)
focal_class.return: boolean
focal_class.signature: boolean waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime)
focal_class.class_method_signature: ActivityComponentContext.awaitStartup()
focal_class.full_signature: public boolean awaitStartup()
focal_class.identifier: awaitStartup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean awaitStartup()
focal_class.class_method_signature: ActivityComponentContext.canHandlerRun()
focal_class.full_signature: public boolean canHandlerRun()
focal_class.identifier: canHandlerRun
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canHandlerRun()
focal_class.class_method_signature: ActivityComponentContext.addComponent(T component)
focal_class.full_signature: public T addComponent(T component)
focal_class.identifier: addComponent
focal_class.modifiers: public
focal_class.parameters: (T component)
focal_class.return: T
focal_class.signature: T addComponent(T component)
focal_class.class_method_signature: ActivityComponentContext.addCheckedComponent(ActivityComponent component)
focal_class.full_signature: private void addCheckedComponent(ActivityComponent component)
focal_class.identifier: addCheckedComponent
focal_class.modifiers: private
focal_class.parameters: (ActivityComponent component)
focal_class.return: void
focal_class.signature: void addCheckedComponent(ActivityComponent component)
focal_class.class_method_signature: ActivityComponentContext.addComponents(ActivityComponent... components)
focal_class.full_signature: public void addComponents(ActivityComponent... components)
focal_class.identifier: addComponents
focal_class.modifiers: public
focal_class.parameters: (ActivityComponent... components)
focal_class.return: void
focal_class.signature: void addComponents(ActivityComponent... components)
focal_class.class_method_signature: ActivityComponentContext.addComponent(String componentType)
focal_class.full_signature: public T addComponent(String componentType)
focal_class.identifier: addComponent
focal_class.modifiers: public
focal_class.parameters: (String componentType)
focal_class.return: T
focal_class.signature: T addComponent(String componentType)
focal_class.class_method_signature: ActivityComponentContext.addComponents(String... componentTypes)
focal_class.full_signature: public void addComponents(String... componentTypes)
focal_class.identifier: addComponents
focal_class.modifiers: public
focal_class.parameters: (String... componentTypes)
focal_class.return: void
focal_class.signature: void addComponents(String... componentTypes)
focal_class.class_method_signature: ActivityComponentContext.checkIfComponentAdded(String componentName)
focal_class.full_signature: private void checkIfComponentAdded(String componentName)
focal_class.identifier: checkIfComponentAdded
focal_class.modifiers: private
focal_class.parameters: (String componentName)
focal_class.return: void
focal_class.signature: void checkIfComponentAdded(String componentName)
focal_class.class_method_signature: ActivityComponentContext.initialStartupComponents()
focal_class.full_signature: public void initialStartupComponents()
focal_class.identifier: initialStartupComponents
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialStartupComponents()
focal_class.class_method_signature: ActivityComponentContext.configureComponents()
focal_class.full_signature: private void configureComponents()
focal_class.identifier: configureComponents
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void configureComponents()
focal_class.class_method_signature: ActivityComponentContext.startupComponents()
focal_class.full_signature: private void startupComponents()
focal_class.identifier: startupComponents
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startupComponents()
focal_class.class_method_signature: ActivityComponentContext.startupComponent(ActivityComponent component)
focal_class.full_signature: private void startupComponent(ActivityComponent component)
focal_class.identifier: startupComponent
focal_class.modifiers: private
focal_class.parameters: (ActivityComponent component)
focal_class.return: void
focal_class.signature: void startupComponent(ActivityComponent component)
focal_class.class_method_signature: ActivityComponentContext.shutdownComponents()
focal_class.full_signature: public boolean shutdownComponents()
focal_class.identifier: shutdownComponents
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean shutdownComponents()
focal_class.class_method_signature: ActivityComponentContext.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: ActivityComponentContext.shutdownAndClear()
focal_class.full_signature: public boolean shutdownAndClear()
focal_class.identifier: shutdownAndClear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean shutdownAndClear()
focal_class.class_method_signature: ActivityComponentContext.shutdownAndClearRunningComponents()
focal_class.full_signature: public boolean shutdownAndClearRunningComponents()
focal_class.identifier: shutdownAndClearRunningComponents
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean shutdownAndClearRunningComponents()
focal_class.class_method_signature: ActivityComponentContext.areAllComponentsRunning()
focal_class.full_signature: public boolean areAllComponentsRunning()
focal_class.identifier: areAllComponentsRunning
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean areAllComponentsRunning()
focal_class.class_method_signature: ActivityComponentContext.getActivityComponent(String componentType)
focal_class.full_signature: @SuppressWarnings("unchecked") public T getActivityComponent(String componentType)
focal_class.identifier: getActivityComponent
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (String componentType)
focal_class.return: T
focal_class.signature: T getActivityComponent(String componentType)
focal_class.class_method_signature: ActivityComponentContext.getRequiredActivityComponent(String componentType)
focal_class.full_signature: public T getRequiredActivityComponent(String componentType)
focal_class.identifier: getRequiredActivityComponent
focal_class.modifiers: public
focal_class.parameters: (String componentType)
focal_class.return: T
focal_class.signature: T getRequiredActivityComponent(String componentType)
focal_class.class_method_signature: ActivityComponentContext.getConfiguredComponents()
focal_class.full_signature: public Collection<ActivityComponent> getConfiguredComponents()
focal_class.identifier: getConfiguredComponents
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<ActivityComponent>
focal_class.signature: Collection<ActivityComponent> getConfiguredComponents()
focal_class.class_method_signature: ActivityComponentContext.handleComponentError(ActivityComponent component, String message, Throwable t)
focal_class.full_signature: private void handleComponentError(ActivityComponent component, String message, Throwable t)
focal_class.identifier: handleComponentError
focal_class.modifiers: private
focal_class.parameters: (ActivityComponent component, String message, Throwable t)
focal_class.return: void
focal_class.signature: void handleComponentError(ActivityComponent component, String message, Throwable t)
focal_method.body: public boolean waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime) {
      long start = System.currentTimeMillis();
      while (areProcessingHandlers() && (System.currentTimeMillis() - start) < maxSamplingTime) {
        InteractiveSpacesUtilities.delay(sampleTime);
      }
  
      return !areProcessingHandlers();
    }
focal_method.class_method_signature: ActivityComponentContext.waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime)
focal_method.full_signature: public boolean waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime)
focal_method.identifier: waitOnNoProcessingHandlings
focal_method.invocations: currentTimeMillis areProcessingHandlers currentTimeMillis delay areProcessingHandlers
focal_method.modifiers: public
focal_method.parameters: (long sampleTime, long maxSamplingTime)
focal_method.return: boolean
focal_method.signature: boolean waitOnNoProcessingHandlings(long sampleTime, long maxSamplingTime)