All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Ice.LoggerAdminPrxHelper Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.5
//
// 
//
// Generated from file `RemoteLogger.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * Provides type-specific helper functions.
 **/
public final class LoggerAdminPrxHelper extends ObjectPrxHelperBase implements LoggerAdminPrx
{
    private static final String _attachRemoteLogger_name = "attachRemoteLogger";

    public void attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax)
        throws RemoteLoggerAlreadyAttachedException
    {
        _iceI_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null, false);
    }

    public void attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context)
        throws RemoteLoggerAlreadyAttachedException
    {
        _iceI_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, true);
    }

    private void _iceI_attachRemoteLogger(RemoteLoggerPrx iceP_prx, LogMessageType[] iceP_messageTypes, String[] iceP_traceCategories, int iceP_messageMax, java.util.Map context, boolean explicitCtx)
        throws RemoteLoggerAlreadyAttachedException
    {
        _checkTwowayOnly(_attachRemoteLogger_name);
        end_attachRemoteLogger(_iceI_begin_attachRemoteLogger(iceP_prx, iceP_messageTypes, iceP_traceCategories, iceP_messageMax, context, explicitCtx, true, null));
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null, false, false, null);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, true, false, null);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Callback cb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null, false, false, cb);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context, Callback cb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, true, false, cb);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Callback_LoggerAdmin_attachRemoteLogger cb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null, false, false, cb);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context, Callback_LoggerAdmin_attachRemoteLogger cb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, true, false, cb);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx,
                                                LogMessageType[] messageTypes,
                                                String[] traceCategories,
                                                int messageMax,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx,
                                                LogMessageType[] messageTypes,
                                                String[] traceCategories,
                                                int messageMax,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx,
                                                LogMessageType[] messageTypes,
                                                String[] traceCategories,
                                                int messageMax,
                                                java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_attachRemoteLogger(RemoteLoggerPrx prx,
                                                LogMessageType[] messageTypes,
                                                String[] traceCategories,
                                                int messageMax,
                                                java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_attachRemoteLogger(RemoteLoggerPrx iceP_prx,
                                                       LogMessageType[] iceP_messageTypes,
                                                       String[] iceP_traceCategories,
                                                       int iceP_messageMax,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_VoidCallback responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_attachRemoteLogger(iceP_prx,
                                              iceP_messageTypes,
                                              iceP_traceCategories,
                                              iceP_messageMax,
                                              context,
                                              explicitCtx,
                                              synchronous,
                                              new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                  {
                                                      public final void _iceCompleted(AsyncResult result)
                                                      {
                                                          LoggerAdminPrxHelper._iceI_attachRemoteLogger_completed(this, result);
                                                      }
                                                  });
    }

    private AsyncResult _iceI_begin_attachRemoteLogger(RemoteLoggerPrx iceP_prx,
                                                       LogMessageType[] iceP_messageTypes,
                                                       String[] iceP_traceCategories,
                                                       int iceP_messageMax,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_attachRemoteLogger_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_attachRemoteLogger_name, cb);
        try
        {
            result.prepare(_attachRemoteLogger_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            RemoteLoggerPrxHelper.write(ostr, iceP_prx);
            LogMessageTypeSeqHelper.write(ostr, iceP_messageTypes);
            StringSeqHelper.write(ostr, iceP_traceCategories);
            ostr.writeInt(iceP_messageMax);
            result.endWriteParams();
            result.invoke();
        }
        catch(Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_attachRemoteLogger(AsyncResult iresult)
        throws RemoteLoggerAlreadyAttachedException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _attachRemoteLogger_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(RemoteLoggerAlreadyAttachedException ex_)
                {
                    throw ex_;
                }
                catch(UserException ex_)
                {
                    throw new UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_attachRemoteLogger_completed(TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        Ice.LoggerAdminPrx _proxy = (Ice.LoggerAdminPrx)result.getProxy();
        try
        {
            _proxy.end_attachRemoteLogger(result);
        }
        catch(UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _detachRemoteLogger_name = "detachRemoteLogger";

    public boolean detachRemoteLogger(RemoteLoggerPrx prx)
    {
        return _iceI_detachRemoteLogger(prx, null, false);
    }

    public boolean detachRemoteLogger(RemoteLoggerPrx prx, java.util.Map context)
    {
        return _iceI_detachRemoteLogger(prx, context, true);
    }

    private boolean _iceI_detachRemoteLogger(RemoteLoggerPrx iceP_prx, java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_detachRemoteLogger_name);
        return end_detachRemoteLogger(_iceI_begin_detachRemoteLogger(iceP_prx, context, explicitCtx, true, null));
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx)
    {
        return _iceI_begin_detachRemoteLogger(prx, null, false, false, null);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx, java.util.Map context)
    {
        return _iceI_begin_detachRemoteLogger(prx, context, true, false, null);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx, Callback cb)
    {
        return _iceI_begin_detachRemoteLogger(prx, null, false, false, cb);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx, java.util.Map context, Callback cb)
    {
        return _iceI_begin_detachRemoteLogger(prx, context, true, false, cb);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx, Callback_LoggerAdmin_detachRemoteLogger cb)
    {
        return _iceI_begin_detachRemoteLogger(prx, null, false, false, cb);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx, java.util.Map context, Callback_LoggerAdmin_detachRemoteLogger cb)
    {
        return _iceI_begin_detachRemoteLogger(prx, context, true, false, cb);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx,
                                                IceInternal.Functional_BoolCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_detachRemoteLogger(prx, null, false, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx,
                                                IceInternal.Functional_BoolCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_detachRemoteLogger(prx, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx,
                                                java.util.Map context,
                                                IceInternal.Functional_BoolCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_detachRemoteLogger(prx, context, true, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_detachRemoteLogger(RemoteLoggerPrx prx,
                                                java.util.Map context,
                                                IceInternal.Functional_BoolCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_detachRemoteLogger(prx, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_detachRemoteLogger(RemoteLoggerPrx iceP_prx,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_BoolCallback responseCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_detachRemoteLogger(iceP_prx,
                                              context,
                                              explicitCtx,
                                              synchronous,
                                              new IceInternal.Functional_TwowayCallbackBool(responseCb, exceptionCb, sentCb)
                                                  {
                                                      public final void _iceCompleted(AsyncResult result)
                                                      {
                                                          LoggerAdminPrxHelper._iceI_detachRemoteLogger_completed(this, result);
                                                      }
                                                  });
    }

    private AsyncResult _iceI_begin_detachRemoteLogger(RemoteLoggerPrx iceP_prx,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_detachRemoteLogger_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_detachRemoteLogger_name, cb);
        try
        {
            result.prepare(_detachRemoteLogger_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            RemoteLoggerPrxHelper.write(ostr, iceP_prx);
            result.endWriteParams();
            result.invoke();
        }
        catch(Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public boolean end_detachRemoteLogger(AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _detachRemoteLogger_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UserException ex_)
                {
                    throw new UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            InputStream istr_ = result_.startReadParams();
            boolean ret_;
            ret_ = istr_.readBool();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_detachRemoteLogger_completed(TwowayCallbackBool cb, Ice.AsyncResult result)
    {
        Ice.LoggerAdminPrx _proxy = (Ice.LoggerAdminPrx)result.getProxy();
        boolean ret = false;
        try
        {
            ret = _proxy.end_detachRemoteLogger(result);
        }
        catch(LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getLog_name = "getLog";

    public LogMessage[] getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Ice.StringHolder prefix)
    {
        return _iceI_getLog(messageTypes, traceCategories, messageMax, prefix, null, false);
    }

    public LogMessage[] getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Ice.StringHolder prefix, java.util.Map context)
    {
        return _iceI_getLog(messageTypes, traceCategories, messageMax, prefix, context, true);
    }

    private LogMessage[] _iceI_getLog(LogMessageType[] iceP_messageTypes, String[] iceP_traceCategories, int iceP_messageMax, Ice.StringHolder iceP_prefix, java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getLog_name);
        return end_getLog(iceP_prefix, _iceI_begin_getLog(iceP_messageTypes, iceP_traceCategories, iceP_messageMax, context, explicitCtx, true, null));
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, null, false, false, null);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, true, false, null);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Callback cb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, null, false, false, cb);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context, Callback cb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, true, false, cb);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Callback_LoggerAdmin_getLog cb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, null, false, false, cb);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, java.util.Map context, Callback_LoggerAdmin_getLog cb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, true, false, cb);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes,
                                    String[] traceCategories,
                                    int messageMax,
                                    FunctionalCallback_LoggerAdmin_getLog_Response responseCb,
                                    IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, null, false, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes,
                                    String[] traceCategories,
                                    int messageMax,
                                    FunctionalCallback_LoggerAdmin_getLog_Response responseCb,
                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes,
                                    String[] traceCategories,
                                    int messageMax,
                                    java.util.Map context,
                                    FunctionalCallback_LoggerAdmin_getLog_Response responseCb,
                                    IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, true, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_getLog(LogMessageType[] messageTypes,
                                    String[] traceCategories,
                                    int messageMax,
                                    java.util.Map context,
                                    FunctionalCallback_LoggerAdmin_getLog_Response responseCb,
                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_getLog(LogMessageType[] iceP_messageTypes,
                                           String[] iceP_traceCategories,
                                           int iceP_messageMax,
                                           java.util.Map context,
                                           boolean explicitCtx,
                                           boolean synchronous,
                                           FunctionalCallback_LoggerAdmin_getLog_Response responseCb,
                                           IceInternal.Functional_GenericCallback1 exceptionCb,
                                           IceInternal.Functional_BoolCallback sentCb)
    {
        class CB extends IceInternal.Functional_TwowayCallback implements Ice._Callback_LoggerAdmin_getLog
        {
            public CB(FunctionalCallback_LoggerAdmin_getLog_Response responseCb,
                      IceInternal.Functional_GenericCallback1 exceptionCb,
                      IceInternal.Functional_BoolCallback sentCb)
            {
                super(responseCb != null, exceptionCb, sentCb);
                _responseCb = responseCb;
            }

            public void response(LogMessage[] ret, String prefix)
            {
                if(_responseCb != null)
                {
                    _responseCb.apply(ret, prefix);
                }
            }

            public final void _iceCompleted(AsyncResult result)
            {
                LoggerAdminPrxHelper._iceI_getLog_completed(this, result);
            }

            private final FunctionalCallback_LoggerAdmin_getLog_Response _responseCb;
        }
        return _iceI_begin_getLog(iceP_messageTypes, iceP_traceCategories, iceP_messageMax, context, explicitCtx, synchronous, new CB(responseCb, exceptionCb, sentCb));
    }

    private AsyncResult _iceI_begin_getLog(LogMessageType[] iceP_messageTypes,
                                           String[] iceP_traceCategories,
                                           int iceP_messageMax,
                                           java.util.Map context,
                                           boolean explicitCtx,
                                           boolean synchronous,
                                           IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getLog_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getLog_name, cb);
        try
        {
            result.prepare(_getLog_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            LogMessageTypeSeqHelper.write(ostr, iceP_messageTypes);
            StringSeqHelper.write(ostr, iceP_traceCategories);
            ostr.writeInt(iceP_messageMax);
            result.endWriteParams();
            result.invoke();
        }
        catch(Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public LogMessage[] end_getLog(Ice.StringHolder prefix, AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getLog_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UserException ex_)
                {
                    throw new UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            InputStream istr_ = result_.startReadParams();
            prefix.value = istr_.readString();
            LogMessage[] ret_;
            ret_ = LogMessageSeqHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getLog_completed(_Callback_LoggerAdmin_getLog cb, Ice.AsyncResult result)
    {
        Ice.LoggerAdminPrx _proxy = (Ice.LoggerAdminPrx)result.getProxy();
        LogMessage[] ret = null;
        Ice.StringHolder iceP_prefix = new Ice.StringHolder();
        try
        {
            ret = _proxy.end_getLog(iceP_prefix, result);
        }
        catch(LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret, iceP_prefix.value);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LoggerAdminPrx checkedCast(ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), LoggerAdminPrx.class, LoggerAdminPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LoggerAdminPrx checkedCast(ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), LoggerAdminPrx.class, LoggerAdminPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LoggerAdminPrx checkedCast(ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), LoggerAdminPrx.class, LoggerAdminPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LoggerAdminPrx checkedCast(ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), LoggerAdminPrx.class, LoggerAdminPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @return A proxy for this type.
     **/
    public static LoggerAdminPrx uncheckedCast(ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, LoggerAdminPrx.class, LoggerAdminPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type.
     **/
    public static LoggerAdminPrx uncheckedCast(ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, LoggerAdminPrx.class, LoggerAdminPrxHelper.class);
    }

    private static final String[] _ids =
    {
        "::Ice::LoggerAdmin",
        "::Ice::Object"
    };

    /**
     * Provides the Slice type ID of this type.
     * @return The Slice type ID.
     **/
    public static String ice_staticId()
    {
        return _ids[0];
    }

    public static void write(OutputStream ostr, LoggerAdminPrx v)
    {
        ostr.writeProxy(v);
    }

    public static LoggerAdminPrx read(InputStream istr)
    {
        ObjectPrx proxy = istr.readProxy();
        if(proxy != null)
        {
            LoggerAdminPrxHelper result = new LoggerAdminPrxHelper();
            result._copyFrom(proxy);
            return result;
        }
        return null;
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy