*/
public interface Component {
- enum Status {
- NOT_STARTED, RUNNING, STOPPED
- }
-
- /**
- * Gets the status of the component.
- * @return Status.
- */
- Status getStatus();
-
/**
* Gets the name of the subsystem.
* @return Subsystem name.
* Gets a description of the provided interfaces.
* @return Provided interfaces.
*/
- ProvidedInterface[] getProvidedServices();
+ ProvidedInterface[] getProvidedInterfaces();
/**
* Gets a description of the required interfaces.
* @return Required interfaces.
*/
- RequiredInterface[] getRequiredServices();
+ RequiredInterface[] getRequiredInterfaces();
/**
*/
void start();
- /**
- * Stops a subsystem.
- */
- void stop();
-
/**
* Gets the list of running services in the subsystem.
*
* {@link #initialize(String, Service[])} has been called.
* @return
*/
- ProvidedInterface[] getRunningServices();
+ ProvidedInterface[] getRunningInterfaces();
+
+ /**
+ * Stops a subsystem.
+ */
+ void stop();
}