Ice._LoggerAdminDisp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice-compat Show documentation
Show all versions of ice-compat Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
The newest version!
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.10
//
//
//
// Generated from file `RemoteLogger.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
public abstract class _LoggerAdminDisp extends Ice.ObjectImpl implements LoggerAdmin
{
private static final String[] _ids =
{
"::Ice::LoggerAdmin",
"::Ice::Object"
};
public boolean ice_isA(String s)
{
return java.util.Arrays.binarySearch(_ids, s) >= 0;
}
public boolean ice_isA(String s, Current current)
{
return java.util.Arrays.binarySearch(_ids, s) >= 0;
}
public String[] ice_ids()
{
return _ids;
}
public String[] ice_ids(Current current)
{
return _ids;
}
public String ice_id()
{
return _ids[0];
}
public String ice_id(Current current)
{
return _ids[0];
}
public static String ice_staticId()
{
return _ids[0];
}
public final void attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax)
throws RemoteLoggerAlreadyAttachedException
{
attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null);
}
public final boolean detachRemoteLogger(RemoteLoggerPrx prx)
{
return detachRemoteLogger(prx, null);
}
public final LogMessage[] getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Ice.StringHolder prefix)
{
return getLog(messageTypes, traceCategories, messageMax, prefix, null);
}
public static boolean _iceD_attachRemoteLogger(LoggerAdmin obj, IceInternal.Incoming inS, Current current)
throws UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
InputStream istr = inS.startReadParams();
RemoteLoggerPrx iceP_prx;
LogMessageType[] iceP_messageTypes;
String[] iceP_traceCategories;
int iceP_messageMax;
iceP_prx = RemoteLoggerPrxHelper.read(istr);
iceP_messageTypes = LogMessageTypeSeqHelper.read(istr);
iceP_traceCategories = StringSeqHelper.read(istr);
iceP_messageMax = istr.readInt();
inS.endReadParams();
obj.attachRemoteLogger(iceP_prx, iceP_messageTypes, iceP_traceCategories, iceP_messageMax, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_detachRemoteLogger(LoggerAdmin obj, IceInternal.Incoming inS, Current current)
throws UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
InputStream istr = inS.startReadParams();
RemoteLoggerPrx iceP_prx;
iceP_prx = RemoteLoggerPrxHelper.read(istr);
inS.endReadParams();
boolean ret = obj.detachRemoteLogger(iceP_prx, current);
OutputStream ostr = inS.startWriteParams();
ostr.writeBool(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getLog(LoggerAdmin obj, IceInternal.Incoming inS, Current current)
throws UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
InputStream istr = inS.startReadParams();
LogMessageType[] iceP_messageTypes;
String[] iceP_traceCategories;
int iceP_messageMax;
iceP_messageTypes = LogMessageTypeSeqHelper.read(istr);
iceP_traceCategories = StringSeqHelper.read(istr);
iceP_messageMax = istr.readInt();
inS.endReadParams();
Ice.StringHolder iceP_prefix = new Ice.StringHolder();
LogMessage[] ret = obj.getLog(iceP_messageTypes, iceP_traceCategories, iceP_messageMax, iceP_prefix, current);
OutputStream ostr = inS.startWriteParams();
ostr.writeString(iceP_prefix.value);
LogMessageSeqHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
private final static String[] _all =
{
"attachRemoteLogger",
"detachRemoteLogger",
"getLog",
"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 OperationNotExistException(current.id, current.facet, current.operation);
}
switch(pos)
{
case 0:
{
return _iceD_attachRemoteLogger(this, in, current);
}
case 1:
{
return _iceD_detachRemoteLogger(this, in, current);
}
case 2:
{
return _iceD_getLog(this, in, current);
}
case 3:
{
return _iceD_ice_id(this, in, current);
}
case 4:
{
return _iceD_ice_ids(this, in, current);
}
case 5:
{
return _iceD_ice_isA(this, in, current);
}
case 6:
{
return _iceD_ice_ping(this, in, current);
}
}
assert(false);
throw new OperationNotExistException(current.id, current.facet, current.operation);
}
protected void _iceWriteImpl(OutputStream ostr_)
{
ostr_.startSlice(ice_staticId(), -1, true);
ostr_.endSlice();
}
protected void _iceReadImpl(InputStream istr_)
{
istr_.startSlice();
istr_.endSlice();
}
public static final long serialVersionUID = 0L;
}