Ice._PropertiesAdminDisp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice Show documentation
Show all versions of ice Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.5
//
//
//
// Generated from file `PropertiesAdmin.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
/**
* The PropertiesAdmin interface provides remote access to the properties
* of a communicator.
*
**/
public abstract class _PropertiesAdminDisp extends Ice.ObjectImpl implements PropertiesAdmin
{
protected void
ice_copyStateFrom(Ice.Object __obj)
throws java.lang.CloneNotSupportedException
{
throw new java.lang.CloneNotSupportedException();
}
public static final String[] __ids =
{
"::Ice::Object",
"::Ice::PropertiesAdmin"
};
public boolean ice_isA(String s)
{
return java.util.Arrays.binarySearch(__ids, s) >= 0;
}
public boolean ice_isA(String s, Ice.Current __current)
{
return java.util.Arrays.binarySearch(__ids, s) >= 0;
}
public String[] ice_ids()
{
return __ids;
}
public String[] ice_ids(Ice.Current __current)
{
return __ids;
}
public String ice_id()
{
return __ids[1];
}
public String ice_id(Ice.Current __current)
{
return __ids[1];
}
public static String ice_staticId()
{
return __ids[1];
}
/**
* Get all properties whose keys begin with prefix. If
* prefix is an empty string then all properties are returned.
*
* @param prefix The prefix to search for (empty string if none).
* @return The matching property set.
*
**/
public final java.util.Map getPropertiesForPrefix(String prefix)
{
return getPropertiesForPrefix(prefix, null);
}
/**
* Get a property by key. If the property is not set, an empty
* string is returned.
*
* @param key The property key.
*
* @return The property value.
*
**/
public final String getProperty(String key)
{
return getProperty(key, null);
}
/**
* Update the communicator's properties with the given property set.
*
* @param __cb The callback object for the operation.
* @param newProperties Properties to be added, changed, or removed.
* If an entry in newProperties matches the name of an existing property,
* that property's value is replaced with the new value. If the new value
* is an empty string, the property is removed. Any existing properties
* that are not modified or removed by the entries in newProperties are
* retained with their original values.
*
**/
public final void setProperties_async(AMD_PropertiesAdmin_setProperties __cb, java.util.Map newProperties)
{
setProperties_async(__cb, newProperties, null);
}
public static Ice.DispatchStatus ___getProperty(PropertiesAdmin __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
String key;
key = __is.readString();
__inS.endReadParams();
String __ret = __obj.getProperty(key, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___getPropertiesForPrefix(PropertiesAdmin __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
String prefix;
prefix = __is.readString();
__inS.endReadParams();
java.util.Map __ret = __obj.getPropertiesForPrefix(prefix, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
PropertyDictHelper.write(__os, __ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___setProperties(PropertiesAdmin __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
java.util.Map newProperties;
newProperties = PropertyDictHelper.read(__is);
__inS.endReadParams();
_AMD_PropertiesAdmin_setProperties __cb = new _AMD_PropertiesAdmin_setProperties(__inS);
try
{
__obj.setProperties_async(__cb, newProperties, __current);
}
catch(java.lang.Exception ex)
{
__cb.ice_exception(ex);
}
catch(java.lang.Error ex)
{
__cb.__error(ex);
}
return Ice.DispatchStatus.DispatchAsync;
}
private final static String[] __all =
{
"getPropertiesForPrefix",
"getProperty",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping",
"setProperties"
};
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)
{
int pos = java.util.Arrays.binarySearch(__all, __current.operation);
if(pos < 0)
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
switch(pos)
{
case 0:
{
return ___getPropertiesForPrefix(this, in, __current);
}
case 1:
{
return ___getProperty(this, in, __current);
}
case 2:
{
return ___ice_id(this, in, __current);
}
case 3:
{
return ___ice_ids(this, in, __current);
}
case 4:
{
return ___ice_isA(this, in, __current);
}
case 5:
{
return ___ice_ping(this, in, __current);
}
case 6:
{
return ___setProperties(this, in, __current);
}
}
assert(false);
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
protected void __writeImpl(IceInternal.BasicStream __os)
{
__os.startWriteSlice(ice_staticId(), -1, true);
__os.endWriteSlice();
}
protected void __readImpl(IceInternal.BasicStream __is)
{
__is.startReadSlice();
__is.endReadSlice();
}
public static final long serialVersionUID = 0L;
}