Package com.zeroc.IceBox
Interface ServiceManager
- All Superinterfaces:
Object
Administers a set of
Service
instances.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(ServiceObserverPrx observer, Current current) Registers a new observer with the ServiceManager.getSliceChecksums
(Current current) Returns the checksums for the IceBox Slice definitions.default String
Returns the Slice type ID of the most-derived interface supported by this object.default String[]
Returns the Slice type IDs of the interfaces supported by this object.static String
Returns the Slice type ID of the interface supported by this object.void
Shut down all services.void
startService
(String service, Current current) Start an individual service.void
stopService
(String service, Current current) Stop an individual service.Methods inherited from interface com.zeroc.Ice.Object
ice_dispatch, ice_isA, ice_ping
-
Method Details
-
getSliceChecksums
Returns the checksums for the IceBox Slice definitions.- Parameters:
current
- The Current object for the invocation.- Returns:
- A dictionary mapping Slice type ids to their checksums.
-
startService
void startService(String service, Current current) throws AlreadyStartedException, NoSuchServiceException Start an individual service.- Parameters:
service
- The service name.current
- The Current object for the invocation.- Throws:
AlreadyStartedException
- If the service is already running.NoSuchServiceException
- If no service could be found with the given name.
-
stopService
void stopService(String service, Current current) throws AlreadyStoppedException, NoSuchServiceException Stop an individual service.- Parameters:
service
- The service name.current
- The Current object for the invocation.- Throws:
AlreadyStoppedException
- If the service is already stopped.NoSuchServiceException
- If no service could be found with the given name.
-
addObserver
Registers a new observer with the ServiceManager.- Parameters:
observer
- The new observercurrent
- The Current object for the invocation.
-
shutdown
Shut down all services. This causes stop to be invoked on all configured services.- Parameters:
current
- The Current object for the invocation.
-
ice_ids
Description copied from interface:Object
Returns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:Object
Returns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:Object
Returns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-