|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.Joiner
public class Joiner
A utility that contains a JoinManager and provides general
utility to set up a service's attribute collection
This class does not provide methods to act on a service's
ServiceRegistration or duplicate capabilities found in the
JoinManager. Actions on a service's registration need to be
performed through the JoinManager contained in this class.
| Field Summary | |
|---|---|
protected ArrayList<Entry> |
attrList
|
protected JoinManager |
joinMgr
|
| Constructor Summary | |
|---|---|
Joiner()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Entry entry)
Add an attribute to the collection of attributes managed by this Joiner. |
void |
addAttributes(Entry[] entries)
Add an array of Entry attributes to the collection of attributes managed by this Joiner. |
void |
asyncJoin(Object proxy,
ServiceID sid,
Entry[] additionalAttrs,
DiscoveryManagement dMgr,
LeaseRenewalManager lrm)
Provides a fire and forget join mechanism passing in an instance of DiscoveryManagement and LeaseRenewalManagement |
void |
clearAttributes()
Clears the collection of Entry elements from the attribute
list |
Entry[] |
getAttributeCollectionEntries()
Get the current attribute collection. |
DiscoveryManagement |
getDiscoveryManager()
Get the DiscoveryManager for this Joiner
If the JoinManager is null, this method will rturn null |
JoinManager |
getJoinManager()
Get the JoinManager for this Joiner |
void |
modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Delegates call to the JoinManager if a JoinManager exists |
void |
removeAttribute(Entry entry)
Remove an attribute to the collection of attributes managed by this Joiner. |
void |
terminate()
Delegates a termination to the JoinManager contained by the
Joiner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JoinManager joinMgr
protected final ArrayList<Entry> attrList
| Constructor Detail |
|---|
public Joiner()
| Method Detail |
|---|
public JoinManager getJoinManager()
JoinManager for this Joiner
public void modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
attrSetTemplates - array of Entry used to identify which elements
to modify from the service's current set of attributesattrSets - array of Entry containing the actual modifications to
make in the matching sets found using the attrSetTemplates parameterJoinManager.modifyAttributes(net.jini.core.entry.Entry[], net.jini.core.entry.Entry[])public DiscoveryManagement getDiscoveryManager()
DiscoveryManager for this Joiner
If the JoinManager is null, this method will rturn null
public void addAttribute(Entry entry)
Joiner. This method does not perform attribute additions
on the JoinManager, rather it adds attributes to a collection contained
in the Joiner
entry - The attribute to addpublic void addAttributes(Entry[] entries)
Joiner. This method does not perform attribute
additions on the JoinManager, rather it adds attributes to a collection
contained in the Joiner
entries - An array of attributes to addpublic void removeAttribute(Entry entry)
Joiner. This method does not perform attribute removals
on the JoinManager, rather it adds attributes to a collection contained
in the Joiner
entry - attribute to removepublic Entry[] getAttributeCollectionEntries()
public void clearAttributes()
Entry elements from the attribute
list
public void terminate()
JoinManager contained by the
Joiner
public void asyncJoin(Object proxy,
ServiceID sid,
Entry[] additionalAttrs,
DiscoveryManagement dMgr,
LeaseRenewalManager lrm)
throws IOException
DiscoveryManagement and LeaseRenewalManagement
proxy - The service proxysid - The ServiceIDadditionalAttrs - Additional attributes to adddMgr - A DiscoveryManagement instancelrm - A LeaseRenewalManager
IOException - if an exception occurs creating the
JoinManagerJoinManager
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||