com.zeroc.IceLocatorDiscovery.Lookup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icelocatordiscovery Show documentation
Show all versions of icelocatordiscovery Show documentation
Ice plug-in that enables the discovery of IceGrid and custom locators via UDP multicast
The newest version!
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.10
//
//
//
// Generated from file `IceLocatorDiscovery.ice'
//
// Warning: do not edit this file.
//
//
//
package com.zeroc.IceLocatorDiscovery;
/**
* The Ice lookup interface is implemented by Ice locator
* implementations and can be used by clients to find available Ice
* locators on the network.
*
* Ice locator implementations provide a well-known `Ice/LocatorLookup'
* object accessible through UDP multicast. Clients typically make a
* multicast findLocator request to find the locator proxy.
*
* @see LookupReply
**/
public interface Lookup extends com.zeroc.Ice.Object
{
/**
* Find a locator proxy with the given instance name.
* @param instanceName Restrict the search to Ice registries
* configured with the given instance name. If empty, all the
* available registries will reply.
* @param reply The reply object to use to send the reply.
* @param current The Current object for the invocation.
**/
void findLocator(String instanceName, LookupReplyPrx reply, com.zeroc.Ice.Current current);
/** @hidden */
static final String[] _iceIds =
{
"::Ice::Object",
"::IceLocatorDiscovery::Lookup"
};
@Override
default String[] ice_ids(com.zeroc.Ice.Current current)
{
return _iceIds;
}
@Override
default String ice_id(com.zeroc.Ice.Current current)
{
return ice_staticId();
}
static String ice_staticId()
{
return "::IceLocatorDiscovery::Lookup";
}
/**
* @hidden
* @param obj -
* @param inS -
* @param current -
* @return -
**/
static java.util.concurrent.CompletionStage _iceD_findLocator(Lookup obj, final com.zeroc.IceInternal.Incoming inS, com.zeroc.Ice.Current current)
{
com.zeroc.Ice.Object._iceCheckMode(com.zeroc.Ice.OperationMode.Idempotent, current.mode);
com.zeroc.Ice.InputStream istr = inS.startReadParams();
String iceP_instanceName;
LookupReplyPrx iceP_reply;
iceP_instanceName = istr.readString();
iceP_reply = LookupReplyPrx.uncheckedCast(istr.readProxy());
inS.endReadParams();
obj.findLocator(iceP_instanceName, iceP_reply, current);
return inS.setResult(inS.writeEmptyParams());
}
/** @hidden */
final static String[] _iceOps =
{
"findLocator",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
/** @hidden */
@Override
default java.util.concurrent.CompletionStage _iceDispatch(com.zeroc.IceInternal.Incoming in, com.zeroc.Ice.Current current)
throws com.zeroc.Ice.UserException
{
int pos = java.util.Arrays.binarySearch(_iceOps, current.operation);
if(pos < 0)
{
throw new com.zeroc.Ice.OperationNotExistException(current.id, current.facet, current.operation);
}
switch(pos)
{
case 0:
{
return _iceD_findLocator(this, in, current);
}
case 1:
{
return com.zeroc.Ice.Object._iceD_ice_id(this, in, current);
}
case 2:
{
return com.zeroc.Ice.Object._iceD_ice_ids(this, in, current);
}
case 3:
{
return com.zeroc.Ice.Object._iceD_ice_isA(this, in, current);
}
case 4:
{
return com.zeroc.Ice.Object._iceD_ice_ping(this, in, current);
}
}
assert(false);
throw new com.zeroc.Ice.OperationNotExistException(current.id, current.facet, current.operation);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy