Package | Description |
---|---|
net.jini.admin |
These interfaces provide common ways to export
particular administrative functionality.
|
net.jini.core.entry |
The
Entry interface and its associated
UnusableEntryException are used by the lookup service
to represent service-specific attributes and by the JavaSpace
interface to mark entries. |
net.jini.core.lookup |
These are the lookup service interfaces and classes.
|
net.jini.entry |
Provides classes that are useful when handling or implementing
entries.
|
net.jini.lookup |
Standard utility classes for managing the join state of a service
and the service discovery duties of a client or service.
|
net.jini.lookup.entry |
These are common entry classes for use as attributes in lookup services and
their associated JavaBeans(TM) component wrapping classes.
|
net.jini.space |
JavaSpaces servers provide a place on the network, a space,
for clients to store and exchange objects.
|
org.apache.river.lookup.entry |
Helper utility classes for managing entries used as lookup service attributes.
|
org.apache.river.outrigger |
This is an implementation of a JavaSpaces technology-enabled service.
|
Modifier and Type | Method and Description |
---|---|
Entry[] |
JoinAdmin.getLookupAttributes()
Get the current attribute sets for the service.
|
Modifier and Type | Method and Description |
---|---|
void |
JoinAdmin.addLookupAttributes(Entry[] attrSets)
Add attribute sets for the service.
|
void |
JoinAdmin.modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modify the current attribute sets, using the same semantics as
ServiceRegistration.modifyAttributes.
|
void |
JoinAdmin.modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modify the current attribute sets, using the same semantics as
ServiceRegistration.modifyAttributes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CloneableEntry
Required by service utilities to avoid sharing internal state.
|
Modifier and Type | Field and Description |
---|---|
Entry |
UnusableEntryException.partialEntry
The partial entry.
|
Modifier and Type | Method and Description |
---|---|
Entry |
CloneableEntry.clone()
Clone has been implemented in AbstractEntry to allow utilities such as
ServiceDiscoveryManager to avoid sharing
internally stored mutable Entry instances with client code. |
Constructor and Description |
---|
UnusableEntryException(Entry partial,
String[] badFields,
Throwable[] exceptions)
Create an exception for the given partial entry and vectors of
bad field names/nested exception pairs.
|
Modifier and Type | Field and Description |
---|---|
Entry[] |
ServiceItem.attributeSets
Attribute sets.
|
Entry[] |
ServiceTemplate.attributeSetTemplates
Attribute set templates to match, or null.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceRegistration.addAttributes(Entry[] attrSets)
Adds the specified attribute sets (those that aren't duplicates of
existing attribute sets) to the registered service item.
|
void |
ServiceRegistration.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modifies existing attribute sets.
|
void |
ServiceRegistration.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modifies existing attribute sets.
|
void |
ServiceRegistration.setAttributes(Entry[] attrSets)
Deletes all of the service item's existing attributes, and replaces
them with the specified attribute sets.
|
Constructor and Description |
---|
ServiceItem(ServiceID serviceID,
Object service,
Entry[] attrSets)
Simple constructor.
|
ServiceTemplate(ServiceID serviceID,
Class[] serviceTypes,
Entry[] attrSetTemplates)
Simple constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEntry
An abstract implementation of
Entry that provides useful
implementations of equals , hashCode , and
toString . |
Modifier and Type | Method and Description |
---|---|
Entry |
AbstractEntry.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 |
---|---|
static boolean |
AbstractEntry.equals(Entry e1,
Entry e2)
Returns
true if the two arguments are of the same
class and for each entry field F, the arguments'
values for F are either both null or the
invocation of equals on one argument's value for
F with the other argument's value for F as
its parameter returns true . |
static int |
AbstractEntry.hashCode(Entry entry)
Returns zero XORed with the result of invoking
hashCode on each of the argument's
non-null entry fields. |
static String |
AbstractEntry.toString(Entry entry)
Returns a
String representation of its argument
that will contain the name of the argument's class and a
representation of each of the argument's entry fields. |
Modifier and Type | Method and Description |
---|---|
Entry[] |
JoinManager.getAttributes()
Returns an array containing the set of attributes currently associated
with the service.
|
Modifier and Type | Method and Description |
---|---|
void |
JoinManager.addAttributes(Entry[] attrSets)
Associates a new set of attributes with the service, in addition to
the service's current set of attributes.
|
void |
JoinManager.addAttributes(Entry[] attrSets,
boolean checkSC)
Associates a new set of attributes with the service, in addition to
the service's current set of attributes.
|
void |
JoinManager.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Changes the service's current set of attributes using the same
semantics as the
modifyAttributes method of the
ServiceRegistration class. |
void |
JoinManager.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Changes the service's current set of attributes using the same
semantics as the
modifyAttributes method of the
ServiceRegistration class. |
void |
JoinManager.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets,
boolean checkSC)
Changes the service's current set of attributes using the same
semantics as the
modifyAttributes method of the
ServiceRegistration class. |
void |
JoinManager.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets,
boolean checkSC)
Changes the service's current set of attributes using the same
semantics as the
modifyAttributes method of the
ServiceRegistration class. |
void |
JoinManager.replaceRegistration(Object serviceProxy,
Entry[] attrSets)
Registers a new reference to the service with all current and future
discovered lookup services, applying semantics identical to the
one-argument form of this method, except with respect to the
registration of the given attribute sets.
|
void |
JoinManager.setAttributes(Entry[] attrSets)
Replaces the service's current set of attributes with a new set of
attributes.
|
Constructor and Description |
---|
JoinManager(Object serviceProxy,
Entry[] attrSets,
ServiceID serviceID,
DiscoveryManagement discoveryMgr,
LeaseRenewalManager leaseMgr)
Constructs an instance of this class that will register the
service with all discovered lookup services, using the supplied
ServiceID . |
JoinManager(Object serviceProxy,
Entry[] attrSets,
ServiceID serviceID,
DiscoveryManagement discoveryMgr,
LeaseRenewalManager leaseMgr,
Configuration config)
Constructs an instance of this class, configured using the items
retrieved through the given
Configuration , that will
register the service with all discovered lookup services, using the
supplied ServiceID . |
JoinManager(Object serviceProxy,
Entry[] attrSets,
ServiceIDListener callback,
DiscoveryManagement discoveryMgr,
LeaseRenewalManager leaseMgr)
Constructs an instance of this class that will register the given
service reference with all discovered lookup services and, through
an event sent to the given
ServiceIDListener object,
communicate the service ID assigned by the first lookup service
with which the service is registered. |
JoinManager(Object serviceProxy,
Entry[] attrSets,
ServiceIDListener callback,
DiscoveryManagement discoveryMgr,
LeaseRenewalManager leaseMgr,
Configuration config)
Constructs an instance of this class, configured using the items
retrieved through the given
Configuration object,
that will register the given service reference with all discovered
lookup services and, through an event sent to the given
ServiceIDListener object, communicate the service ID
assigned by the first lookup service with which the service is
registered. |
Modifier and Type | Class and Description |
---|---|
class |
Address
The address of the physical component of a service.
|
class |
Comment
A free-form comment about a service.
|
class |
Host |
class |
Location
The location of the physical component of a service.
|
class |
Name
The name of a service as used by users.
|
class |
ServiceInfo
Generic information about a service.
|
class |
ServiceType
Human-oriented information about the "type" of a service.
|
class |
Status
The base class from which other status-related entry classes may be
derived.
|
class |
UIDescriptor
Entry that enables a UI for a service to be associated
with the service in the attribute sets of the service item. |
Modifier and Type | Method and Description |
---|---|
Entry |
UIDescriptorBean.followLink()
Return the
UIDescriptor linked to by this JavaBeans component. |
Entry |
StatusBean.followLink()
Return the Entry linked to by this JavaBeans component.
|
Entry |
ServiceInfoBean.followLink()
Return the Entry linked to by this JavaBeans component.
|
Entry |
NameBean.followLink()
Return the Name linked to by this JavaBeans component.
|
Entry |
LocationBean.followLink()
Return the Entry linked to by this JavaBeans component.
|
Entry |
EntryBean.followLink()
Return the Entry linked to by this JavaBeans component.
|
Entry |
CommentBean.followLink()
Return the Entry linked to by this JavaBeans component.
|
Entry |
AddressBean.followLink()
Return the Entry linked to by this JavaBeans component.
|
Modifier and Type | Method and Description |
---|---|
static EntryBean |
EntryBeans.createBean(Entry ent)
Create a bean of the appropriate type for the given Entry
object, and link it to the object for immediate manipulation.
|
void |
UIDescriptorBean.makeLink(Entry e)
Make a link to a
UIDescriptor object. |
void |
StatusBean.makeLink(Entry e)
Make a link to an Entry object.
|
void |
ServiceInfoBean.makeLink(Entry e)
Make a link to an Entry object.
|
void |
NameBean.makeLink(Entry e)
Make a link to an Entry object.
|
void |
LocationBean.makeLink(Entry e)
Make a link to an Entry object.
|
void |
EntryBean.makeLink(Entry e)
Make a link to an Entry object.
|
void |
CommentBean.makeLink(Entry e)
Make a link to an Entry object.
|
void |
AddressBean.makeLink(Entry e)
Make a link to an Entry object.
|
Modifier and Type | Method and Description |
---|---|
abstract Entry |
AvailabilityEvent.getEntry()
Returns a copy of the
Entry whose transition
triggered this event. |
Entry |
MatchSet.getSnapshot()
|
abstract Entry |
AvailabilityEvent.getSnapshot()
Returns a snapshot of the
Entry whose
transition triggered this event. |
Entry |
MatchSet.next()
Removes one
Entry from the match set and
returns a copy to the caller. |
Entry |
JavaSpace.read(Entry tmpl,
Transaction txn,
long timeout)
Read any matching entry from the space, blocking until one exists.
|
Entry |
JavaSpace.readIfExists(Entry tmpl,
Transaction txn,
long timeout)
Read any matching entry from the space, returning
null if there is currently is none. |
Entry |
JavaSpace.snapshot(Entry e)
The process of serializing an entry for transmission to a JavaSpaces
service will be identical if the same entry is used twice.
|
Entry |
JavaSpace.take(Entry tmpl,
Transaction txn,
long timeout)
Take a matching entry from the space, waiting until one exists.
|
Entry |
JavaSpace.takeIfExists(Entry tmpl,
Transaction txn,
long timeout)
Take a matching entry from the space, returning
null if there is currently is none. |
Modifier and Type | Method and Description |
---|---|
EventRegistration |
JavaSpace.notify(Entry tmpl,
Transaction txn,
RemoteEventListener listener,
long lease,
MarshalledObject handback)
When entries are written that match this template notify the
given
listener with a RemoteEvent that
includes the handback object. |
Entry |
JavaSpace.read(Entry tmpl,
Transaction txn,
long timeout)
Read any matching entry from the space, blocking until one exists.
|
Entry |
JavaSpace.readIfExists(Entry tmpl,
Transaction txn,
long timeout)
Read any matching entry from the space, returning
null if there is currently is none. |
Entry |
JavaSpace.snapshot(Entry e)
The process of serializing an entry for transmission to a JavaSpaces
service will be identical if the same entry is used twice.
|
Entry |
JavaSpace.take(Entry tmpl,
Transaction txn,
long timeout)
Take a matching entry from the space, waiting until one exists.
|
Entry |
JavaSpace.takeIfExists(Entry tmpl,
Transaction txn,
long timeout)
Take a matching entry from the space, returning
null if there is currently is none. |
Lease |
JavaSpace.write(Entry entry,
Transaction txn,
long lease)
Write a new entry into the space.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicServiceType
An implementation of ServiceType that uses ResourceBundles.
|
Modifier and Type | Method and Description |
---|---|
static Entry[] |
LookupAttributes.add(Entry[] attrSets,
Entry[] addAttrSets)
Returns a new array containing the elements of the
addAttrSets parameter (that are not duplicates of
any of the elements already in the attrSets parameter)
added to the elements of attrSets . |
static Entry[] |
LookupAttributes.add(Entry[] attrSets,
Entry[] addAttrSets,
boolean checkSC)
Returns a new array containing the elements of the
addAttrSets parameter (that are not duplicates of
any of the elements already in the attrSets parameter)
added to the elements of attrSets . |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets,
boolean checkSC)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
Modifier and Type | Method and Description |
---|---|
static Entry[] |
LookupAttributes.add(Entry[] attrSets,
Entry[] addAttrSets)
Returns a new array containing the elements of the
addAttrSets parameter (that are not duplicates of
any of the elements already in the attrSets parameter)
added to the elements of attrSets . |
static Entry[] |
LookupAttributes.add(Entry[] attrSets,
Entry[] addAttrSets)
Returns a new array containing the elements of the
addAttrSets parameter (that are not duplicates of
any of the elements already in the attrSets parameter)
added to the elements of attrSets . |
static Entry[] |
LookupAttributes.add(Entry[] attrSets,
Entry[] addAttrSets,
boolean checkSC)
Returns a new array containing the elements of the
addAttrSets parameter (that are not duplicates of
any of the elements already in the attrSets parameter)
added to the elements of attrSets . |
static Entry[] |
LookupAttributes.add(Entry[] attrSets,
Entry[] addAttrSets,
boolean checkSC)
Returns a new array containing the elements of the
addAttrSets parameter (that are not duplicates of
any of the elements already in the attrSets parameter)
added to the elements of attrSets . |
static void |
LookupAttributes.check(Entry[] attrs,
boolean nullOK)
Throws an
IllegalArgumentException if any element of
the array is not an instance of a valid Entry class
(the class is not public, or does not have a no-arg constructor, or
has primitive public non-static non-final fields). |
static boolean |
LookupAttributes.equal(Entry[] attrSet1,
Entry[] attrSet2)
Tests that two
Entry[] arrays are the same. |
static boolean |
LookupAttributes.equal(Entry[] attrSet1,
Entry[] attrSet2)
Tests that two
Entry[] arrays are the same. |
static boolean |
LookupAttributes.equal(Entry e1,
Entry e2)
Test that two entries are the same type, with the same
public fields.
|
static boolean |
LookupAttributes.matches(Entry tmpl,
Entry e)
Test if the parameter
tmpl is the same class as, or a
superclass of, the parameter e , and that every
non-null public field of tmpl is the
same as the corresponding field of e . |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets,
boolean checkSC)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets,
boolean checkSC)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
static Entry[] |
LookupAttributes.modify(Entry[] attrSets,
Entry[] attrSetTmpls,
Entry[] modAttrSets,
boolean checkSC)
Returns a new array that contains copies of the attributes in the
attrSets parameter, modified according to the contents
of both the attrSetTmpls parameter and the
modAttrSets parameter. |
Modifier and Type | Method and Description |
---|---|
Entry[] |
OutriggerServerImpl.getLookupAttributes() |
Entry |
AdminIterator.next()
Deprecated.
Return the next entry in the sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
OutriggerServerImpl.addLookupAttributes(Entry[] attrSets) |
AdminIterator |
JavaSpaceAdmin.contents(Entry tmpl,
Transaction txn)
Deprecated.
Return an
AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
AdminIterator |
ConstrainableJavaSpaceAdmin.contents(Entry tmpl,
Transaction txn)
Deprecated.
Return an
AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
AdminIterator |
JavaSpaceAdmin.contents(Entry tmpl,
Transaction txn,
int fetchSize)
Deprecated.
Return an
AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
AdminIterator |
ConstrainableJavaSpaceAdmin.contents(Entry tmpl,
Transaction txn,
int fetchSize)
Deprecated.
Return an
AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
AdminIterator |
ConstrainableJavaSpaceAdmin.contents(Entry tmpl,
Transaction txn,
int fetchSize,
MethodConstraints constrains)
Deprecated.
Return an
AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
void |
OutriggerServerImpl.modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets) |
void |
OutriggerServerImpl.modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.