IceGrid._RegistryObserverDisp 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 _RegistryObserverDisp extends Ice.ObjectImpl implements RegistryObserver
{
private static final String[] _ids =
{
"::Ice::Object",
"::IceGrid::RegistryObserver"
};
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 void registryInit(RegistryInfo[] registries)
{
registryInit(registries, null);
}
public final void registryUp(RegistryInfo node)
{
registryUp(node, null);
}
public final void registryDown(String name)
{
registryDown(name, null);
}
public static boolean _iceD_registryInit(RegistryObserver obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
RegistryInfo[] iceP_registries;
iceP_registries = RegistryInfoSeqHelper.read(istr);
inS.endReadParams();
obj.registryInit(iceP_registries, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_registryUp(RegistryObserver obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
RegistryInfo iceP_node = null;
iceP_node = RegistryInfo.ice_read(istr);
inS.endReadParams();
obj.registryUp(iceP_node, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_registryDown(RegistryObserver obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
String iceP_name;
iceP_name = istr.readString();
inS.endReadParams();
obj.registryDown(iceP_name, current);
inS.writeEmptyParams();
return true;
}
private final static String[] _all =
{
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping",
"registryDown",
"registryInit",
"registryUp"
};
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_ice_id(this, in, current);
}
case 1:
{
return _iceD_ice_ids(this, in, current);
}
case 2:
{
return _iceD_ice_isA(this, in, current);
}
case 3:
{
return _iceD_ice_ping(this, in, current);
}
case 4:
{
return _iceD_registryDown(this, in, current);
}
case 5:
{
return _iceD_registryInit(this, in, current);
}
case 6:
{
return _iceD_registryUp(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;
}