zeroc-ice-x86-mingw 3.6b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ICE_LICENSE +54 -0
- data/LICENSE +339 -0
- data/bin/slice2rb +17 -0
- data/ice-x86-mingw.gemspec +41 -0
- data/lib/Glacier2.rb +12 -0
- data/lib/Glacier2/Metrics.rb +99 -0
- data/lib/Glacier2/PermissionsVerifier.rb +168 -0
- data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
- data/lib/Glacier2/Router.rb +141 -0
- data/lib/Glacier2/RouterF.rb +29 -0
- data/lib/Glacier2/SSLInfo.rb +79 -0
- data/lib/Glacier2/Session.rb +470 -0
- data/lib/Ice.rb +659 -0
- data/lib/Ice/BuiltinSequences.rb +64 -0
- data/lib/Ice/Communicator.rb +93 -0
- data/lib/Ice/CommunicatorF.rb +28 -0
- data/lib/Ice/Connection.rb +414 -0
- data/lib/Ice/ConnectionF.rb +36 -0
- data/lib/Ice/Current.rb +152 -0
- data/lib/Ice/Endpoint.rb +265 -0
- data/lib/Ice/EndpointF.rb +52 -0
- data/lib/Ice/EndpointTypes.rb +77 -0
- data/lib/Ice/FacetMap.rb +28 -0
- data/lib/Ice/Identity.rb +70 -0
- data/lib/Ice/ImplicitContext.rb +59 -0
- data/lib/Ice/ImplicitContextF.rb +28 -0
- data/lib/Ice/Instrumentation.rb +425 -0
- data/lib/Ice/InstrumentationF.rb +35 -0
- data/lib/Ice/LocalException.rb +1081 -0
- data/lib/Ice/Locator.rb +314 -0
- data/lib/Ice/LocatorF.rb +34 -0
- data/lib/Ice/Logger.rb +57 -0
- data/lib/Ice/LoggerF.rb +28 -0
- data/lib/Ice/Metrics.rb +696 -0
- data/lib/Ice/ObjectAdapterF.rb +28 -0
- data/lib/Ice/ObjectFactory.rb +53 -0
- data/lib/Ice/ObjectFactoryF.rb +28 -0
- data/lib/Ice/Plugin.rb +87 -0
- data/lib/Ice/PluginF.rb +32 -0
- data/lib/Ice/Process.rb +93 -0
- data/lib/Ice/ProcessF.rb +29 -0
- data/lib/Ice/Properties.rb +65 -0
- data/lib/Ice/PropertiesAdmin.rb +104 -0
- data/lib/Ice/PropertiesF.rb +33 -0
- data/lib/Ice/Router.rb +163 -0
- data/lib/Ice/RouterF.rb +29 -0
- data/lib/Ice/SliceChecksumDict.rb +28 -0
- data/lib/Ice/Version.rb +100 -0
- data/lib/IceBox.rb +10 -0
- data/lib/IceBox/IceBox.rb +272 -0
- data/lib/IceGrid.rb +17 -0
- data/lib/IceGrid/Admin.rb +1076 -0
- data/lib/IceGrid/Descriptor.rb +1505 -0
- data/lib/IceGrid/Exception.rb +401 -0
- data/lib/IceGrid/FileParser.rb +105 -0
- data/lib/IceGrid/Locator.rb +105 -0
- data/lib/IceGrid/Observer.rb +571 -0
- data/lib/IceGrid/Query.rb +168 -0
- data/lib/IceGrid/Registry.rb +120 -0
- data/lib/IceGrid/Session.rb +114 -0
- data/lib/IceGrid/UserAccountMapper.rb +101 -0
- data/lib/IcePatch2.rb +10 -0
- data/lib/IcePatch2/FileInfo.rb +75 -0
- data/lib/IcePatch2/FileServer.rb +141 -0
- data/lib/IceRuby.so +0 -0
- data/lib/IceStorm.rb +11 -0
- data/lib/IceStorm/IceStorm.rb +463 -0
- data/lib/IceStorm/Metrics.rb +155 -0
- data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
- data/slice/Freeze/CatalogData.ice +49 -0
- data/slice/Freeze/Connection.ice +111 -0
- data/slice/Freeze/ConnectionF.ice +20 -0
- data/slice/Freeze/DB.ice +37 -0
- data/slice/Freeze/Evictor.ice +339 -0
- data/slice/Freeze/EvictorF.ice +22 -0
- data/slice/Freeze/EvictorStorage.ice +72 -0
- data/slice/Freeze/Exception.ice +100 -0
- data/slice/Freeze/Transaction.ice +57 -0
- data/slice/Freeze/TransactionalEvictor.ice +50 -0
- data/slice/Glacier2/Metrics.ice +77 -0
- data/slice/Glacier2/PermissionsVerifier.ice +105 -0
- data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
- data/slice/Glacier2/Router.ice +178 -0
- data/slice/Glacier2/RouterF.ice +20 -0
- data/slice/Glacier2/SSLInfo.ice +50 -0
- data/slice/Glacier2/Session.ice +273 -0
- data/slice/Ice/BuiltinSequences.ice +48 -0
- data/slice/Ice/Communicator.ice +567 -0
- data/slice/Ice/CommunicatorF.ice +20 -0
- data/slice/Ice/Connection.ice +323 -0
- data/slice/Ice/ConnectionF.ice +22 -0
- data/slice/Ice/Current.ice +160 -0
- data/slice/Ice/Endpoint.ice +227 -0
- data/slice/Ice/EndpointF.ice +32 -0
- data/slice/Ice/EndpointTypes.ice +38 -0
- data/slice/Ice/FacetMap.ice +25 -0
- data/slice/Ice/Identity.ice +59 -0
- data/slice/Ice/ImplicitContext.ice +109 -0
- data/slice/Ice/ImplicitContextF.ice +20 -0
- data/slice/Ice/Instrumentation.ice +499 -0
- data/slice/Ice/InstrumentationF.ice +26 -0
- data/slice/Ice/LocalException.ice +1015 -0
- data/slice/Ice/Locator.ice +227 -0
- data/slice/Ice/LocatorF.ice +21 -0
- data/slice/Ice/Logger.ice +86 -0
- data/slice/Ice/LoggerF.ice +20 -0
- data/slice/Ice/Metrics.ice +422 -0
- data/slice/Ice/ObjectAdapter.ice +673 -0
- data/slice/Ice/ObjectAdapterF.ice +20 -0
- data/slice/Ice/ObjectFactory.ice +60 -0
- data/slice/Ice/ObjectFactoryF.ice +20 -0
- data/slice/Ice/Plugin.ice +117 -0
- data/slice/Ice/PluginF.ice +21 -0
- data/slice/Ice/Process.ice +54 -0
- data/slice/Ice/ProcessF.ice +20 -0
- data/slice/Ice/Properties.ice +228 -0
- data/slice/Ice/PropertiesAdmin.ice +75 -0
- data/slice/Ice/PropertiesF.ice +21 -0
- data/slice/Ice/RemoteLogger.ice +232 -0
- data/slice/Ice/Router.ice +83 -0
- data/slice/Ice/RouterF.ice +20 -0
- data/slice/Ice/ServantLocator.ice +117 -0
- data/slice/Ice/ServantLocatorF.ice +20 -0
- data/slice/Ice/SliceChecksumDict.ice +25 -0
- data/slice/Ice/Version.ice +39 -0
- data/slice/IceBox/IceBox.ice +194 -0
- data/slice/IceDiscovery/IceDiscovery.ice +32 -0
- data/slice/IceGrid/Admin.ice +1578 -0
- data/slice/IceGrid/Descriptor.ice +1079 -0
- data/slice/IceGrid/Discovery.ice +73 -0
- data/slice/IceGrid/Exception.ice +383 -0
- data/slice/IceGrid/FileParser.ice +61 -0
- data/slice/IceGrid/Locator.ice +56 -0
- data/slice/IceGrid/Observer.ice +394 -0
- data/slice/IceGrid/PluginFacade.ice +316 -0
- data/slice/IceGrid/Query.ice +130 -0
- data/slice/IceGrid/Registry.ice +138 -0
- data/slice/IceGrid/Session.ice +124 -0
- data/slice/IceGrid/UserAccountMapper.ice +58 -0
- data/slice/IcePatch2/FileInfo.ice +49 -0
- data/slice/IcePatch2/FileServer.ice +129 -0
- data/slice/IceSSL/ConnectionInfo.ice +34 -0
- data/slice/IceSSL/EndpointInfo.ice +41 -0
- data/slice/IceStorm/IceStorm.ice +405 -0
- data/slice/IceStorm/Metrics.ice +71 -0
- metadata +207 -0
@@ -0,0 +1,124 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:IceGrid/Config.h"]]
|
14
|
+
|
15
|
+
#include <Glacier2/Session.ice>
|
16
|
+
#include <IceGrid/Exception.ice>
|
17
|
+
|
18
|
+
module IceGrid
|
19
|
+
{
|
20
|
+
|
21
|
+
/**
|
22
|
+
*
|
23
|
+
* A session object is used by IceGrid clients to allocate and
|
24
|
+
* release objects. Client sessions are either created with the
|
25
|
+
* {@link Registry} object or the registry client {@link Glacier2.SessionManager}
|
26
|
+
* object.
|
27
|
+
*
|
28
|
+
* @see Registry
|
29
|
+
* @see Glacier2.SessionManager
|
30
|
+
*
|
31
|
+
**/
|
32
|
+
interface Session extends Glacier2::Session
|
33
|
+
{
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* Keep the session alive. Clients should call this operation
|
37
|
+
* regularly to prevent the server from reaping the session.
|
38
|
+
*
|
39
|
+
* @see Registry#getSessionTimeout
|
40
|
+
*
|
41
|
+
**/
|
42
|
+
idempotent void keepAlive();
|
43
|
+
|
44
|
+
/**
|
45
|
+
*
|
46
|
+
* Allocate an object. Depending on the allocation timeout, this
|
47
|
+
* operation might hang until the object is available or until the
|
48
|
+
* timeout is reached.
|
49
|
+
*
|
50
|
+
* @param id The identity of the object to allocate.
|
51
|
+
*
|
52
|
+
* @return The proxy of the allocated object.
|
53
|
+
*
|
54
|
+
* @throws ObjectNotRegisteredException Raised if the object with
|
55
|
+
* the given identity is not registered with the registry.
|
56
|
+
*
|
57
|
+
* @throws AllocationException Raised if the object can't be
|
58
|
+
* allocated.
|
59
|
+
*
|
60
|
+
* @see #setAllocationTimeout
|
61
|
+
* @see #releaseObject
|
62
|
+
*
|
63
|
+
**/
|
64
|
+
["amd"] Object* allocateObjectById(Ice::Identity id)
|
65
|
+
throws ObjectNotRegisteredException, AllocationException;
|
66
|
+
|
67
|
+
/**
|
68
|
+
*
|
69
|
+
* Allocate an object with the given type. Depending on the
|
70
|
+
* allocation timeout, this operation can block until an object
|
71
|
+
* becomes available or until the timeout is reached.
|
72
|
+
*
|
73
|
+
* @param type The type of the object.
|
74
|
+
*
|
75
|
+
* @return The proxy of the allocated object.
|
76
|
+
*
|
77
|
+
* @throws ObjectNotRegisteredException Raised if no objects with the given type can be allocated.
|
78
|
+
*
|
79
|
+
* @throws AllocationException Raised if the object could not be allocated.
|
80
|
+
*
|
81
|
+
* @see #setAllocationTimeout
|
82
|
+
* @see #releaseObject
|
83
|
+
*
|
84
|
+
**/
|
85
|
+
["amd"] Object* allocateObjectByType(string type)
|
86
|
+
throws AllocationException;
|
87
|
+
|
88
|
+
/**
|
89
|
+
*
|
90
|
+
* Release an object.
|
91
|
+
*
|
92
|
+
* @param id The identity of the object to release.
|
93
|
+
*
|
94
|
+
* @throws ObjectNotRegisteredException Raised if the object with
|
95
|
+
* the given identity is not registered with the registry.
|
96
|
+
*
|
97
|
+
* @throws AllocationException Raised if the given object can't be
|
98
|
+
* released. This might happen if the object isn't allocatable or
|
99
|
+
* isn't allocated by the session.
|
100
|
+
*
|
101
|
+
* @see #allocateObjectById
|
102
|
+
* @see #allocateObjectByType
|
103
|
+
*
|
104
|
+
**/
|
105
|
+
void releaseObject(Ice::Identity id)
|
106
|
+
throws ObjectNotRegisteredException, AllocationException;
|
107
|
+
|
108
|
+
/**
|
109
|
+
*
|
110
|
+
* Set the allocation timeout. If no objects are available for an
|
111
|
+
* allocation request, the request will hang for the duration of
|
112
|
+
* this timeout.
|
113
|
+
*
|
114
|
+
* @param timeout The timeout in milliseconds.
|
115
|
+
*
|
116
|
+
* @see #allocateObjectById
|
117
|
+
* @see #allocateObjectByType
|
118
|
+
*
|
119
|
+
**/
|
120
|
+
idempotent void setAllocationTimeout(int timeout);
|
121
|
+
};
|
122
|
+
|
123
|
+
};
|
124
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:IceGrid/Config.h"]]
|
14
|
+
|
15
|
+
module IceGrid
|
16
|
+
{
|
17
|
+
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* This exception is raised if a user account for a given session
|
21
|
+
* identifier can't be found.
|
22
|
+
*
|
23
|
+
**/
|
24
|
+
exception UserAccountNotFoundException
|
25
|
+
{
|
26
|
+
};
|
27
|
+
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* A user account mapper object is used by IceGrid nodes to map
|
31
|
+
* session identifiers to user accounts.
|
32
|
+
*
|
33
|
+
**/
|
34
|
+
interface UserAccountMapper
|
35
|
+
{
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* Get the name of the user account for the given user. This is
|
39
|
+
* used by IceGrid nodes to figure out the user account to use
|
40
|
+
* to run servers.
|
41
|
+
*
|
42
|
+
* @param user The value of the server descriptor's <tt>user</tt>
|
43
|
+
* attribute. If this attribute is not defined, and the server's
|
44
|
+
* activation mode is <tt>session</tt>, the default value of
|
45
|
+
* <tt>user</tt> is the session identifier.
|
46
|
+
*
|
47
|
+
* @return The user account name.
|
48
|
+
*
|
49
|
+
* @throws UserAccountNotFoundException Raised if no user account
|
50
|
+
* is found for the given user.
|
51
|
+
*
|
52
|
+
**/
|
53
|
+
string getUserAccount(string user)
|
54
|
+
throws UserAccountNotFoundException;
|
55
|
+
};
|
56
|
+
|
57
|
+
};
|
58
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:IcePatch2/Config.h"]]
|
14
|
+
|
15
|
+
#include <Ice/BuiltinSequences.ice>
|
16
|
+
|
17
|
+
module IcePatch2
|
18
|
+
{
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* Basic information about a single file.
|
23
|
+
*
|
24
|
+
**/
|
25
|
+
struct FileInfo
|
26
|
+
{
|
27
|
+
/** The pathname. **/
|
28
|
+
string path;
|
29
|
+
|
30
|
+
/** The SHA-1 checksum of the file. **/
|
31
|
+
Ice::ByteSeq checksum;
|
32
|
+
|
33
|
+
/** The size of the compressed file in number of bytes. **/
|
34
|
+
int size;
|
35
|
+
|
36
|
+
/** The executable flag. */
|
37
|
+
bool executable;
|
38
|
+
};
|
39
|
+
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* A sequence with information about many files.
|
43
|
+
*
|
44
|
+
**/
|
45
|
+
sequence<FileInfo> FileInfoSeq;
|
46
|
+
|
47
|
+
};
|
48
|
+
|
49
|
+
|
@@ -0,0 +1,129 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:IcePatch2/Config.h"]]
|
14
|
+
|
15
|
+
#include <IcePatch2/FileInfo.ice>
|
16
|
+
|
17
|
+
/**
|
18
|
+
*
|
19
|
+
* IcePatch can be used to update file hiearchies in a simple and
|
20
|
+
* efficient manner. Checksums ensure file integrity, and data is
|
21
|
+
* compressed before download.
|
22
|
+
*
|
23
|
+
**/
|
24
|
+
module IcePatch2
|
25
|
+
{
|
26
|
+
|
27
|
+
/**
|
28
|
+
*
|
29
|
+
* A sequence of byte sequences. Each element is the checksum for a
|
30
|
+
* partition.
|
31
|
+
*
|
32
|
+
**/
|
33
|
+
sequence<Ice::ByteSeq> ByteSeqSeq;
|
34
|
+
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* The <tt>partition</tt> argument for
|
38
|
+
* {@link FileServer#getFileInfoSeq} was not in the range 0-255.
|
39
|
+
*
|
40
|
+
**/
|
41
|
+
exception PartitionOutOfRangeException
|
42
|
+
{
|
43
|
+
};
|
44
|
+
|
45
|
+
/**
|
46
|
+
*
|
47
|
+
* This exception is raised if {@link FileServer#getFileCompressed} cannot read the
|
48
|
+
* contents of a file.
|
49
|
+
*
|
50
|
+
**/
|
51
|
+
exception FileAccessException
|
52
|
+
{
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* An explanation of the reason for the failure.
|
56
|
+
*
|
57
|
+
**/
|
58
|
+
string reason;
|
59
|
+
};
|
60
|
+
|
61
|
+
/**
|
62
|
+
*
|
63
|
+
* The interface that provides access to files.
|
64
|
+
*
|
65
|
+
**/
|
66
|
+
interface FileServer
|
67
|
+
{
|
68
|
+
/**
|
69
|
+
*
|
70
|
+
* Return the {@link FileInfoSeq} for the specified partition. If the
|
71
|
+
* partion number is out of range, the operation throws
|
72
|
+
* {@link PartitionOutOfRangException}.
|
73
|
+
*
|
74
|
+
* @param partition The partition number in the range 0-255.
|
75
|
+
*
|
76
|
+
* @return A sequence containing the {@link FileInfo} structures for
|
77
|
+
* files in the specified partition.
|
78
|
+
*
|
79
|
+
**/
|
80
|
+
["nonmutating", "cpp:const"] idempotent FileInfoSeq getFileInfoSeq(int partition)
|
81
|
+
throws PartitionOutOfRangeException;
|
82
|
+
|
83
|
+
/**
|
84
|
+
*
|
85
|
+
* Return the checksums for all partitions.
|
86
|
+
*
|
87
|
+
* @return A sequence containing 256 checksums. Partitions with a
|
88
|
+
* checksum that differs from the previous checksum for the same
|
89
|
+
* partition contain updated files. Partitions with a checksum
|
90
|
+
* that is identical to the previous checksum do not contain
|
91
|
+
* updated files.
|
92
|
+
*
|
93
|
+
**/
|
94
|
+
["nonmutating", "cpp:const"] idempotent ByteSeqSeq getChecksumSeq();
|
95
|
+
|
96
|
+
/**
|
97
|
+
*
|
98
|
+
* Return the master checksum for all partitions. If this checksum is the same
|
99
|
+
* as for a previous run, the entire file set is up-to-date.
|
100
|
+
*
|
101
|
+
* @return The master checksum for the file set.
|
102
|
+
*
|
103
|
+
**/
|
104
|
+
["nonmutating", "cpp:const"] idempotent Ice::ByteSeq getChecksum();
|
105
|
+
|
106
|
+
/**
|
107
|
+
*
|
108
|
+
* Read the specified file. If the read operation fails, the
|
109
|
+
* operation throws {@link FileAccessException}. This operation may only
|
110
|
+
* return fewer bytes than requested in case there was an
|
111
|
+
* end-of-file condition.
|
112
|
+
*
|
113
|
+
* @param path The pathname (relative to the data directory) for
|
114
|
+
* the file to be read.
|
115
|
+
*
|
116
|
+
* @param pos The file offset at which to begin reading.
|
117
|
+
*
|
118
|
+
* @param num The number of bytes to be read.
|
119
|
+
*
|
120
|
+
* @return A sequence containing the compressed file contents.
|
121
|
+
*
|
122
|
+
**/
|
123
|
+
["amd", "nonmutating", "cpp:const", "cpp:array"]
|
124
|
+
idempotent Ice::ByteSeq getFileCompressed(string path, int pos, int num)
|
125
|
+
throws FileAccessException;
|
126
|
+
};
|
127
|
+
|
128
|
+
};
|
129
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
|
14
|
+
#include <Ice/Connection.ice>
|
15
|
+
|
16
|
+
module IceSSL
|
17
|
+
{
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* Provides access to the connection details of an SSL connection
|
22
|
+
*
|
23
|
+
**/
|
24
|
+
local class ConnectionInfo extends Ice::IPConnectionInfo
|
25
|
+
{
|
26
|
+
/** The negotiated cipher suite. */
|
27
|
+
string cipher;
|
28
|
+
|
29
|
+
/** The certificate chain. */
|
30
|
+
Ice::StringSeq certs;
|
31
|
+
};
|
32
|
+
|
33
|
+
};
|
34
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
|
14
|
+
#include <Ice/Endpoint.ice>
|
15
|
+
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* IceSSL provides a secure transport for Ice.
|
19
|
+
*
|
20
|
+
**/
|
21
|
+
module IceSSL
|
22
|
+
{
|
23
|
+
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* Uniquely identifies SSL endpoints.
|
27
|
+
*
|
28
|
+
**/
|
29
|
+
const short EndpointType = 2;
|
30
|
+
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* Provides access to an SSL endpoint information.
|
34
|
+
*
|
35
|
+
**/
|
36
|
+
local class EndpointInfo extends Ice::IPEndpointInfo
|
37
|
+
{
|
38
|
+
};
|
39
|
+
|
40
|
+
};
|
41
|
+
|
@@ -0,0 +1,405 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:IceStorm/Config.h"]]
|
14
|
+
|
15
|
+
#include <Ice/Identity.ice>
|
16
|
+
#include <Ice/SliceChecksumDict.ice>
|
17
|
+
|
18
|
+
#include <IceStorm/Metrics.ice>
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* A messaging service with support for federation. In contrast to
|
23
|
+
* most other messaging or event services, IceStorm supports typed
|
24
|
+
* events, meaning that broadcasting a message over a federation is as
|
25
|
+
* easy as invoking a method on an interface.
|
26
|
+
*
|
27
|
+
**/
|
28
|
+
module IceStorm
|
29
|
+
{
|
30
|
+
|
31
|
+
interface Topic;
|
32
|
+
|
33
|
+
/**
|
34
|
+
*
|
35
|
+
* Information on the topic links.
|
36
|
+
*
|
37
|
+
**/
|
38
|
+
struct LinkInfo
|
39
|
+
{
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* The linked topic.
|
43
|
+
*
|
44
|
+
**/
|
45
|
+
Topic* theTopic;
|
46
|
+
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* The name of the linked topic.
|
50
|
+
*
|
51
|
+
**/
|
52
|
+
string name;
|
53
|
+
|
54
|
+
/**
|
55
|
+
*
|
56
|
+
* The cost of traversing this link.
|
57
|
+
*
|
58
|
+
**/
|
59
|
+
int cost;
|
60
|
+
};
|
61
|
+
|
62
|
+
/**
|
63
|
+
*
|
64
|
+
* A sequence of {@link LinkInfo} objects.
|
65
|
+
*
|
66
|
+
**/
|
67
|
+
sequence<LinkInfo> LinkInfoSeq;
|
68
|
+
|
69
|
+
/**
|
70
|
+
*
|
71
|
+
* This dictionary represents quality of service parameters.
|
72
|
+
*
|
73
|
+
* @see Topic#subscribeAndGetPublisher
|
74
|
+
*
|
75
|
+
*/
|
76
|
+
dictionary<string, string> QoS;
|
77
|
+
|
78
|
+
/**
|
79
|
+
*
|
80
|
+
* This exception indicates that an attempt was made to create a link
|
81
|
+
* that already exists.
|
82
|
+
*
|
83
|
+
**/
|
84
|
+
exception LinkExists
|
85
|
+
{
|
86
|
+
/**
|
87
|
+
*
|
88
|
+
* The name of the linked topic.
|
89
|
+
*
|
90
|
+
*/
|
91
|
+
string name;
|
92
|
+
};
|
93
|
+
|
94
|
+
/**
|
95
|
+
*
|
96
|
+
* This exception indicates that an attempt was made to remove a
|
97
|
+
* link that does not exist.
|
98
|
+
*
|
99
|
+
**/
|
100
|
+
exception NoSuchLink
|
101
|
+
{
|
102
|
+
/**
|
103
|
+
*
|
104
|
+
* The name of the link that does not exist.
|
105
|
+
*
|
106
|
+
*/
|
107
|
+
string name;
|
108
|
+
};
|
109
|
+
|
110
|
+
/**
|
111
|
+
*
|
112
|
+
* This exception indicates that an attempt was made to subscribe
|
113
|
+
* a proxy for which a subscription already exists.
|
114
|
+
*
|
115
|
+
**/
|
116
|
+
exception AlreadySubscribed
|
117
|
+
{
|
118
|
+
};
|
119
|
+
|
120
|
+
/**
|
121
|
+
*
|
122
|
+
* This exception indicates that an attempt was made to subscribe
|
123
|
+
* a proxy that is null.
|
124
|
+
*
|
125
|
+
**/
|
126
|
+
exception InvalidSubscriber
|
127
|
+
{
|
128
|
+
/**
|
129
|
+
*
|
130
|
+
* The reason for the failure.
|
131
|
+
*
|
132
|
+
**/
|
133
|
+
string reason;
|
134
|
+
};
|
135
|
+
|
136
|
+
/**
|
137
|
+
*
|
138
|
+
* This exception indicates that a subscription failed due to an
|
139
|
+
* invalid QoS.
|
140
|
+
*
|
141
|
+
**/
|
142
|
+
exception BadQoS
|
143
|
+
{
|
144
|
+
/**
|
145
|
+
*
|
146
|
+
* The reason for the failure.
|
147
|
+
*
|
148
|
+
**/
|
149
|
+
string reason;
|
150
|
+
};
|
151
|
+
|
152
|
+
/**
|
153
|
+
*
|
154
|
+
* Publishers publish information on a particular topic. A topic
|
155
|
+
* logically represents a type.
|
156
|
+
*
|
157
|
+
* @see TopicManager
|
158
|
+
*
|
159
|
+
**/
|
160
|
+
interface Topic
|
161
|
+
{
|
162
|
+
/**
|
163
|
+
*
|
164
|
+
* Get the name of this topic.
|
165
|
+
*
|
166
|
+
* @return The name of the topic.
|
167
|
+
*
|
168
|
+
* @see TopicManager#create
|
169
|
+
*
|
170
|
+
**/
|
171
|
+
["nonmutating", "cpp:const"] idempotent string getName();
|
172
|
+
|
173
|
+
/**
|
174
|
+
*
|
175
|
+
* Get a proxy to a publisher object for this topic. To publish
|
176
|
+
* data to a topic, the publisher calls {@link #getPublisher} and then
|
177
|
+
* casts to the topic type. An unchecked cast must be used on this
|
178
|
+
* proxy. If a replicated IceStorm deployment is used this call
|
179
|
+
* may return a replicated proxy.
|
180
|
+
*
|
181
|
+
* @return A proxy to publish data on this topic.
|
182
|
+
*
|
183
|
+
**/
|
184
|
+
["nonmutating", "cpp:const"] idempotent Object* getPublisher();
|
185
|
+
|
186
|
+
/**
|
187
|
+
*
|
188
|
+
* Get a non-replicated proxy to a publisher object for this
|
189
|
+
* topic. To publish data to a topic, the publisher calls
|
190
|
+
* {@link #getPublisher} and then casts to the topic type. An unchecked
|
191
|
+
* cast must be used on this proxy.
|
192
|
+
*
|
193
|
+
* @return A proxy to publish data on this topic.
|
194
|
+
*
|
195
|
+
**/
|
196
|
+
["nonmutating", "cpp:const"] idempotent Object* getNonReplicatedPublisher();
|
197
|
+
|
198
|
+
|
199
|
+
/**
|
200
|
+
*
|
201
|
+
* Subscribe with the given <tt>qos</tt> to this topic. A
|
202
|
+
* per-subscriber publisher object is returned.
|
203
|
+
*
|
204
|
+
* @param theQoS The quality of service parameters for this
|
205
|
+
* subscription.
|
206
|
+
*
|
207
|
+
* @param subscriber The subscriber's proxy.
|
208
|
+
*
|
209
|
+
* @return The per-subscriber publisher object.
|
210
|
+
*
|
211
|
+
* @throws AlreadySubscribed Raised if the subscriber object is
|
212
|
+
* already subscribed.
|
213
|
+
*
|
214
|
+
* @throws NullSubscriber Raised if the subscriber object is null.
|
215
|
+
*
|
216
|
+
* @throws BadQoS Raised if the requested quality of service
|
217
|
+
* is unavailable or invalid.
|
218
|
+
*
|
219
|
+
* @see #unsubscribe
|
220
|
+
*
|
221
|
+
**/
|
222
|
+
Object* subscribeAndGetPublisher(QoS theQoS, Object* subscriber)
|
223
|
+
throws AlreadySubscribed, InvalidSubscriber, BadQoS;
|
224
|
+
|
225
|
+
/**
|
226
|
+
*
|
227
|
+
* Unsubscribe the given <tt>subscriber</tt>.
|
228
|
+
*
|
229
|
+
* @param subscriber The proxy of an existing subscriber.
|
230
|
+
*
|
231
|
+
* @see #subscribeAndGetPublisher
|
232
|
+
*
|
233
|
+
**/
|
234
|
+
idempotent void unsubscribe(Object* subscriber);
|
235
|
+
|
236
|
+
/**
|
237
|
+
*
|
238
|
+
* Create a link to the given topic. All events originating
|
239
|
+
* on this topic will also be sent to <tt>linkTo</tt>.
|
240
|
+
*
|
241
|
+
* @param linkTo The topic to link to.
|
242
|
+
*
|
243
|
+
* @param cost The cost to the linked topic.
|
244
|
+
*
|
245
|
+
* @throws LinkExists Raised if a link to the same topic already
|
246
|
+
* exists.
|
247
|
+
*
|
248
|
+
**/
|
249
|
+
void link(Topic* linkTo, int cost) throws LinkExists;
|
250
|
+
|
251
|
+
/**
|
252
|
+
*
|
253
|
+
* Destroy the link from this topic to the given topic <tt>linkTo</tt>.
|
254
|
+
*
|
255
|
+
* @param linkTo The topic to destroy the link to.
|
256
|
+
*
|
257
|
+
* @throws NoSuchLink Raised if a link to the topic does not exist.
|
258
|
+
*
|
259
|
+
**/
|
260
|
+
void unlink(Topic* linkTo) throws NoSuchLink;
|
261
|
+
|
262
|
+
/**
|
263
|
+
*
|
264
|
+
* Retrieve information on the current links.
|
265
|
+
*
|
266
|
+
* @return A sequence of LinkInfo objects.
|
267
|
+
*
|
268
|
+
**/
|
269
|
+
["nonmutating", "cpp:const"] idempotent LinkInfoSeq getLinkInfoSeq();
|
270
|
+
|
271
|
+
/**
|
272
|
+
*
|
273
|
+
* Retrieve the list of subscribers for this topic.
|
274
|
+
*
|
275
|
+
* @return The sequence of Ice identities for the subscriber objects.
|
276
|
+
*
|
277
|
+
**/
|
278
|
+
["nonmutating", "cpp:const"] Ice::IdentitySeq getSubscribers();
|
279
|
+
|
280
|
+
/**
|
281
|
+
*
|
282
|
+
* Destroy the topic.
|
283
|
+
*
|
284
|
+
**/
|
285
|
+
void destroy();
|
286
|
+
};
|
287
|
+
|
288
|
+
/**
|
289
|
+
*
|
290
|
+
* Mapping of topic name to topic proxy.
|
291
|
+
*
|
292
|
+
**/
|
293
|
+
dictionary<string, Topic*> TopicDict;
|
294
|
+
|
295
|
+
/**
|
296
|
+
*
|
297
|
+
* This exception indicates that an attempt was made to create a topic
|
298
|
+
* that already exists.
|
299
|
+
*
|
300
|
+
**/
|
301
|
+
exception TopicExists
|
302
|
+
{
|
303
|
+
/**
|
304
|
+
*
|
305
|
+
* The name of the topic that already exists.
|
306
|
+
*
|
307
|
+
*/
|
308
|
+
string name;
|
309
|
+
};
|
310
|
+
|
311
|
+
/**
|
312
|
+
*
|
313
|
+
* This exception indicates that an attempt was made to retrieve a
|
314
|
+
* topic that does not exist.
|
315
|
+
*
|
316
|
+
**/
|
317
|
+
exception NoSuchTopic
|
318
|
+
{
|
319
|
+
/**
|
320
|
+
*
|
321
|
+
* The name of the topic that does not exist.
|
322
|
+
*
|
323
|
+
*/
|
324
|
+
string name;
|
325
|
+
};
|
326
|
+
|
327
|
+
/**
|
328
|
+
*
|
329
|
+
* A topic manager manages topics, and subscribers to topics.
|
330
|
+
*
|
331
|
+
* @see Topic
|
332
|
+
*
|
333
|
+
**/
|
334
|
+
interface TopicManager
|
335
|
+
{
|
336
|
+
/**
|
337
|
+
*
|
338
|
+
* Create a new topic. The topic name must be unique, otherwise
|
339
|
+
* {@link TopicExists} is raised.
|
340
|
+
*
|
341
|
+
* @param name The name of the topic.
|
342
|
+
*
|
343
|
+
* @return A proxy to the topic instance.
|
344
|
+
*
|
345
|
+
* @throws TopicExists Raised if a topic with the same name already
|
346
|
+
* exists.
|
347
|
+
*
|
348
|
+
**/
|
349
|
+
Topic* create(string name) throws TopicExists;
|
350
|
+
|
351
|
+
/**
|
352
|
+
*
|
353
|
+
* Retrieve a topic by name.
|
354
|
+
*
|
355
|
+
* @param name The name of the topic.
|
356
|
+
*
|
357
|
+
* @return A proxy to the topic instance.
|
358
|
+
*
|
359
|
+
* @throws NoSuchTopic Raised if the topic does not exist.
|
360
|
+
*
|
361
|
+
**/
|
362
|
+
["nonmutating", "cpp:const"] idempotent Topic* retrieve(string name) throws NoSuchTopic;
|
363
|
+
|
364
|
+
/**
|
365
|
+
*
|
366
|
+
* Retrieve all topics managed by this topic manager.
|
367
|
+
*
|
368
|
+
* @return A dictionary of string, topic proxy pairs.
|
369
|
+
*
|
370
|
+
**/
|
371
|
+
["nonmutating", "cpp:const"] idempotent TopicDict retrieveAll();
|
372
|
+
|
373
|
+
/**
|
374
|
+
*
|
375
|
+
* Returns the checksums for the IceStorm Slice definitions.
|
376
|
+
*
|
377
|
+
* @return A dictionary mapping Slice type ids to their checksums.
|
378
|
+
*
|
379
|
+
**/
|
380
|
+
["nonmutating", "cpp:const"] idempotent Ice::SliceChecksumDict getSliceChecksums();
|
381
|
+
};
|
382
|
+
|
383
|
+
/**
|
384
|
+
*
|
385
|
+
* This inferface is advertised by the IceStorm service through the
|
386
|
+
* Ice object with the identity `IceStorm/Finder'. This allows clients
|
387
|
+
* to retrieve the topic manager with just the endpoint information of
|
388
|
+
* the IceStorm service.
|
389
|
+
*
|
390
|
+
**/
|
391
|
+
interface Finder
|
392
|
+
{
|
393
|
+
/**
|
394
|
+
*
|
395
|
+
* Get the topic manager proxy. The proxy might point to several
|
396
|
+
* replicas.
|
397
|
+
*
|
398
|
+
* @return The topic manager proxy.
|
399
|
+
*
|
400
|
+
**/
|
401
|
+
TopicManager* getTopicManager();
|
402
|
+
};
|
403
|
+
|
404
|
+
};
|
405
|
+
|