netcom.mds
Class PSData

java.lang.Object
  extended bynetcom.mds.PSData

public class PSData
extends java.lang.Object

Title: PSData

Description: This class represents all the data being held by one PServer on a MDS node

Copyright: Copyright (c) 2002

Company: NETCOM


Field Summary
 java.lang.String ps_name
          This is a String representing the name of the PServer
 
Constructor Summary
PSData(java.lang.String name)
          Constructor for PSData
 
Method Summary
 boolean addShare(AbstractShare share)
          Adds a share to the PSData inventory
 java.util.Collection contains(SearchRequest search)
          Method to search all shares for a PSData object according to a SearchRequest.
 boolean removeShare(AbstractShare share)
          Removes a share from the PSData inventory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ps_name

public final java.lang.String ps_name
This is a String representing the name of the PServer

Constructor Detail

PSData

public PSData(java.lang.String name)
Constructor for PSData

Parameters:
name - A String that represents the name of the PServer
Method Detail

addShare

public boolean addShare(AbstractShare share)
Adds a share to the PSData inventory

Parameters:
share - An AbstractShare to be added to the PSData inventory

removeShare

public boolean removeShare(AbstractShare share)
Removes a share from the PSData inventory

Parameters:
share - An AbstractShare to be removed from the PServer inventory

contains

public java.util.Collection contains(SearchRequest search)
Method to search all shares for a PSData object according to a SearchRequest. Returns a Collection of all shares found or an an empty Collection if none found. This method searches against matches in name_list_pairs. A share will also be returned as a match if any of the names under "file name" match the name of the share (share_name)

Parameters:
search - A SearchRequest conatining all search information to be searched in the inventory of the PSData