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

Ice._LocatorRegistryDisp 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 `Locator.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

public abstract class _LocatorRegistryDisp extends Ice.ObjectImpl implements LocatorRegistry
{
    private static final String[] _ids =
    {
        "::Ice::LocatorRegistry",
        "::Ice::Object"
    };

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

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

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

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

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

    public String ice_id(Current current)
    {
        return _ids[0];
    }

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

    public final void setAdapterDirectProxy_async(AMD_LocatorRegistry_setAdapterDirectProxy cb, String id, Ice.ObjectPrx proxy)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException
    {
        setAdapterDirectProxy_async(cb, id, proxy, null);
    }

    public final void setReplicatedAdapterDirectProxy_async(AMD_LocatorRegistry_setReplicatedAdapterDirectProxy cb, String adapterId, String replicaGroupId, Ice.ObjectPrx p)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException,
               InvalidReplicaGroupIdException
    {
        setReplicatedAdapterDirectProxy_async(cb, adapterId, replicaGroupId, p, null);
    }

    public final void setServerProcessProxy_async(AMD_LocatorRegistry_setServerProcessProxy cb, String id, ProcessPrx proxy)
        throws ServerNotFoundException
    {
        setServerProcessProxy_async(cb, id, proxy, null);
    }

    public static boolean _iceD_setAdapterDirectProxy(LocatorRegistry obj, IceInternal.Incoming inS, Current current)
        throws UserException
    {
        _iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
        InputStream istr = inS.startReadParams();
        String iceP_id;
        Ice.ObjectPrx iceP_proxy;
        iceP_id = istr.readString();
        iceP_proxy = istr.readProxy();
        inS.endReadParams();
        AMD_LocatorRegistry_setAdapterDirectProxy cb = new _AMD_LocatorRegistry_setAdapterDirectProxy(inS);
        obj.setAdapterDirectProxy_async(cb, iceP_id, iceP_proxy, current);
        return false;
    }

    public static boolean _iceD_setReplicatedAdapterDirectProxy(LocatorRegistry obj, IceInternal.Incoming inS, Current current)
        throws UserException
    {
        _iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
        InputStream istr = inS.startReadParams();
        String iceP_adapterId;
        String iceP_replicaGroupId;
        Ice.ObjectPrx iceP_p;
        iceP_adapterId = istr.readString();
        iceP_replicaGroupId = istr.readString();
        iceP_p = istr.readProxy();
        inS.endReadParams();
        AMD_LocatorRegistry_setReplicatedAdapterDirectProxy cb = new _AMD_LocatorRegistry_setReplicatedAdapterDirectProxy(inS);
        obj.setReplicatedAdapterDirectProxy_async(cb, iceP_adapterId, iceP_replicaGroupId, iceP_p, current);
        return false;
    }

    public static boolean _iceD_setServerProcessProxy(LocatorRegistry obj, IceInternal.Incoming inS, Current current)
        throws UserException
    {
        _iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
        InputStream istr = inS.startReadParams();
        String iceP_id;
        ProcessPrx iceP_proxy;
        iceP_id = istr.readString();
        iceP_proxy = ProcessPrxHelper.read(istr);
        inS.endReadParams();
        AMD_LocatorRegistry_setServerProcessProxy cb = new _AMD_LocatorRegistry_setServerProcessProxy(inS);
        obj.setServerProcessProxy_async(cb, iceP_id, iceP_proxy, current);
        return false;
    }

    private final static String[] _all =
    {
        "ice_id",
        "ice_ids",
        "ice_isA",
        "ice_ping",
        "setAdapterDirectProxy",
        "setReplicatedAdapterDirectProxy",
        "setServerProcessProxy"
    };

    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 OperationNotExistException(current.id, current.facet, current.operation);
        }

        switch(pos)
        {
            case 0:
            {
                return _iceD_ice_id(this, in, current);
            }
            case 1:
            {
                return _iceD_ice_ids(this, in, current);
            }
            case 2:
            {
                return _iceD_ice_isA(this, in, current);
            }
            case 3:
            {
                return _iceD_ice_ping(this, in, current);
            }
            case 4:
            {
                return _iceD_setAdapterDirectProxy(this, in, current);
            }
            case 5:
            {
                return _iceD_setReplicatedAdapterDirectProxy(this, in, current);
            }
            case 6:
            {
                return _iceD_setServerProcessProxy(this, in, current);
            }
        }

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy