IceGrid._RegistryDisp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icegrid-compat Show documentation
Show all versions of icegrid-compat Show documentation
Locate, deploy, and manage Ice servers
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `Registry.ice'
//
// Warning: do not edit this file.
//
//
//
package IceGrid;
public abstract class _RegistryDisp extends Ice.ObjectImpl implements Registry
{
private static final String[] _ids =
{
"::Ice::Object",
"::IceGrid::Registry"
};
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];
}
public final SessionPrx createSession(String userId, String password)
throws PermissionDeniedException
{
return createSession(userId, password, null);
}
public final AdminSessionPrx createAdminSession(String userId, String password)
throws PermissionDeniedException
{
return createAdminSession(userId, password, null);
}
public final SessionPrx createSessionFromSecureConnection()
throws PermissionDeniedException
{
return createSessionFromSecureConnection(null);
}
public final AdminSessionPrx createAdminSessionFromSecureConnection()
throws PermissionDeniedException
{
return createAdminSessionFromSecureConnection(null);
}
public final int getSessionTimeout()
{
return getSessionTimeout(null);
}
public final int getACMTimeout()
{
return getACMTimeout(null);
}
public static boolean _iceD_createSession(Registry obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_userId;
String iceP_password;
iceP_userId = istr.readString();
iceP_password = istr.readString();
inS.endReadParams();
SessionPrx ret = obj.createSession(iceP_userId, iceP_password, current);
Ice.OutputStream ostr = inS.startWriteParams();
SessionPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_createAdminSession(Registry obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_userId;
String iceP_password;
iceP_userId = istr.readString();
iceP_password = istr.readString();
inS.endReadParams();
AdminSessionPrx ret = obj.createAdminSession(iceP_userId, iceP_password, current);
Ice.OutputStream ostr = inS.startWriteParams();
AdminSessionPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_createSessionFromSecureConnection(Registry obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
inS.readEmptyParams();
SessionPrx ret = obj.createSessionFromSecureConnection(current);
Ice.OutputStream ostr = inS.startWriteParams();
SessionPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_createAdminSessionFromSecureConnection(Registry obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
inS.readEmptyParams();
AdminSessionPrx ret = obj.createAdminSessionFromSecureConnection(current);
Ice.OutputStream ostr = inS.startWriteParams();
AdminSessionPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getSessionTimeout(Registry obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
int ret = obj.getSessionTimeout(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeInt(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getACMTimeout(Registry obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
int ret = obj.getACMTimeout(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeInt(ret);
inS.endWriteParams();
return true;
}
private final static String[] _all =
{
"createAdminSession",
"createAdminSessionFromSecureConnection",
"createSession",
"createSessionFromSecureConnection",
"getACMTimeout",
"getSessionTimeout",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
public boolean _iceDispatch(IceInternal.Incoming in, Ice.Current current)
throws Ice.UserException
{
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 _iceD_createAdminSession(this, in, current);
}
case 1:
{
return _iceD_createAdminSessionFromSecureConnection(this, in, current);
}
case 2:
{
return _iceD_createSession(this, in, current);
}
case 3:
{
return _iceD_createSessionFromSecureConnection(this, in, current);
}
case 4:
{
return _iceD_getACMTimeout(this, in, current);
}
case 5:
{
return _iceD_getSessionTimeout(this, in, current);
}
case 6:
{
return _iceD_ice_id(this, in, current);
}
case 7:
{
return _iceD_ice_ids(this, in, current);
}
case 8:
{
return _iceD_ice_isA(this, in, current);
}
case 9:
{
return _iceD_ice_ping(this, in, current);
}
}
assert(false);
throw new Ice.OperationNotExistException(current.id, current.facet, current.operation);
}
protected void _iceWriteImpl(Ice.OutputStream ostr_)
{
ostr_.startSlice(ice_staticId(), -1, true);
ostr_.endSlice();
}
protected void _iceReadImpl(Ice.InputStream istr_)
{
istr_.startSlice();
istr_.endSlice();
}
public static final long serialVersionUID = 0L;
}