netcom.mds
Class AddShareTask

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

public class AddShareTask
extends AbstractShareTask
implements java.lang.Runnable

Title: Add Share Task

Description: This class performs the task of adding one share to the local MDS node. It is a Runnable class meant to be run by a ThreadPool. It is responsible for updating the internal database, updating the internal local bloom filter, and sending BloomUpdate packets to all other MDS nodes on the system

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
AddShareTask(AddShareRequest new_request, PSData psdata, LDAPCommunicator ldap_comm, NodeEntry parent_node)
          Constructor to make a task to Add a share to a supplied PSData
 
Method Summary
 void run()
          Override run() in AbstractShareTask, This is where this task begins execution uses object private variables (no parameters allowed (defined by Runnable)) This adds a share to the supplied PServer's PSData.
 
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

AddShareTask

public AddShareTask(AddShareRequest new_request,
                    PSData psdata,
                    LDAPCommunicator ldap_comm,
                    NodeEntry parent_node)
Constructor to make a task to Add a share to a supplied PSData

Parameters:
new_request - the share request containing new share information
psdata - the PSData object to add the share to (predetermined)
ldap_comm - a reference to a LDAP communicator to be used to do Bloom Updates
Method Detail

run

public void run()
Override run() in AbstractShareTask, This is where this task begins execution uses object private variables (no parameters allowed (defined by Runnable)) This adds a share to the supplied PServer's PSData. It then sends out a bloom update packet to all other MDS Nodes.

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