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

IceGrid._SessionDisp 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.3
//
// 
//
// Generated from file `Session.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceGrid;

public abstract class _SessionDisp extends Ice.ObjectImpl implements Session
{
    private static final String[] _ids =
    {
        "::Glacier2::Session",
        "::Ice::Object",
        "::IceGrid::Session"
    };

    public boolean ice_isA(String s)
    {
        return java.util.Arrays.binarySearch(_ids, s) >= 0;
    }

    public boolean ice_isA(String s, Ice.Current current)
    {
        return java.util.Arrays.binarySearch(_ids, s) >= 0;
    }

    public String[] ice_ids()
    {
        return _ids;
    }

    public String[] ice_ids(Ice.Current current)
    {
        return _ids;
    }

    public String ice_id()
    {
        return _ids[2];
    }

    public String ice_id(Ice.Current current)
    {
        return _ids[2];
    }

    public static String ice_staticId()
    {
        return _ids[2];
    }

    public final void destroy()
    {
        destroy(null);
    }

    public final void keepAlive()
    {
        keepAlive(null);
    }

    public final void allocateObjectById_async(AMD_Session_allocateObjectById cb, Ice.Identity id)
        throws AllocationException,
               ObjectNotRegisteredException
    {
        allocateObjectById_async(cb, id, null);
    }

    public final void allocateObjectByType_async(AMD_Session_allocateObjectByType cb, String type)
        throws AllocationException
    {
        allocateObjectByType_async(cb, type, null);
    }

    public final void releaseObject(Ice.Identity id)
        throws AllocationException,
               ObjectNotRegisteredException
    {
        releaseObject(id, null);
    }

    public final void setAllocationTimeout(int timeout)
    {
        setAllocationTimeout(timeout, null);
    }

    public static boolean _iceD_keepAlive(Session obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
        inS.readEmptyParams();
        obj.keepAlive(current);
        inS.writeEmptyParams();
        return true;
    }

    public static boolean _iceD_allocateObjectById(Session obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        Ice.Identity iceP_id = null;
        iceP_id = Ice.Identity.ice_read(istr);
        inS.endReadParams();
        AMD_Session_allocateObjectById cb = new _AMD_Session_allocateObjectById(inS);
        obj.allocateObjectById_async(cb, iceP_id, current);
        return false;
    }

    public static boolean _iceD_allocateObjectByType(Session obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        String iceP_type;
        iceP_type = istr.readString();
        inS.endReadParams();
        AMD_Session_allocateObjectByType cb = new _AMD_Session_allocateObjectByType(inS);
        obj.allocateObjectByType_async(cb, iceP_type, current);
        return false;
    }

    public static boolean _iceD_releaseObject(Session obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        Ice.Identity iceP_id = null;
        iceP_id = Ice.Identity.ice_read(istr);
        inS.endReadParams();
        obj.releaseObject(iceP_id, current);
        inS.writeEmptyParams();
        return true;
    }

    public static boolean _iceD_setAllocationTimeout(Session obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        int iceP_timeout;
        iceP_timeout = istr.readInt();
        inS.endReadParams();
        obj.setAllocationTimeout(iceP_timeout, current);
        inS.writeEmptyParams();
        return true;
    }

    private final static String[] _all =
    {
        "allocateObjectById",
        "allocateObjectByType",
        "destroy",
        "ice_id",
        "ice_ids",
        "ice_isA",
        "ice_ping",
        "keepAlive",
        "releaseObject",
        "setAllocationTimeout"
    };

    public boolean _iceDispatch(IceInternal.Incoming in, Ice.Current current)
        throws Ice.UserException
    {
        int pos = java.util.Arrays.binarySearch(_all, current.operation);
        if(pos < 0)
        {
            throw new Ice.OperationNotExistException(current.id, current.facet, current.operation);
        }

        switch(pos)
        {
            case 0:
            {
                return _iceD_allocateObjectById(this, in, current);
            }
            case 1:
            {
                return _iceD_allocateObjectByType(this, in, current);
            }
            case 2:
            {
                return Glacier2._SessionDisp._iceD_destroy(this, in, current);
            }
            case 3:
            {
                return _iceD_ice_id(this, in, current);
            }
            case 4:
            {
                return _iceD_ice_ids(this, in, current);
            }
            case 5:
            {
                return _iceD_ice_isA(this, in, current);
            }
            case 6:
            {
                return _iceD_ice_ping(this, in, current);
            }
            case 7:
            {
                return _iceD_keepAlive(this, in, current);
            }
            case 8:
            {
                return _iceD_releaseObject(this, in, current);
            }
            case 9:
            {
                return _iceD_setAllocationTimeout(this, in, current);
            }
        }

        assert(false);
        throw new Ice.OperationNotExistException(current.id, current.facet, current.operation);
    }

    protected void _iceWriteImpl(Ice.OutputStream ostr_)
    {
        ostr_.startSlice(ice_staticId(), -1, true);
        ostr_.endSlice();
    }

    protected void _iceReadImpl(Ice.InputStream istr_)
    {
        istr_.startSlice();
        istr_.endSlice();
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy