public interface ServiceCollection extends Service, EventHandlerAware, java.util.List<Service>, ConfigComment
Defines behaviour common to collections of Service
s.
This class extends Service
and is thus a Service
itself. Implementations may iterate through the collection in order,
provide branching, etc.
Modifier and Type | Method and Description |
---|---|
void |
addService(Service service)
Adds a
Service to this collection. |
java.util.List<Service> |
getServices()
Returns a
List of the Service s in this
collection. |
void |
handleException(Service service,
AdaptrisMessage msg,
java.lang.Exception e)
Handles any exceptions thrown from an embedded Service.
|
continueOnFailure, doService, isBranching, setUniqueId
createName, createQualifier, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init, start, stop
prepare
registerEventHandler
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
getComments, setComments
java.util.List<Service> getServices()
Returns a List
of the Service
s in this
collection.
List
of the Service
s in this
collectionvoid addService(Service service) throws CoreException
Adds a Service
to this collection.
service
- the Service
to addCoreException
- wrapping any underlying Exception that may occurvoid handleException(Service service, AdaptrisMessage msg, java.lang.Exception e) throws ServiceException
Handles any exceptions thrown from an embedded Service.
service
- service which threw the Exceptione
- the exception which was thrownmsg
- the message which caused the exceptionServiceException
- wrapping the exception if
Service.continueOnFailure()
is false