|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object netcom.mds.AbstractShareTask
Title: Abstract Share Task
Description: This represents an abstract Task which modifies shares. It holds common variables and crucial common-variables.
Copyright: Copyright (c) 2002
Company: NETCOM
AddShareTask
,
RemoveShareTask
Field Summary | |
protected LDAPCommunicator |
ldap_comm
reference to an ldap communicator object to use for communications with other nodes (BloomUpdates) |
protected PSData |
psdata
the correct PSData to be adding this share to |
protected static int |
shares_mod_count
count for how many times a share has been modified, might be used later to improve the bloom filter algorithm to more exact... |
Constructor Summary | |
AbstractShareTask(PSData psdata,
LDAPCommunicator ldap_comm)
Constructor for AbstractShareTask, only takes an LDAPCommunicator reference |
Method Summary | |
protected BloomUpdate |
rebuildBloom(java.util.Map all_psdatas)
Time-intensive method to rebuild a BloomFilter from scratch with all PSDatas on the MDS node. |
abstract void |
run()
This override run() in Runnable and requires implementing subclasses to define a run/execution method |
protected void |
sendCompleteUpdate()
Method to send a BloomUpdate which represents a complete BloomFilter to all nodes This complete bloom filter is sent after N many updates to compensate for the error of normal BloomUpdates |
protected void |
sendUpdateToAll(BloomUpdate update)
Method to send a BloomUpdate to all other MDS Nodes by contacting LDAP for a listing |
protected BloomUpdate |
updateBloom(AbstractShare new_share)
Method to update the local BloomFilter with the new added share. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static int shares_mod_count
protected final LDAPCommunicator ldap_comm
protected final PSData psdata
Constructor Detail |
public AbstractShareTask(PSData psdata, LDAPCommunicator ldap_comm)
psdata
- the correct psdata which will have its shares modifiedldap_comm
- a reference to an LDAP communicator used for sending BloomUpdatesMethod Detail |
public abstract void run()
run
in interface java.lang.Runnable
protected BloomUpdate rebuildBloom(java.util.Map all_psdatas)
all_psdatas
- the Map of all psdatasprotected BloomUpdate updateBloom(AbstractShare new_share)
new_share
- the abstract share which is to be added to this bloomfilterprotected void sendUpdateToAll(BloomUpdate update)
update
- the BloomUpdate object which is to be sent to allprotected void sendCompleteUpdate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |