Ice 3.8
Slice API Reference
Loading...
Searching...
No Matches
PropertiesAdmin.ice
1// Copyright (c) ZeroC, Inc.
2
3#pragma once
4
5[["cpp:dll-export:ICE_API"]]
6[["cpp:doxygen:include:Ice/Ice.h"]]
7[["cpp:header-ext:h"]]
8
9[["js:module:@zeroc/ice"]]
10
11#include "PropertyDict.ice"
12
13["java:identifier:com.zeroc.Ice"]
14module Ice
15{
16 /// Provides remote access to the properties of a communicator.
18 {
19 /// Gets a property by key.
20 /// @param key The property key.
21 /// @return The property value. This value is empty if the property is not set.
22 string getProperty(string key);
23
24 /// Gets all properties whose keys begin with @p prefix. If @p prefix is the empty string then all properties
25 /// are returned.
26 /// @param prefix The prefix to search for. May be empty.
27 /// @return The matching property set.
28 ["java:type:java.util.TreeMap<String, String>"] PropertyDict getPropertiesForPrefix(string prefix);
29
30 /// Updates the communicator's properties with the given property set. If an entry in @p newProperties matches
31 /// the name of an existing property, that property's value is replaced with the new value. If the new value is
32 /// the empty string, the property is removed. Existing properties that are not modified or removed by the
33 /// entries in @p newProperties are not affected by this update.
34 /// @param newProperties Properties to add, change, or remove.
35 void setProperties(PropertyDict newProperties);
36 }
37}
PropertyDict getPropertiesForPrefix(string prefix)
Gets all properties whose keys begin with prefix.
string getProperty(string key)
Gets a property by key.
void setProperties(PropertyDict newProperties)
Updates the communicator's properties with the given property set.
Provides remote access to the properties of a communicator.
dictionary< string, string > PropertyDict
A simple collection of properties, represented as a dictionary of key/value pairs.
The Ice RPC framework.