Package com.zeroc.IceBox
Interface Service
public interface Service
An application service managed by a
ServiceManager
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
start
(String name, Communicator communicator, String[] args) Start the service.void
stop()
Stop the service.
-
Method Details
-
start
Start the service. The given communicator is created by theServiceManager
for use by the service. This communicator may also be used by other services, depending on the service configuration.The
ServiceManager
owns this communicator, and is responsible for destroying it.- Parameters:
name
- The service's name, as determined by the configuration.communicator
- A communicator for use by the service.args
- The service arguments that were not converted into properties.- Throws:
FailureException
- Raised ifstart(java.lang.String, com.zeroc.Ice.Communicator, java.lang.String[])
failed.
-
stop
void stop()Stop the service.
-