IceStorm._TopicDisp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icestorm-compat Show documentation
Show all versions of icestorm-compat Show documentation
Publish-subscribe event distribution service
// **********************************************************************
//
// Copyright (c) 2003-2018 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.7.1
//
//
//
// Generated from file `IceStorm.ice'
//
// Warning: do not edit this file.
//
//
//
package IceStorm;
public abstract class _TopicDisp extends Ice.ObjectImpl implements Topic
{
private static final String[] _ids =
{
"::Ice::Object",
"::IceStorm::Topic"
};
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[1];
}
public String ice_id(Ice.Current current)
{
return _ids[1];
}
public static String ice_staticId()
{
return _ids[1];
}
public final void destroy()
{
destroy(null);
}
public final LinkInfo[] getLinkInfoSeq()
{
return getLinkInfoSeq(null);
}
public final String getName()
{
return getName(null);
}
public final Ice.ObjectPrx getNonReplicatedPublisher()
{
return getNonReplicatedPublisher(null);
}
public final Ice.ObjectPrx getPublisher()
{
return getPublisher(null);
}
public final Ice.Identity[] getSubscribers()
{
return getSubscribers(null);
}
public final void link(TopicPrx linkTo, int cost)
throws LinkExists
{
link(linkTo, cost, null);
}
public final Ice.ObjectPrx subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber)
throws AlreadySubscribed,
BadQoS,
InvalidSubscriber
{
return subscribeAndGetPublisher(theQoS, subscriber, null);
}
public final void unlink(TopicPrx linkTo)
throws NoSuchLink
{
unlink(linkTo, null);
}
public final void unsubscribe(Ice.ObjectPrx subscriber)
{
unsubscribe(subscriber, null);
}
public static boolean _iceD_getName(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
String ret = obj.getName(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeString(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getPublisher(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
Ice.ObjectPrx ret = obj.getPublisher(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeProxy(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getNonReplicatedPublisher(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
Ice.ObjectPrx ret = obj.getNonReplicatedPublisher(current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeProxy(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_subscribeAndGetPublisher(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
java.util.Map iceP_theQoS;
Ice.ObjectPrx iceP_subscriber;
iceP_theQoS = QoSHelper.read(istr);
iceP_subscriber = istr.readProxy();
inS.endReadParams();
Ice.ObjectPrx ret = obj.subscribeAndGetPublisher(iceP_theQoS, iceP_subscriber, current);
Ice.OutputStream ostr = inS.startWriteParams();
ostr.writeProxy(ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_unsubscribe(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
Ice.InputStream istr = inS.startReadParams();
Ice.ObjectPrx iceP_subscriber;
iceP_subscriber = istr.readProxy();
inS.endReadParams();
obj.unsubscribe(iceP_subscriber, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_link(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
TopicPrx iceP_linkTo;
int iceP_cost;
iceP_linkTo = TopicPrxHelper.read(istr);
iceP_cost = istr.readInt();
inS.endReadParams();
obj.link(iceP_linkTo, iceP_cost, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_unlink(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
Ice.InputStream istr = inS.startReadParams();
TopicPrx iceP_linkTo;
iceP_linkTo = TopicPrxHelper.read(istr);
inS.endReadParams();
obj.unlink(iceP_linkTo, current);
inS.writeEmptyParams();
return true;
}
public static boolean _iceD_getLinkInfoSeq(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Idempotent, current.mode);
inS.readEmptyParams();
LinkInfo[] ret = obj.getLinkInfoSeq(current);
Ice.OutputStream ostr = inS.startWriteParams();
LinkInfoSeqHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_getSubscribers(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
inS.readEmptyParams();
Ice.Identity[] ret = obj.getSubscribers(current);
Ice.OutputStream ostr = inS.startWriteParams();
Ice.IdentitySeqHelper.write(ostr, ret);
inS.endWriteParams();
return true;
}
public static boolean _iceD_destroy(Topic obj, IceInternal.Incoming inS, Ice.Current current)
throws Ice.UserException
{
_iceCheckMode(Ice.OperationMode.Normal, current.mode);
inS.readEmptyParams();
obj.destroy(current);
inS.writeEmptyParams();
return true;
}
private final static String[] _all =
{
"destroy",
"getLinkInfoSeq",
"getName",
"getNonReplicatedPublisher",
"getPublisher",
"getSubscribers",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping",
"link",
"subscribeAndGetPublisher",
"unlink",
"unsubscribe"
};
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_destroy(this, in, current);
}
case 1:
{
return _iceD_getLinkInfoSeq(this, in, current);
}
case 2:
{
return _iceD_getName(this, in, current);
}
case 3:
{
return _iceD_getNonReplicatedPublisher(this, in, current);
}
case 4:
{
return _iceD_getPublisher(this, in, current);
}
case 5:
{
return _iceD_getSubscribers(this, in, current);
}
case 6:
{
return _iceD_ice_id(this, in, current);
}
case 7:
{
return _iceD_ice_ids(this, in, current);
}
case 8:
{
return _iceD_ice_isA(this, in, current);
}
case 9:
{
return _iceD_ice_ping(this, in, current);
}
case 10:
{
return _iceD_link(this, in, current);
}
case 11:
{
return _iceD_subscribeAndGetPublisher(this, in, current);
}
case 12:
{
return _iceD_unlink(this, in, current);
}
case 13:
{
return _iceD_unsubscribe(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;
}