public abstract class AbstractSimpleComponentsMonitor extends Object implements ComponentsMonitor
Constructor and Description |
---|
AbstractSimpleComponentsMonitor(String[] components)
Instantiates a new abstract simple components monitor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allComponentsUsed()
Check if all components are used.
|
List<String> |
getRemainingComponents()
Gets the remaining components.
|
ComponentsMonitor |
useComponent(String component)
Use a component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finalStateValid
public AbstractSimpleComponentsMonitor(String[] components)
components
- the componentspublic ComponentsMonitor useComponent(String component) throws IllegalArgumentException
useComponent
in interface ComponentsMonitor
component
- the componentIllegalArgumentException
- if the component is already usedpublic boolean allComponentsUsed()
allComponentsUsed
in interface ComponentsMonitor
public List<String> getRemainingComponents()
getRemainingComponents
in interface ComponentsMonitor
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.