Class AddingCompositeService

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.registry.server.services.AddingCompositeService
All Implemented Interfaces:
Closeable, AutoCloseable, Service

@Public @Evolving public class AddingCompositeService extends CompositeService
Composite service that exports the add/remove methods.

This allows external classes to add services to these methods, after which they follow the same lifecyce.

It is essential that any service added is in a state where it can be moved on with that of the parent services. Specifically, do not add an uninited service to a parent that is already inited —as the start operation will then fail