netcom.mds
Class RemoveShareTask

java.lang.Object
  extended bynetcom.mds.AbstractShareTask
      extended bynetcom.mds.RemoveShareTask
All Implemented Interfaces:
java.lang.Runnable

public class RemoveShareTask
extends AbstractShareTask
implements java.lang.Runnable

Title: Remove Share Task

Description: This is a task which handles removing one share from some PSData object contained in this MDS node, then rebuilding a new BloomFilter, and sending out a BloomUpdate to all other MDS nodes

Copyright: Copyright (c) 2002

Company: NETCOM

See Also:
AbstractShareTask

Field Summary
 
Fields inherited from class netcom.mds.AbstractShareTask
ldap_comm, psdata, shares_mod_count
 
Constructor Summary
RemoveShareTask(RemoveShareRequest new_request, PSData psdata, java.util.Map psdatas, LDAPCommunicator ldap_comm, NodeEntry parent_node)
          Constructs a task to remove a share from a matching PSData in the Map of PSDatas
 
Method Summary
 void run()
          Method which begins execution of this task.
 
Methods inherited from class netcom.mds.AbstractShareTask
rebuildBloom, sendCompleteUpdate, sendUpdateToAll, updateBloom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveShareTask

public RemoveShareTask(RemoveShareRequest new_request,
                       PSData psdata,
                       java.util.Map psdatas,
                       LDAPCommunicator ldap_comm,
                       NodeEntry parent_node)
Constructs a task to remove a share from a matching PSData in the Map of PSDatas

Parameters:
new_request - the share which will be removed
psdata - the correct PSData which is being modified
psdatas - a Map of psdata which will be used to have the share removed and to rebuild the bloom filter (thread-safe copy)
ldap_comm - a reference to a LDAPCommunicator object to use for Bloom Updates
Method Detail

run

public void run()
Method which begins execution of this task. Removes a share from a PServer's PSData, ignoring the request if there is no share to remove. Then sends a bloom update to all other MDS Nodes

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class AbstractShareTask