|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.jini.LookupManager
public class LookupManager
The LookupManager class can be used to interrogate a lookup service in order to obtain a proxy for a service. LookupManager is only a convenience class, which invokes the discovery protocol in order to obtain a proxy for the lookup service and then interrogate it opportunely. The Jgroup programmer can use different techniques to perform the lookup, as illustrated in the Jini specification.
In order to search for a group which has joined the Jini federation, a GroupEntry entry containing the group name must be included in the template.
Method Summary | |
---|---|
void |
discarded(net.jini.discovery.DiscoveryEvent ev)
|
void |
discovered(net.jini.discovery.DiscoveryEvent ev)
|
static java.lang.Object |
lookup(net.jini.lookup.entry.Name name)
Perform a lookup for the given Name . |
static java.lang.Object |
lookup(net.jini.core.lookup.ServiceTemplate template)
Perform a lookup in the lookup service, searching for the specified object with the specified attributes. |
static java.lang.Object |
lookup(net.jini.core.lookup.ServiceTemplate template,
int timeout)
Perform a lookup in the lookup service, searching for the specified object with the specified attributes. |
static java.lang.Object |
lookup(java.lang.String serviceName)
Perform a lookup in the lookup service, searching for the given service name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object lookup(net.jini.core.lookup.ServiceTemplate template) throws java.io.IOException
template
- template of the service to be searched
java.io.IOException
- an error occurred in doing lookuppublic static java.lang.Object lookup(net.jini.core.lookup.ServiceTemplate template, int timeout) throws java.io.IOException
template
- template of the service to be searchedtimeout
- maximum time allowed for the lookup operation
java.io.IOException
- an error occurred in doing lookuppublic static java.lang.Object lookup(java.lang.String serviceName) throws java.io.IOException
serviceName
- the service name to lookup
java.io.IOException
public static java.lang.Object lookup(net.jini.lookup.entry.Name name) throws java.io.IOException
Name
.
name
- attribute name to lookup
java.io.IOException
public void discovered(net.jini.discovery.DiscoveryEvent ev)
discovered
in interface net.jini.discovery.DiscoveryListener
public void discarded(net.jini.discovery.DiscoveryEvent ev)
discarded
in interface net.jini.discovery.DiscoveryListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |