JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT

org.jboss.msc.service
Interface ServiceContainer

All Superinterfaces:
ServiceRegistry, ServiceTarget

public interface ServiceContainer
extends ServiceTarget, ServiceRegistry

A service container which manages a set of running services.

Author:
David M. Lloyd

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

setExecutor

void setExecutor(Executor executor)
Set the container executor. If null is specified, a default single-thread executor is used.

You must adhere to the following rules when setting an executor:

Parameters:
executor - the executor to use

shutdown

void shutdown()
Stop all services within this container.


dumpServices

void dumpServices()
Dump a complete list of services to System.out.


dumpServices

void dumpServices(PrintStream stream)
Dump a complete list of services to the given stream.

Parameters:
stream - the stream to which the service list should be written

JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT

Copyright © 2010 JBoss, a division of Red Hat, Inc.