zeroc-ice-x64-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-x64-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,20 @@
|
|
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
|
+
module Ice
|
15
|
+
{
|
16
|
+
|
17
|
+
local interface ObjectAdapter;
|
18
|
+
|
19
|
+
};
|
20
|
+
|
@@ -0,0 +1,60 @@
|
|
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
|
+
module Ice
|
15
|
+
{
|
16
|
+
|
17
|
+
/**
|
18
|
+
*
|
19
|
+
* A factory for objects. Object factories are used in several
|
20
|
+
* places, for example, when receiving "objects by value" and
|
21
|
+
* when Freeze restores a persistent object. Object factories
|
22
|
+
* must be implemented by the application writer, and registered
|
23
|
+
* with the communicator.
|
24
|
+
*
|
25
|
+
* @see Freeze
|
26
|
+
*
|
27
|
+
**/
|
28
|
+
local interface ObjectFactory
|
29
|
+
{
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* Create a new object for a given object type. The type is the
|
33
|
+
* absolute Slice type id, i.e., the id relative to the
|
34
|
+
* unnamed top-level Slice module. For example, the absolute
|
35
|
+
* Slice type id for interfaces of type <tt>Bar</tt> in the module
|
36
|
+
* <tt>Foo</tt> is <tt>::Foo::Bar</tt>.
|
37
|
+
*
|
38
|
+
* <p class="Note">The leading "<tt>::</tt>" is required.
|
39
|
+
*
|
40
|
+
* @param type The object type.
|
41
|
+
*
|
42
|
+
* @return The object created for the given type, or nil if the
|
43
|
+
* factory is unable to create the object.
|
44
|
+
*
|
45
|
+
**/
|
46
|
+
Object create(string type);
|
47
|
+
|
48
|
+
/**
|
49
|
+
*
|
50
|
+
* Called when the factory is removed from the communicator, or if
|
51
|
+
* the communicator is destroyed.
|
52
|
+
*
|
53
|
+
* @see Communicator#destroy
|
54
|
+
*
|
55
|
+
**/
|
56
|
+
void destroy();
|
57
|
+
};
|
58
|
+
|
59
|
+
};
|
60
|
+
|
@@ -0,0 +1,20 @@
|
|
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
|
+
module Ice
|
15
|
+
{
|
16
|
+
|
17
|
+
local interface ObjectFactory;
|
18
|
+
|
19
|
+
};
|
20
|
+
|
@@ -0,0 +1,117 @@
|
|
1
|
+
|
2
|
+
// **********************************************************************
|
3
|
+
//
|
4
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
5
|
+
//
|
6
|
+
// This copy of Ice is licensed to you under the terms described in the
|
7
|
+
// ICE_LICENSE file included in this distribution.
|
8
|
+
//
|
9
|
+
// **********************************************************************
|
10
|
+
|
11
|
+
#pragma once
|
12
|
+
|
13
|
+
[["cpp:header-ext:h"]]
|
14
|
+
|
15
|
+
#include <Ice/LoggerF.ice>
|
16
|
+
#include <Ice/BuiltinSequences.ice>
|
17
|
+
|
18
|
+
module Ice
|
19
|
+
{
|
20
|
+
|
21
|
+
/**
|
22
|
+
*
|
23
|
+
* A communicator plug-in. A plug-in generally adds a feature to a
|
24
|
+
* communicator, such as support for a protocol.
|
25
|
+
*
|
26
|
+
* The communicator loads its plug-ins in two stages: the first stage
|
27
|
+
* creates the plug-ins, and the second stage invokes {@link Plugin.initialize} on
|
28
|
+
* each one.
|
29
|
+
*
|
30
|
+
**/
|
31
|
+
local interface Plugin
|
32
|
+
{
|
33
|
+
/**
|
34
|
+
*
|
35
|
+
* Perform any necessary initialization steps.
|
36
|
+
*
|
37
|
+
**/
|
38
|
+
void initialize();
|
39
|
+
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* Called when the communicator is being destroyed.
|
43
|
+
*
|
44
|
+
**/
|
45
|
+
void destroy();
|
46
|
+
};
|
47
|
+
|
48
|
+
/**
|
49
|
+
*
|
50
|
+
* Each communicator has a plug-in manager to administer the set of
|
51
|
+
* plug-ins.
|
52
|
+
*
|
53
|
+
**/
|
54
|
+
local interface PluginManager
|
55
|
+
{
|
56
|
+
/**
|
57
|
+
*
|
58
|
+
* Initialize the configured plug-ins. The communicator automatically initializes
|
59
|
+
* the plug-ins by default, but an application may need to interact directly with
|
60
|
+
* a plug-in prior to initialization. In this case, the application must set
|
61
|
+
* <tt>Ice.InitPlugins=0</tt> and then invoke {@link #initializePlugins}
|
62
|
+
* manually. The plug-ins are initialized in the order in which they are loaded.
|
63
|
+
* If a plug-in raises an exception during initialization, the communicator
|
64
|
+
* invokes destroy on the plug-ins that have already been initialized.
|
65
|
+
*
|
66
|
+
* @throws InitializationException Raised if the plug-ins have already been initialized.
|
67
|
+
*
|
68
|
+
**/
|
69
|
+
void initializePlugins();
|
70
|
+
|
71
|
+
/**
|
72
|
+
*
|
73
|
+
* Get a list of plugins installed.
|
74
|
+
*
|
75
|
+
* @return The names of the plugins installed.
|
76
|
+
*
|
77
|
+
* @see #getPlugin
|
78
|
+
*
|
79
|
+
**/
|
80
|
+
StringSeq getPlugins();
|
81
|
+
|
82
|
+
/**
|
83
|
+
*
|
84
|
+
* Obtain a plug-in by name.
|
85
|
+
*
|
86
|
+
* @param name The plug-in's name.
|
87
|
+
*
|
88
|
+
* @return The plug-in.
|
89
|
+
*
|
90
|
+
* @throws NotRegisteredException Raised if no plug-in is found with the given name.
|
91
|
+
*
|
92
|
+
**/
|
93
|
+
Plugin getPlugin(string name);
|
94
|
+
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* Install a new plug-in.
|
98
|
+
*
|
99
|
+
* @param name The plug-in's name.
|
100
|
+
*
|
101
|
+
* @param pi The plug-in.
|
102
|
+
*
|
103
|
+
* @throws AlreadyRegisteredException Raised if a plug-in already exists with the given name.
|
104
|
+
*
|
105
|
+
**/
|
106
|
+
void addPlugin(string name, Plugin pi);
|
107
|
+
|
108
|
+
/**
|
109
|
+
*
|
110
|
+
* Called when the communicator is being destroyed.
|
111
|
+
*
|
112
|
+
**/
|
113
|
+
void destroy();
|
114
|
+
};
|
115
|
+
|
116
|
+
};
|
117
|
+
|
@@ -0,0 +1,21 @@
|
|
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
|
+
module Ice
|
15
|
+
{
|
16
|
+
|
17
|
+
local interface Plugin;
|
18
|
+
local interface PluginManager;
|
19
|
+
|
20
|
+
};
|
21
|
+
|
@@ -0,0 +1,54 @@
|
|
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
|
+
module Ice
|
15
|
+
{
|
16
|
+
|
17
|
+
/**
|
18
|
+
*
|
19
|
+
* An administrative interface for process management. Managed servers must
|
20
|
+
* implement this interface.
|
21
|
+
*
|
22
|
+
* <p class="Note">A servant implementing this interface is a potential target
|
23
|
+
* for denial-of-service attacks, therefore proper security precautions
|
24
|
+
* should be taken. For example, the servant can use a UUID to make its
|
25
|
+
* identity harder to guess, and be registered in an object adapter with
|
26
|
+
* a secured endpoint.
|
27
|
+
*
|
28
|
+
**/
|
29
|
+
interface Process
|
30
|
+
{
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* Initiate a graceful shut-down.
|
34
|
+
*
|
35
|
+
* @see Communicator#shutdown
|
36
|
+
*
|
37
|
+
**/
|
38
|
+
void shutdown();
|
39
|
+
|
40
|
+
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* Write a message on the process' stdout or stderr.
|
44
|
+
*
|
45
|
+
* @param message The message.
|
46
|
+
*
|
47
|
+
* @param fd 1 for stdout, 2 for stderr.
|
48
|
+
*
|
49
|
+
**/
|
50
|
+
void writeMessage(string message, int fd);
|
51
|
+
};
|
52
|
+
|
53
|
+
};
|
54
|
+
|
@@ -0,0 +1,20 @@
|
|
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
|
+
module Ice
|
15
|
+
{
|
16
|
+
|
17
|
+
interface Process;
|
18
|
+
|
19
|
+
};
|
20
|
+
|
@@ -0,0 +1,228 @@
|
|
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/PropertiesAdmin.ice>
|
15
|
+
|
16
|
+
module Ice
|
17
|
+
{
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* A property set used to configure Ice and Ice applications.
|
22
|
+
* Properties are key/value pairs, with both keys and values
|
23
|
+
* being strings. By convention, property keys should have the form
|
24
|
+
* <em>application-name</em>\[.<em>category</em>\[.<em>sub-category</em>]].<em>name</em>.
|
25
|
+
*
|
26
|
+
**/
|
27
|
+
local interface Properties
|
28
|
+
{
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* Get a property by key. If the property is not set, an empty
|
32
|
+
* string is returned.
|
33
|
+
*
|
34
|
+
* @param key The property key.
|
35
|
+
*
|
36
|
+
* @return The property value.
|
37
|
+
*
|
38
|
+
* @see #setProperty
|
39
|
+
*
|
40
|
+
**/
|
41
|
+
string getProperty(string key);
|
42
|
+
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* Get a property by key. If the property is not set, the
|
46
|
+
* given default value is returned.
|
47
|
+
*
|
48
|
+
* @param key The property key.
|
49
|
+
*
|
50
|
+
* @param value The default value to use if the property does not
|
51
|
+
* exist.
|
52
|
+
*
|
53
|
+
* @return The property value or the default value.
|
54
|
+
*
|
55
|
+
* @see #setProperty
|
56
|
+
*
|
57
|
+
**/
|
58
|
+
string getPropertyWithDefault(string key, string value);
|
59
|
+
|
60
|
+
/**
|
61
|
+
*
|
62
|
+
* Get a property as an integer. If the property is not set, 0
|
63
|
+
* is returned.
|
64
|
+
*
|
65
|
+
* @param key The property key.
|
66
|
+
*
|
67
|
+
* @return The property value interpreted as an integer.
|
68
|
+
*
|
69
|
+
* @see #setProperty
|
70
|
+
*
|
71
|
+
**/
|
72
|
+
int getPropertyAsInt(string key);
|
73
|
+
|
74
|
+
/**
|
75
|
+
*
|
76
|
+
* Get a property as an integer. If the property is not set, the
|
77
|
+
* given default value is returned.
|
78
|
+
*
|
79
|
+
* @param key The property key.
|
80
|
+
*
|
81
|
+
* @param value The default value to use if the property does not
|
82
|
+
* exist.
|
83
|
+
*
|
84
|
+
* @return The property value interpreted as an integer, or the
|
85
|
+
* default value.
|
86
|
+
*
|
87
|
+
* @see #setProperty
|
88
|
+
*
|
89
|
+
**/
|
90
|
+
int getPropertyAsIntWithDefault(string key, int value);
|
91
|
+
|
92
|
+
|
93
|
+
/**
|
94
|
+
*
|
95
|
+
* Get a property as a list of strings. The strings must be
|
96
|
+
* separated by whitespace or comma. If the property is not set,
|
97
|
+
* an empty list is returned. The strings in the list can contain
|
98
|
+
* whitespace and commas if they are enclosed in single or double
|
99
|
+
* quotes. If quotes are mismatched, an empty list is returned.
|
100
|
+
* Within single quotes or double quotes, you can escape the
|
101
|
+
* quote in question with \, e.g. O'Reilly can be written as
|
102
|
+
* O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
103
|
+
*
|
104
|
+
* @param key The property key.
|
105
|
+
*
|
106
|
+
* @return The property value interpreted as a list of strings.
|
107
|
+
*
|
108
|
+
* @see #setProperty
|
109
|
+
*
|
110
|
+
**/
|
111
|
+
StringSeq getPropertyAsList(string key);
|
112
|
+
|
113
|
+
/**
|
114
|
+
*
|
115
|
+
* Get a property as a list of strings. The strings must be
|
116
|
+
* separated by whitespace or comma. If the property is not set,
|
117
|
+
* the default list is returned. The strings in the list can contain
|
118
|
+
* whitespace and commas if they are enclosed in single or double
|
119
|
+
* quotes. If quotes are mismatched, the default list is returned.
|
120
|
+
* Within single quotes or double quotes, you can escape the
|
121
|
+
* quote in question with \, e.g. O'Reilly can be written as
|
122
|
+
* O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
123
|
+
*
|
124
|
+
* @param key The property key.
|
125
|
+
*
|
126
|
+
* @param value The default value to use if the property is not set.
|
127
|
+
*
|
128
|
+
* @return The property value interpreted as list of strings, or the
|
129
|
+
* default value.
|
130
|
+
*
|
131
|
+
* @see #setProperty
|
132
|
+
*
|
133
|
+
**/
|
134
|
+
StringSeq getPropertyAsListWithDefault(string key, StringSeq value);
|
135
|
+
|
136
|
+
/**
|
137
|
+
*
|
138
|
+
* Get all properties whose keys begins with
|
139
|
+
* <em>prefix</em>. If
|
140
|
+
* <em>prefix</em> is an empty string,
|
141
|
+
* then all properties are returned.
|
142
|
+
*
|
143
|
+
* @param prefix The prefix to search for (empty string if none).
|
144
|
+
* @return The matching property set.
|
145
|
+
*
|
146
|
+
**/
|
147
|
+
PropertyDict getPropertiesForPrefix(string prefix);
|
148
|
+
|
149
|
+
/**
|
150
|
+
*
|
151
|
+
* Set a property. To unset a property, set it to
|
152
|
+
* the empty string.
|
153
|
+
*
|
154
|
+
* @param key The property key.
|
155
|
+
* @param value The property value.
|
156
|
+
*
|
157
|
+
* @see #getProperty
|
158
|
+
*
|
159
|
+
**/
|
160
|
+
void setProperty(string key, string value);
|
161
|
+
|
162
|
+
/**
|
163
|
+
*
|
164
|
+
* Get a sequence of command-line options that is equivalent to
|
165
|
+
* this property set. Each element of the returned sequence is
|
166
|
+
* a command-line option of the form
|
167
|
+
* <tt>--<em>key</em>=<em>value</em></tt>.
|
168
|
+
*
|
169
|
+
* @return The command line options for this property set.
|
170
|
+
*
|
171
|
+
**/
|
172
|
+
StringSeq getCommandLineOptions();
|
173
|
+
|
174
|
+
/**
|
175
|
+
*
|
176
|
+
* Convert a sequence of command-line options into properties.
|
177
|
+
* All options that begin with
|
178
|
+
* <tt>--<em>prefix</em>.</tt> are
|
179
|
+
* converted into properties. If the prefix is empty, all options
|
180
|
+
* that begin with <tt>--</tt> are converted to properties.
|
181
|
+
*
|
182
|
+
* @param prefix The property prefix, or an empty string to
|
183
|
+
* convert all options starting with <tt>--</tt>.
|
184
|
+
*
|
185
|
+
* @param options The command-line options.
|
186
|
+
*
|
187
|
+
* @return The command-line options that do not start with the specified
|
188
|
+
* prefix, in their original order.
|
189
|
+
*
|
190
|
+
**/
|
191
|
+
StringSeq parseCommandLineOptions(string prefix, StringSeq options);
|
192
|
+
|
193
|
+
/**
|
194
|
+
*
|
195
|
+
* Convert a sequence of command-line options into properties.
|
196
|
+
* All options that begin with one of the following prefixes
|
197
|
+
* are converted into properties: <tt>--Ice</tt>, <tt>--IceBox</tt>, <tt>--IceGrid</tt>,
|
198
|
+
* <tt>--IcePatch2</tt>, <tt>--IceSSL</tt>, <tt>--IceStorm</tt>, <tt>--Freeze</tt>, and <tt>--Glacier2</tt>.
|
199
|
+
*
|
200
|
+
* @param options The command-line options.
|
201
|
+
*
|
202
|
+
* @return The command-line options that do not start with one of
|
203
|
+
* the listed prefixes, in their original order.
|
204
|
+
*
|
205
|
+
**/
|
206
|
+
StringSeq parseIceCommandLineOptions(StringSeq options);
|
207
|
+
|
208
|
+
/**
|
209
|
+
*
|
210
|
+
* Load properties from a file.
|
211
|
+
*
|
212
|
+
* @param file The property file.
|
213
|
+
*
|
214
|
+
**/
|
215
|
+
void load(string file);
|
216
|
+
|
217
|
+
/**
|
218
|
+
*
|
219
|
+
* Create a copy of this property set.
|
220
|
+
*
|
221
|
+
* @return A copy of this property set.
|
222
|
+
*
|
223
|
+
**/
|
224
|
+
Properties clone();
|
225
|
+
};
|
226
|
+
|
227
|
+
};
|
228
|
+
|