IceGrid._AdminSessionDisp 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 `Admin.ice'
//
// Warning: do not edit this file.
//
//
//
package IceGrid;
public abstract class _AdminSessionDisp extends Ice.ObjectImpl implements AdminSession
{
private static final String[] _ids =
{
"::Glacier2::Session",
"::Ice::Object",
"::IceGrid::AdminSession"
};
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[2];
}
public String ice_id(Ice.Current current)
{
return _ids[2];
}
public static String ice_staticId()
{
return _ids[2];
}
public final void destroy()
{
destroy(null);
}
public final void keepAlive()
{
keepAlive(null);
}
public final AdminPrx getAdmin()
{
return getAdmin(null);
}
public final Ice.ObjectPrx getAdminCallbackTemplate()
{
return getAdminCallbackTemplate(null);
}
public final void setObservers(RegistryObserverPrx registryObs, NodeObserverPrx nodeObs, ApplicationObserverPrx appObs, AdapterObserverPrx adptObs, ObjectObserverPrx objObs)
throws ObserverAlreadyRegisteredException
{
setObservers(registryObs, nodeObs, appObs, adptObs, objObs, null);
}
public final void setObserversByIdentity(Ice.Identity registryObs, Ice.Identity nodeObs, Ice.Identity appObs, Ice.Identity adptObs, Ice.Identity objObs)
throws ObserverAlreadyRegisteredException
{
setObserversByIdentity(registryObs, nodeObs, appObs, adptObs, objObs, null);
}
public final int startUpdate()
throws AccessDeniedException
{
return startUpdate(null);
}
public final void finishUpdate()
throws AccessDeniedException
{
finishUpdate(null);
}
public final String getReplicaName()
{
return getReplicaName(null);
}
public final FileIteratorPrx openServerLog(String id, String path, int count)
throws DeploymentException,
FileNotAvailableException,
NodeUnreachableException,
ServerNotExistException
{
return openServerLog(id, path, count, null);
}
public final FileIteratorPrx openServerStdErr(String id, int count)
throws DeploymentException,
FileNotAvailableException,
NodeUnreachableException,
ServerNotExistException
{
return openServerStdErr(id, count, null);
}
public final FileIteratorPrx openServerStdOut(String id, int count)
throws DeploymentException,
FileNotAvailableException,
NodeUnreachableException,
ServerNotExistException
{
return openServerStdOut(id, count, null);
}
public final FileIteratorPrx openNodeStdErr(String name, int count)
throws FileNotAvailableException,
NodeNotExistException,
NodeUnreachableException
{
return openNodeStdErr(name, count, null);
}
public final FileIteratorPrx openNodeStdOut(String name, int count)
throws FileNotAvailableException,
NodeNotExistException,
NodeUnreachableException
{
return openNodeStdOut(name, count, null);
}
public final FileIteratorPrx openRegistryStdErr(String name, int count)
throws FileNotAvailableException,
RegistryNotExistException,
RegistryUnreachableException
{
return openRegistryStdErr(name, count, null);
}
public final FileIteratorPrx openRegistryStdOut(String name, int count)
throws FileNotAvailableException,
RegistryNotExistException,
RegistryUnreachableException
{
return openRegistryStdOut(name, count, null);
}
public static boolean _iceD_keepAlive(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
obj.keepAlive(current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_getAdmin(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
AdminPrx ret = obj.getAdmin(current);
Ice.OutputStream ostr = inS.startWriteParams();
AdminPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getAdminCallbackTemplate(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
Ice.ObjectPrx ret = obj.getAdminCallbackTemplate(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeProxy(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_setObservers(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
Ice.InputStream istr = inS.startReadParams();
RegistryObserverPrx iceP_registryObs;
NodeObserverPrx iceP_nodeObs;
ApplicationObserverPrx iceP_appObs;
AdapterObserverPrx iceP_adptObs;
ObjectObserverPrx iceP_objObs;
iceP_registryObs = RegistryObserverPrxHelper.read(istr);
iceP_nodeObs = NodeObserverPrxHelper.read(istr);
iceP_appObs = ApplicationObserverPrxHelper.read(istr);
iceP_adptObs = AdapterObserverPrxHelper.read(istr);
iceP_objObs = ObjectObserverPrxHelper.read(istr);
inS.endReadParams();
obj.setObservers(iceP_registryObs, iceP_nodeObs, iceP_appObs, iceP_adptObs, iceP_objObs, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_setObserversByIdentity(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
Ice.InputStream istr = inS.startReadParams();
Ice.Identity iceP_registryObs = null;
Ice.Identity iceP_nodeObs = null;
Ice.Identity iceP_appObs = null;
Ice.Identity iceP_adptObs = null;
Ice.Identity iceP_objObs = null;
iceP_registryObs = Ice.Identity.ice_read(istr);
iceP_nodeObs = Ice.Identity.ice_read(istr);
iceP_appObs = Ice.Identity.ice_read(istr);
iceP_adptObs = Ice.Identity.ice_read(istr);
iceP_objObs = Ice.Identity.ice_read(istr);
inS.endReadParams();
obj.setObserversByIdentity(iceP_registryObs, iceP_nodeObs, iceP_appObs, iceP_adptObs, iceP_objObs, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_startUpdate(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
inS.readEmptyParams();
int ret = obj.startUpdate(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeInt(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_finishUpdate(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
inS.readEmptyParams();
obj.finishUpdate(current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_getReplicaName(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
String ret = obj.getReplicaName(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeString(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openServerLog(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_id;
String iceP_path;
int iceP_count;
iceP_id = istr.readString();
iceP_path = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openServerLog(iceP_id, iceP_path, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openServerStdErr(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_id;
int iceP_count;
iceP_id = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openServerStdErr(iceP_id, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openServerStdOut(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_id;
int iceP_count;
iceP_id = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openServerStdOut(iceP_id, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openNodeStdErr(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_name;
int iceP_count;
iceP_name = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openNodeStdErr(iceP_name, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openNodeStdOut(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_name;
int iceP_count;
iceP_name = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openNodeStdOut(iceP_name, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openRegistryStdErr(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_name;
int iceP_count;
iceP_name = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openRegistryStdErr(iceP_name, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_openRegistryStdOut(AdminSession obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_name;
int iceP_count;
iceP_name = istr.readString();
iceP_count = istr.readInt();
inS.endReadParams();
FileIteratorPrx ret = obj.openRegistryStdOut(iceP_name, iceP_count, current);
Ice.OutputStream ostr = inS.startWriteParams();
FileIteratorPrxHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
private final static String[] _all =
{
"destroy",
"finishUpdate",
"getAdmin",
"getAdminCallbackTemplate",
"getReplicaName",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping",
"keepAlive",
"openNodeStdErr",
"openNodeStdOut",
"openRegistryStdErr",
"openRegistryStdOut",
"openServerLog",
"openServerStdErr",
"openServerStdOut",
"setObservers",
"setObserversByIdentity",
"startUpdate"
};
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 Glacier2._SessionDisp._iceD_destroy(this, in, current);
}
case 1:
{
return _iceD_finishUpdate(this, in, current);
}
case 2:
{
return _iceD_getAdmin(this, in, current);
}
case 3:
{
return _iceD_getAdminCallbackTemplate(this, in, current);
}
case 4:
{
return _iceD_getReplicaName(this, in, current);
}
case 5:
{
return _iceD_ice_id(this, in, current);
}
case 6:
{
return _iceD_ice_ids(this, in, current);
}
case 7:
{
return _iceD_ice_isA(this, in, current);
}
case 8:
{
return _iceD_ice_ping(this, in, current);
}
case 9:
{
return _iceD_keepAlive(this, in, current);
}
case 10:
{
return _iceD_openNodeStdErr(this, in, current);
}
case 11:
{
return _iceD_openNodeStdOut(this, in, current);
}
case 12:
{
return _iceD_openRegistryStdErr(this, in, current);
}
case 13:
{
return _iceD_openRegistryStdOut(this, in, current);
}
case 14:
{
return _iceD_openServerLog(this, in, current);
}
case 15:
{
return _iceD_openServerStdErr(this, in, current);
}
case 16:
{
return _iceD_openServerStdOut(this, in, current);
}
case 17:
{
return _iceD_setObservers(this, in, current);
}
case 18:
{
return _iceD_setObserversByIdentity(this, in, current);
}
case 19:
{
return _iceD_startUpdate(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;
}