Package | Description |
---|---|
net.jini.core.lookup |
These are the lookup service interfaces and classes.
|
net.jini.lookup |
Standard utility classes for managing the join state of a service
and the service discovery duties of a client or service.
|
org.apache.river.example.browser |
A visualization tool for exploring Jini Network Technology
communities (djinns) with support for ServiceUI.
|
org.apache.river.reggie |
Provides implementations of
ServiceRegistrar . |
Modifier and Type | Method and Description |
---|---|
ServiceTemplate |
ServiceTemplate.clone()
Clone has been implemented to allow utilities such as
ServiceDiscoveryManager to avoid sharing
internally stored instances with client code. |
Modifier and Type | Method and Description |
---|---|
Class[] |
ServiceRegistrar.getEntryClasses(ServiceTemplate tmpl)
Looks at all service items that match the specified template, finds
every entry (among those service items) that either doesn't match any
entry templates or is a subclass of at least one matching entry
template, and returns the set of the (most specific) classes of those
entries.
|
Object[] |
ServiceRegistrar.getFieldValues(ServiceTemplate tmpl,
int setIndex,
String field)
Looks at all service items that match the specified template, finds
every entry (among those service items) that matches
tmpl.attributeSetTemplates[setIndex], and returns the set of values
of the specified field of those entries.
|
Class[] |
ServiceRegistrar.getServiceTypes(ServiceTemplate tmpl,
String prefix)
Looks at all service items that match the specified template, and for
every service item finds the most specific type (class or interface)
or types the service item is an instance of that are neither equal to,
nor a superclass of, any of the service types in the template and that
have names that start with the specified prefix, and returns the set
of all such types.
|
Object |
ServiceRegistrar.lookup(ServiceTemplate tmpl)
Returns the service object (i.e., just ServiceItem.service) from an
item matching the template, or null if there is no match.
|
ServiceMatches |
ServiceRegistrar.lookup(ServiceTemplate tmpl,
int maxMatches)
Returns at most maxMatches items matching the template, plus the total
number of items that match the template.
|
EventRegistration |
ServiceRegistrar.notify(ServiceTemplate tmpl,
int transitions,
RemoteEventListener listener,
MarshalledObject handback,
long leaseDuration)
Registers for event notification.
|
Modifier and Type | Field and Description |
---|---|
private ServiceTemplate |
ServiceDiscoveryManager.LookupCacheImpl.tmpl |
Modifier and Type | Method and Description |
---|---|
LookupCache |
ServiceDiscoveryManager.createLookupCache(ServiceTemplate tmpl,
ServiceItemFilter filter,
ServiceDiscoveryListener listener)
The
createLookupCache method allows the client-like entity
to request that the ServiceDiscoveryManager create a new
managed set (or cache) and populate it with services, which match
criteria defined by the entity, and whose references are registered with
one or more of the lookup services the entity has targeted for discovery. |
private ServiceDiscoveryManager.LookupCacheImpl |
ServiceDiscoveryManager.createLookupCache(ServiceTemplate tmpl,
ServiceItemFilter filter,
ServiceDiscoveryListener listener,
long leaseDuration)
Creates a LookupCache with specific lease duration.
|
ServiceItem[] |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
int minMatches,
int maxMatches,
ServiceItemFilter filter,
long waitDur)
Queries each available lookup service in the managed set for service(s)
that match the input criteria.
|
ServiceItem[] |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
int maxMatches,
ServiceItemFilter filter)
Queries each available lookup service in the managed set for service(s)
that match the input criteria.
|
ServiceItem |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
ServiceItemFilter filter)
Queries each available lookup service in the set of lookup services
managed by the
ServiceDiscoveryManager (the managed
set) for a service reference that matches criteria defined by the
entity that invokes this method. |
ServiceItem |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
ServiceItemFilter filter,
long waitDur)
Queries each available lookup service in the managed set for a service
that matches the input criteria.
|
private ServiceDiscoveryManager.EventReg |
ServiceDiscoveryManager.registerListener(ServiceRegistrar proxy,
ServiceTemplate tmpl,
RemoteEventListener listenerProxy,
long duration)
Registers for events from the lookup service associated with the given
proxy, and returns both the lease and the event sequence number from the
event registration wrapped in the locally-defined class,
EventReg . |
Constructor and Description |
---|
LookupCacheImpl(ServiceTemplate tmpl,
ServiceItemFilter filter,
ServiceDiscoveryListener sListener,
long leaseDuration,
ServiceDiscoveryManager sdm) |
Modifier and Type | Field and Description |
---|---|
private ServiceTemplate |
ServiceEditor.stmpl |
private ServiceTemplate |
Browser.tmpl |
Modifier and Type | Method and Description |
---|---|
Class[] |
RegistrarProxy.getEntryClasses(ServiceTemplate tmpl) |
Object[] |
RegistrarProxy.getFieldValues(ServiceTemplate tmpl,
int setIndex,
String field) |
Class[] |
RegistrarProxy.getServiceTypes(ServiceTemplate tmpl,
String prefix) |
Object |
RegistrarProxy.lookup(ServiceTemplate tmpl) |
ServiceMatches |
RegistrarProxy.lookup(ServiceTemplate tmpl,
int maxMatches) |
EventRegistration |
RegistrarProxy.notify(ServiceTemplate tmpl,
int transitions,
RemoteEventListener listener,
MarshalledObject handback,
long leaseDuration) |
Constructor and Description |
---|
Template(ServiceTemplate tmpl)
Converts a ServiceTemplate to a Template.
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.