|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceContainer
A service container which manages a set of running services.
| Nested Class Summary | |
|---|---|
static class |
ServiceContainer.Factory
The factory class for service containers. |
| Method Summary | |
|---|---|
void |
dumpServices()
Dump a complete list of services to System.out. |
void |
dumpServices(PrintStream stream)
Dump a complete list of services to the given stream. |
void |
setExecutor(Executor executor)
Set the container executor. |
void |
shutdown()
Stop all services within this container. |
| Methods inherited from interface org.jboss.msc.service.ServiceTarget |
|---|
addDependency, addDependency, addDependency, addListener, addListener, addListener, addService, addServiceValue, addServiceValueIfNotExist, batchBuilder, subTarget |
| Methods inherited from interface org.jboss.msc.service.ServiceRegistry |
|---|
getRequiredService, getService, getServiceNames |
| Method Detail |
|---|
void setExecutor(Executor executor)
null is specified, a default single-thread executor is used.
You must adhere to the following rules when setting an executor:
RejectedExecutionException
can cause significant problems)null or another executor) before it is shut down.
executor - the executor to usevoid shutdown()
void dumpServices()
System.out.
void dumpServices(PrintStream stream)
stream - the stream to which the service list should be written
|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||