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

Ice.RemoteLoggerPrxHelper 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

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;

/**
 * Provides type-specific helper functions.
 **/
public final class RemoteLoggerPrxHelper extends ObjectPrxHelperBase implements RemoteLoggerPrx
{
    private static final String _init_name = "init";

    public void init(String prefix, LogMessage[] logMessages)
    {
        _iceI_init(prefix, logMessages, null, false);
    }

    public void init(String prefix, LogMessage[] logMessages, java.util.Map context)
    {
        _iceI_init(prefix, logMessages, context, true);
    }

    private void _iceI_init(String iceP_prefix, LogMessage[] iceP_logMessages, java.util.Map context, boolean explicitCtx)
    {
        end_init(_iceI_begin_init(iceP_prefix, iceP_logMessages, context, explicitCtx, true, null));
    }

    public AsyncResult begin_init(String prefix, LogMessage[] logMessages)
    {
        return _iceI_begin_init(prefix, logMessages, null, false, false, null);
    }

    public AsyncResult begin_init(String prefix, LogMessage[] logMessages, java.util.Map context)
    {
        return _iceI_begin_init(prefix, logMessages, context, true, false, null);
    }

    public AsyncResult begin_init(String prefix, LogMessage[] logMessages, Callback cb)
    {
        return _iceI_begin_init(prefix, logMessages, null, false, false, cb);
    }

    public AsyncResult begin_init(String prefix, LogMessage[] logMessages, java.util.Map context, Callback cb)
    {
        return _iceI_begin_init(prefix, logMessages, context, true, false, cb);
    }

    public AsyncResult begin_init(String prefix, LogMessage[] logMessages, Callback_RemoteLogger_init cb)
    {
        return _iceI_begin_init(prefix, logMessages, null, false, false, cb);
    }

    public AsyncResult begin_init(String prefix, LogMessage[] logMessages, java.util.Map context, Callback_RemoteLogger_init cb)
    {
        return _iceI_begin_init(prefix, logMessages, context, true, false, cb);
    }

    public AsyncResult begin_init(String prefix,
                                  LogMessage[] logMessages,
                                  IceInternal.Functional_VoidCallback responseCb,
                                  IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_init(prefix, logMessages, null, false, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_init(String prefix,
                                  LogMessage[] logMessages,
                                  IceInternal.Functional_VoidCallback responseCb,
                                  IceInternal.Functional_GenericCallback1 exceptionCb,
                                  IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_init(prefix, logMessages, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_init(String prefix,
                                  LogMessage[] logMessages,
                                  java.util.Map context,
                                  IceInternal.Functional_VoidCallback responseCb,
                                  IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_init(prefix, logMessages, context, true, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_init(String prefix,
                                  LogMessage[] logMessages,
                                  java.util.Map context,
                                  IceInternal.Functional_VoidCallback responseCb,
                                  IceInternal.Functional_GenericCallback1 exceptionCb,
                                  IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_init(prefix, logMessages, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_init(String iceP_prefix,
                                         LogMessage[] iceP_logMessages,
                                         java.util.Map context,
                                         boolean explicitCtx,
                                         boolean synchronous,
                                         IceInternal.Functional_VoidCallback responseCb,
                                         IceInternal.Functional_GenericCallback1 exceptionCb,
                                         IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_init(iceP_prefix,
                                iceP_logMessages,
                                context,
                                explicitCtx,
                                synchronous,
                                new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private AsyncResult _iceI_begin_init(String iceP_prefix,
                                         LogMessage[] iceP_logMessages,
                                         java.util.Map context,
                                         boolean explicitCtx,
                                         boolean synchronous,
                                         IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_init_name, cb);
        try
        {
            result.prepare(_init_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeString(iceP_prefix);
            LogMessageSeqHelper.write(ostr, iceP_logMessages);
            result.endWriteParams();
            result.invoke();
        }
        catch(Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_init(AsyncResult iresult)
    {
        _end(iresult, _init_name);
    }

    private static final String _log_name = "log";

    public void log(LogMessage message)
    {
        _iceI_log(message, null, false);
    }

    public void log(LogMessage message, java.util.Map context)
    {
        _iceI_log(message, context, true);
    }

    private void _iceI_log(LogMessage iceP_message, java.util.Map context, boolean explicitCtx)
    {
        end_log(_iceI_begin_log(iceP_message, context, explicitCtx, true, null));
    }

    public AsyncResult begin_log(LogMessage message)
    {
        return _iceI_begin_log(message, null, false, false, null);
    }

    public AsyncResult begin_log(LogMessage message, java.util.Map context)
    {
        return _iceI_begin_log(message, context, true, false, null);
    }

    public AsyncResult begin_log(LogMessage message, Callback cb)
    {
        return _iceI_begin_log(message, null, false, false, cb);
    }

    public AsyncResult begin_log(LogMessage message, java.util.Map context, Callback cb)
    {
        return _iceI_begin_log(message, context, true, false, cb);
    }

    public AsyncResult begin_log(LogMessage message, Callback_RemoteLogger_log cb)
    {
        return _iceI_begin_log(message, null, false, false, cb);
    }

    public AsyncResult begin_log(LogMessage message, java.util.Map context, Callback_RemoteLogger_log cb)
    {
        return _iceI_begin_log(message, context, true, false, cb);
    }

    public AsyncResult begin_log(LogMessage message,
                                 IceInternal.Functional_VoidCallback responseCb,
                                 IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_log(message, null, false, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_log(LogMessage message,
                                 IceInternal.Functional_VoidCallback responseCb,
                                 IceInternal.Functional_GenericCallback1 exceptionCb,
                                 IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_log(message, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_log(LogMessage message,
                                 java.util.Map context,
                                 IceInternal.Functional_VoidCallback responseCb,
                                 IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_log(message, context, true, false, responseCb, exceptionCb, null);
    }

    public AsyncResult begin_log(LogMessage message,
                                 java.util.Map context,
                                 IceInternal.Functional_VoidCallback responseCb,
                                 IceInternal.Functional_GenericCallback1 exceptionCb,
                                 IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_log(message, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_log(LogMessage iceP_message,
                                        java.util.Map context,
                                        boolean explicitCtx,
                                        boolean synchronous,
                                        IceInternal.Functional_VoidCallback responseCb,
                                        IceInternal.Functional_GenericCallback1 exceptionCb,
                                        IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_log(iceP_message,
                               context,
                               explicitCtx,
                               synchronous,
                               new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private AsyncResult _iceI_begin_log(LogMessage iceP_message,
                                        java.util.Map context,
                                        boolean explicitCtx,
                                        boolean synchronous,
                                        IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_log_name, cb);
        try
        {
            result.prepare(_log_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            LogMessage.ice_write(ostr, iceP_message);
            result.endWriteParams();
            result.invoke();
        }
        catch(Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_log(AsyncResult iresult)
    {
        _end(iresult, _log_name);
    }

    /**
     * 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 RemoteLoggerPrx checkedCast(ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), RemoteLoggerPrx.class, RemoteLoggerPrxHelper.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 RemoteLoggerPrx checkedCast(ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), RemoteLoggerPrx.class, RemoteLoggerPrxHelper.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 RemoteLoggerPrx checkedCast(ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), RemoteLoggerPrx.class, RemoteLoggerPrxHelper.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 RemoteLoggerPrx checkedCast(ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), RemoteLoggerPrx.class, RemoteLoggerPrxHelper.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 RemoteLoggerPrx uncheckedCast(ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, RemoteLoggerPrx.class, RemoteLoggerPrxHelper.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 RemoteLoggerPrx uncheckedCast(ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, RemoteLoggerPrx.class, RemoteLoggerPrxHelper.class);
    }

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

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy