Ice 3.8
Slice API Reference
Loading...
Searching...
No Matches
ServiceManager.ice
1// Copyright (c) ZeroC, Inc.
2
3#pragma once
4
5[["cpp:dll-export:ICEBOX_API"]]
6[["cpp:doxygen:include:IceBox/IceBox.h"]]
7[["cpp:header-ext:h"]]
8
9[["cpp:include:IceBox/Config.h"]]
10
11[["js:module:@zeroc/ice"]]
12
13#include "Ice/BuiltinSequences.ice"
14
15/// Host multiple independent services in the same Ice server.
16["java:identifier:com.zeroc.IceBox"]
17module IceBox
18{
19 /// The exception that is thrown when attempting to start a service that is already running.
21 {
22 }
23
24 /// The exception that is thrown when attempting to stop a service that is already stopped.
26 {
27 }
28
29 /// The exception that is thrown when a service name does not refer to a known service.
31 {
32 }
33
34 /// Observes the status of services in an IceBox server.
35 /// @remark This interface is implemented by admin tools that monitor the IceBox server.
36 /// @see ServiceManager#addObserver
38 {
39 /// Receives the names of the services that were started.
40 /// @param services The names of the services that were started.
42
43 /// Receives the names of the services that were stopped.
44 /// @param services The names of the services that were stopped.
46 }
47
48 /// Administers the services of an IceBox server.
50 {
51 /// Starts a service.
52 /// @param service The service name.
53 /// @throws AlreadyStartedException Thrown when the service is already running.
54 /// @throws NoSuchServiceException Thrown when IceBox does not know a service named @p service.
55 void startService(string service)
57
58 /// Stops a service.
59 /// @param service The service name.
60 /// @throws AlreadyStoppedException Thrown when the service is already stopped.
61 /// @throws NoSuchServiceException Thrown when IceBox does not know a service named @p service.
62 void stopService(string service)
64
65 /// Registers a new observer with this service manager.
66 /// @param observer The new observer.
68
69 /// Shuts down all services.
70 void shutdown();
71 }
72}
The exception that is thrown when attempting to start a service that is already running.
The exception that is thrown when attempting to stop a service that is already stopped.
The exception that is thrown when a service name does not refer to a known service.
void startService(string service)
Starts a service.
void stopService(string service)
Stops a service.
void addObserver(ServiceObserver *observer)
Registers a new observer with this service manager.
Administers the services of an IceBox server.
void shutdown()
Shuts down all services.
void servicesStarted(Ice::StringSeq services)
Receives the names of the services that were started.
void servicesStopped(Ice::StringSeq services)
Receives the names of the services that were stopped.
Observes the status of services in an IceBox server.
Host multiple independent services in the same Ice server.
sequence< string > StringSeq
A sequence of strings.