netcom.mds
Class AddShareTask
java.lang.Object
netcom.mds.AbstractShareTask
netcom.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 informationpsdata
- the PSData object to add the share to (predetermined)ldap_comm
- a reference to a LDAP communicator to be used to do Bloom Updates
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