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

IceBox.ServiceManagerPrxHelper Maven / Gradle / Ivy

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

package IceBox;

/**
 * Provides type-specific helper functions.
 **/
public final class ServiceManagerPrxHelper extends Ice.ObjectPrxHelperBase implements ServiceManagerPrx
{
    private static final String _getSliceChecksums_name = "getSliceChecksums";

    public java.util.Map getSliceChecksums()
    {
        return _iceI_getSliceChecksums(null, false);
    }

    public java.util.Map getSliceChecksums(java.util.Map context)
    {
        return _iceI_getSliceChecksums(context, true);
    }

    private java.util.Map _iceI_getSliceChecksums(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getSliceChecksums_name);
        return end_getSliceChecksums(_iceI_begin_getSliceChecksums(context, explicitCtx, true, null));
    }

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

    public Ice.AsyncResult begin_getSliceChecksums(java.util.Map context)
    {
        return _iceI_begin_getSliceChecksums(context, true, false, null);
    }

    public Ice.AsyncResult begin_getSliceChecksums(Ice.Callback cb)
    {
        return _iceI_begin_getSliceChecksums(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSliceChecksums(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getSliceChecksums(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getSliceChecksums(Callback_ServiceManager_getSliceChecksums cb)
    {
        return _iceI_begin_getSliceChecksums(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSliceChecksums(java.util.Map context, Callback_ServiceManager_getSliceChecksums cb)
    {
        return _iceI_begin_getSliceChecksums(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getSliceChecksums(IceInternal.Functional_GenericCallback1> responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getSliceChecksums(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getSliceChecksums(IceInternal.Functional_GenericCallback1> responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSliceChecksums(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getSliceChecksums(java.util.Map context,
                                                   IceInternal.Functional_GenericCallback1> responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getSliceChecksums(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getSliceChecksums(java.util.Map context,
                                                   IceInternal.Functional_GenericCallback1> responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSliceChecksums(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getSliceChecksums(java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.Functional_GenericCallback1> responseCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSliceChecksums(context,
                                             explicitCtx,
                                             synchronous,
                                             new IceInternal.Functional_TwowayCallbackArg1>(responseCb, exceptionCb, sentCb)
                                                 {
                                                     public final void _iceCompleted(Ice.AsyncResult result)
                                                     {
                                                         ServiceManagerPrxHelper._iceI_getSliceChecksums_completed(this, result);
                                                     }
                                                 });
    }

    private Ice.AsyncResult _iceI_begin_getSliceChecksums(java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getSliceChecksums_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getSliceChecksums_name, cb);
        try
        {
            result.prepare(_getSliceChecksums_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public java.util.Map end_getSliceChecksums(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getSliceChecksums_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            java.util.Map ret_;
            ret_ = Ice.SliceChecksumDictHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getSliceChecksums_completed(Ice.TwowayCallbackArg1> cb, Ice.AsyncResult result)
    {
        IceBox.ServiceManagerPrx _proxy = (IceBox.ServiceManagerPrx)result.getProxy();
        java.util.Map ret = null;
        try
        {
            ret = _proxy.end_getSliceChecksums(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _startService_name = "startService";

    public void startService(String service)
        throws AlreadyStartedException,
               NoSuchServiceException
    {
        _iceI_startService(service, null, false);
    }

    public void startService(String service, java.util.Map context)
        throws AlreadyStartedException,
               NoSuchServiceException
    {
        _iceI_startService(service, context, true);
    }

    private void _iceI_startService(String iceP_service, java.util.Map context, boolean explicitCtx)
        throws AlreadyStartedException,
               NoSuchServiceException
    {
        _checkTwowayOnly(_startService_name);
        end_startService(_iceI_begin_startService(iceP_service, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_startService(String service)
    {
        return _iceI_begin_startService(service, null, false, false, null);
    }

    public Ice.AsyncResult begin_startService(String service, java.util.Map context)
    {
        return _iceI_begin_startService(service, context, true, false, null);
    }

    public Ice.AsyncResult begin_startService(String service, Ice.Callback cb)
    {
        return _iceI_begin_startService(service, null, false, false, cb);
    }

    public Ice.AsyncResult begin_startService(String service, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_startService(service, context, true, false, cb);
    }

    public Ice.AsyncResult begin_startService(String service, Callback_ServiceManager_startService cb)
    {
        return _iceI_begin_startService(service, null, false, false, cb);
    }

    public Ice.AsyncResult begin_startService(String service, java.util.Map context, Callback_ServiceManager_startService cb)
    {
        return _iceI_begin_startService(service, context, true, false, cb);
    }

    public Ice.AsyncResult begin_startService(String service,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 userExceptionCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_startService(service, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_startService(String service,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 userExceptionCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb,
                                              IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_startService(service, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_startService(String service,
                                              java.util.Map context,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 userExceptionCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_startService(service, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_startService(String service,
                                              java.util.Map context,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 userExceptionCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb,
                                              IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_startService(service, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_startService(String iceP_service,
                                                     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_startService(iceP_service,
                                        context,
                                        explicitCtx,
                                        synchronous,
                                        new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                            {
                                                public final void _iceCompleted(Ice.AsyncResult result)
                                                {
                                                    ServiceManagerPrxHelper._iceI_startService_completed(this, result);
                                                }
                                            });
    }

    private Ice.AsyncResult _iceI_begin_startService(String iceP_service,
                                                     java.util.Map context,
                                                     boolean explicitCtx,
                                                     boolean synchronous,
                                                     IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_startService_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_startService_name, cb);
        try
        {
            result.prepare(_startService_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeString(iceP_service);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

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

    static public void _iceI_startService_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        IceBox.ServiceManagerPrx _proxy = (IceBox.ServiceManagerPrx)result.getProxy();
        try
        {
            _proxy.end_startService(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _stopService_name = "stopService";

    public void stopService(String service)
        throws AlreadyStoppedException,
               NoSuchServiceException
    {
        _iceI_stopService(service, null, false);
    }

    public void stopService(String service, java.util.Map context)
        throws AlreadyStoppedException,
               NoSuchServiceException
    {
        _iceI_stopService(service, context, true);
    }

    private void _iceI_stopService(String iceP_service, java.util.Map context, boolean explicitCtx)
        throws AlreadyStoppedException,
               NoSuchServiceException
    {
        _checkTwowayOnly(_stopService_name);
        end_stopService(_iceI_begin_stopService(iceP_service, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_stopService(String service)
    {
        return _iceI_begin_stopService(service, null, false, false, null);
    }

    public Ice.AsyncResult begin_stopService(String service, java.util.Map context)
    {
        return _iceI_begin_stopService(service, context, true, false, null);
    }

    public Ice.AsyncResult begin_stopService(String service, Ice.Callback cb)
    {
        return _iceI_begin_stopService(service, null, false, false, cb);
    }

    public Ice.AsyncResult begin_stopService(String service, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_stopService(service, context, true, false, cb);
    }

    public Ice.AsyncResult begin_stopService(String service, Callback_ServiceManager_stopService cb)
    {
        return _iceI_begin_stopService(service, null, false, false, cb);
    }

    public Ice.AsyncResult begin_stopService(String service, java.util.Map context, Callback_ServiceManager_stopService cb)
    {
        return _iceI_begin_stopService(service, context, true, false, cb);
    }

    public Ice.AsyncResult begin_stopService(String service,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_stopService(service, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_stopService(String service,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_stopService(service, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_stopService(String service,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_stopService(service, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_stopService(String service,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_stopService(service, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_stopService(String iceP_service,
                                                    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_stopService(iceP_service,
                                       context,
                                       explicitCtx,
                                       synchronous,
                                       new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                           {
                                               public final void _iceCompleted(Ice.AsyncResult result)
                                               {
                                                   ServiceManagerPrxHelper._iceI_stopService_completed(this, result);
                                               }
                                           });
    }

    private Ice.AsyncResult _iceI_begin_stopService(String iceP_service,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_stopService_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_stopService_name, cb);
        try
        {
            result.prepare(_stopService_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeString(iceP_service);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

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

    static public void _iceI_stopService_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        IceBox.ServiceManagerPrx _proxy = (IceBox.ServiceManagerPrx)result.getProxy();
        try
        {
            _proxy.end_stopService(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _addObserver_name = "addObserver";

    public void addObserver(ServiceObserverPrx observer)
    {
        _iceI_addObserver(observer, null, false);
    }

    public void addObserver(ServiceObserverPrx observer, java.util.Map context)
    {
        _iceI_addObserver(observer, context, true);
    }

    private void _iceI_addObserver(ServiceObserverPrx iceP_observer, java.util.Map context, boolean explicitCtx)
    {
        end_addObserver(_iceI_begin_addObserver(iceP_observer, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer)
    {
        return _iceI_begin_addObserver(observer, null, false, false, null);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer, java.util.Map context)
    {
        return _iceI_begin_addObserver(observer, context, true, false, null);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer, Ice.Callback cb)
    {
        return _iceI_begin_addObserver(observer, null, false, false, cb);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_addObserver(observer, context, true, false, cb);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer, Callback_ServiceManager_addObserver cb)
    {
        return _iceI_begin_addObserver(observer, null, false, false, cb);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer, java.util.Map context, Callback_ServiceManager_addObserver cb)
    {
        return _iceI_begin_addObserver(observer, context, true, false, cb);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_addObserver(observer, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_addObserver(observer, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_addObserver(observer, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_addObserver(ServiceObserverPrx observer,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_addObserver(observer, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_addObserver(ServiceObserverPrx iceP_observer,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_addObserver(iceP_observer,
                                       context,
                                       explicitCtx,
                                       synchronous,
                                       new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_addObserver(ServiceObserverPrx iceP_observer,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_addObserver_name, cb);
        try
        {
            result.prepare(_addObserver_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ServiceObserverPrxHelper.write(ostr, iceP_observer);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_addObserver(Ice.AsyncResult iresult)
    {
        _end(iresult, _addObserver_name);
    }

    private static final String _shutdown_name = "shutdown";

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

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

    private void _iceI_shutdown(java.util.Map context, boolean explicitCtx)
    {
        end_shutdown(_iceI_begin_shutdown(context, explicitCtx, true, null));
    }

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

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

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

    public Ice.AsyncResult begin_shutdown(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_shutdown(context, true, false, cb);
    }

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

    public Ice.AsyncResult begin_shutdown(java.util.Map context, Callback_ServiceManager_shutdown cb)
    {
        return _iceI_begin_shutdown(context, true, false, cb);
    }

    public Ice.AsyncResult begin_shutdown(IceInternal.Functional_VoidCallback responseCb,
                                          IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_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 _iceI_begin_shutdown(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map context,
                                          IceInternal.Functional_VoidCallback responseCb,
                                          IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_shutdown(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_shutdown(java.util.Map context,
                                          IceInternal.Functional_VoidCallback responseCb,
                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_shutdown(context, true, false, responseCb, exceptionCb, sentCb);
    }

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

    private Ice.AsyncResult _iceI_begin_shutdown(java.util.Map context,
                                                 boolean explicitCtx,
                                                 boolean synchronous,
                                                 IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_shutdown_name, cb);
        try
        {
            result.prepare(_shutdown_name, Ice.OperationMode.Normal, context, 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);
    }

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

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

    /**
     * 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(Ice.OutputStream ostr, ServiceManagerPrx v)
    {
        ostr.writeProxy(v);
    }

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy