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

Ice.ProcessPrxHelper 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) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.4
//
// 
//
// Generated from file `Process.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * Provides type-specific helper functions.
 **/
public final class ProcessPrxHelper extends Ice.ObjectPrxHelperBase implements ProcessPrx
{
    private static final String __shutdown_name = "shutdown";

    public void shutdown()
    {
        shutdown(null, false);
    }

    public void shutdown(java.util.Map __ctx)
    {
        shutdown(__ctx, true);
    }

    private void shutdown(java.util.Map __ctx, boolean __explicitCtx)
    {
        end_shutdown(begin_shutdown(__ctx, __explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_shutdown()
    {
        return begin_shutdown(null, false, false, null);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map __ctx)
    {
        return begin_shutdown(__ctx, true, false, null);
    }

    public Ice.AsyncResult begin_shutdown(Ice.Callback __cb)
    {
        return begin_shutdown(null, false, false, __cb);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map __ctx, Ice.Callback __cb)
    {
        return begin_shutdown(__ctx, true, false, __cb);
    }

    public Ice.AsyncResult begin_shutdown(Callback_Process_shutdown __cb)
    {
        return begin_shutdown(null, false, false, __cb);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map __ctx, Callback_Process_shutdown __cb)
    {
        return begin_shutdown(__ctx, true, false, __cb);
    }

    public Ice.AsyncResult begin_shutdown(IceInternal.Functional_VoidCallback __responseCb, 
                                          IceInternal.Functional_GenericCallback1 __exceptionCb)
    {
        return begin_shutdown(null, false, false, __responseCb, __exceptionCb, null);
    }

    public Ice.AsyncResult begin_shutdown(IceInternal.Functional_VoidCallback __responseCb, 
                                          IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                          IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_shutdown(null, false, false, __responseCb, __exceptionCb, __sentCb);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map __ctx, 
                                          IceInternal.Functional_VoidCallback __responseCb, 
                                          IceInternal.Functional_GenericCallback1 __exceptionCb)
    {
        return begin_shutdown(__ctx, true, false, __responseCb, __exceptionCb, null);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map __ctx, 
                                          IceInternal.Functional_VoidCallback __responseCb, 
                                          IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                          IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_shutdown(__ctx, true, false, __responseCb, __exceptionCb, __sentCb);
    }

    private Ice.AsyncResult begin_shutdown(java.util.Map __ctx, 
                                           boolean __explicitCtx, 
                                           boolean __synchronous, 
                                           IceInternal.Functional_VoidCallback __responseCb, 
                                           IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                           IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_shutdown(__ctx, 
                              __explicitCtx, 
                              __synchronous, 
                              new IceInternal.Functional_OnewayCallback(__responseCb, __exceptionCb, __sentCb));
    }

    private Ice.AsyncResult begin_shutdown(java.util.Map __ctx, 
                                           boolean __explicitCtx, 
                                           boolean __synchronous, 
                                           IceInternal.CallbackBase __cb)
    {
        IceInternal.OutgoingAsync __result = getOutgoingAsync(__shutdown_name, __cb);
        try
        {
            __result.prepare(__shutdown_name, Ice.OperationMode.Normal, __ctx, __explicitCtx, __synchronous);
            __result.writeEmptyParams();
            __result.invoke();
        }
        catch(Ice.Exception __ex)
        {
            __result.abort(__ex);
        }
        return __result;
    }

    public void end_shutdown(Ice.AsyncResult __iresult)
    {
        __end(__iresult, __shutdown_name);
    }

    private static final String __writeMessage_name = "writeMessage";

    public void writeMessage(String message, int fd)
    {
        writeMessage(message, fd, null, false);
    }

    public void writeMessage(String message, int fd, java.util.Map __ctx)
    {
        writeMessage(message, fd, __ctx, true);
    }

    private void writeMessage(String message, int fd, java.util.Map __ctx, boolean __explicitCtx)
    {
        end_writeMessage(begin_writeMessage(message, fd, __ctx, __explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_writeMessage(String message, int fd)
    {
        return begin_writeMessage(message, fd, null, false, false, null);
    }

    public Ice.AsyncResult begin_writeMessage(String message, int fd, java.util.Map __ctx)
    {
        return begin_writeMessage(message, fd, __ctx, true, false, null);
    }

    public Ice.AsyncResult begin_writeMessage(String message, int fd, Ice.Callback __cb)
    {
        return begin_writeMessage(message, fd, null, false, false, __cb);
    }

    public Ice.AsyncResult begin_writeMessage(String message, int fd, java.util.Map __ctx, Ice.Callback __cb)
    {
        return begin_writeMessage(message, fd, __ctx, true, false, __cb);
    }

    public Ice.AsyncResult begin_writeMessage(String message, int fd, Callback_Process_writeMessage __cb)
    {
        return begin_writeMessage(message, fd, null, false, false, __cb);
    }

    public Ice.AsyncResult begin_writeMessage(String message, int fd, java.util.Map __ctx, Callback_Process_writeMessage __cb)
    {
        return begin_writeMessage(message, fd, __ctx, true, false, __cb);
    }

    public Ice.AsyncResult begin_writeMessage(String message, 
                                              int fd, 
                                              IceInternal.Functional_VoidCallback __responseCb, 
                                              IceInternal.Functional_GenericCallback1 __exceptionCb)
    {
        return begin_writeMessage(message, fd, null, false, false, __responseCb, __exceptionCb, null);
    }

    public Ice.AsyncResult begin_writeMessage(String message, 
                                              int fd, 
                                              IceInternal.Functional_VoidCallback __responseCb, 
                                              IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                              IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_writeMessage(message, fd, null, false, false, __responseCb, __exceptionCb, __sentCb);
    }

    public Ice.AsyncResult begin_writeMessage(String message, 
                                              int fd, 
                                              java.util.Map __ctx, 
                                              IceInternal.Functional_VoidCallback __responseCb, 
                                              IceInternal.Functional_GenericCallback1 __exceptionCb)
    {
        return begin_writeMessage(message, fd, __ctx, true, false, __responseCb, __exceptionCb, null);
    }

    public Ice.AsyncResult begin_writeMessage(String message, 
                                              int fd, 
                                              java.util.Map __ctx, 
                                              IceInternal.Functional_VoidCallback __responseCb, 
                                              IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                              IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_writeMessage(message, fd, __ctx, true, false, __responseCb, __exceptionCb, __sentCb);
    }

    private Ice.AsyncResult begin_writeMessage(String message, 
                                               int fd, 
                                               java.util.Map __ctx, 
                                               boolean __explicitCtx, 
                                               boolean __synchronous, 
                                               IceInternal.Functional_VoidCallback __responseCb, 
                                               IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                               IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_writeMessage(message, 
                                  fd, 
                                  __ctx, 
                                  __explicitCtx, 
                                  __synchronous, 
                                  new IceInternal.Functional_OnewayCallback(__responseCb, __exceptionCb, __sentCb));
    }

    private Ice.AsyncResult begin_writeMessage(String message, 
                                               int fd, 
                                               java.util.Map __ctx, 
                                               boolean __explicitCtx, 
                                               boolean __synchronous, 
                                               IceInternal.CallbackBase __cb)
    {
        IceInternal.OutgoingAsync __result = getOutgoingAsync(__writeMessage_name, __cb);
        try
        {
            __result.prepare(__writeMessage_name, Ice.OperationMode.Normal, __ctx, __explicitCtx, __synchronous);
            IceInternal.BasicStream __os = __result.startWriteParams(Ice.FormatType.DefaultFormat);
            __os.writeString(message);
            __os.writeInt(fd);
            __result.endWriteParams();
            __result.invoke();
        }
        catch(Ice.Exception __ex)
        {
            __result.abort(__ex);
        }
        return __result;
    }

    public void end_writeMessage(Ice.AsyncResult __iresult)
    {
        __end(__iresult, __writeMessage_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 ProcessPrx checkedCast(Ice.ObjectPrx __obj)
    {
        return checkedCastImpl(__obj, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.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 __ctx 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 ProcessPrx checkedCast(Ice.ObjectPrx __obj, java.util.Map __ctx)
    {
        return checkedCastImpl(__obj, __ctx, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.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 ProcessPrx checkedCast(Ice.ObjectPrx __obj, String __facet)
    {
        return checkedCastImpl(__obj, __facet, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.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 __ctx 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 ProcessPrx checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map __ctx)
    {
        return checkedCastImpl(__obj, __facet, __ctx, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.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 ProcessPrx uncheckedCast(Ice.ObjectPrx __obj)
    {
        return uncheckedCastImpl(__obj, ProcessPrx.class, ProcessPrxHelper.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 ProcessPrx uncheckedCast(Ice.ObjectPrx __obj, String __facet)
    {
        return uncheckedCastImpl(__obj, __facet, ProcessPrx.class, ProcessPrxHelper.class);
    }

    public static final String[] __ids =
    {
        "::Ice::Object",
        "::Ice::Process"
    };

    /**
     * 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(IceInternal.BasicStream __os, ProcessPrx v)
    {
        __os.writeProxy(v);
    }

    public static ProcessPrx __read(IceInternal.BasicStream __is)
    {
        Ice.ObjectPrx proxy = __is.readProxy();
        if(proxy != null)
        {
            ProcessPrxHelper result = new ProcessPrxHelper();
            result.__copyFrom(proxy);
            return result;
        }
        return null;
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy