|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.filevault.FvMountInfoMaster
Nested Class Summary | |
(package private) class |
FvMountInfoMaster.MountInfo
This class is package scope on purpose |
(package private) class |
FvMountInfoMaster.VaultSchedInfo
|
Field Summary | |
private Hashtable |
_folderKeys
folders indexed by folder object id. |
private com.objectspace.jgl.HashMap |
_folderMounts
Folder mounts keyed by Folder object id. |
private Vector |
_folders
|
private com.objectspace.jgl.HashMap |
_hostKeyedMounts
|
private Hashtable |
_hostKeys
hosts indexed by host object id. |
private Vector |
_hosts
|
(package private) Hashtable |
_locSched
|
private Hashtable |
_mounts
|
private ResourceBundle |
_rb
|
private Hashtable |
_remFolderKeys
|
private com.objectspace.jgl.HashMap |
_remoteFolderMounts
|
private com.objectspace.jgl.HashMap |
_remoteVaultKeyedMounts
|
(package private) Hashtable |
_remSched
|
private com.objectspace.jgl.HashMap |
_siteFolders
|
private com.objectspace.jgl.HashMap |
_siteHosts
|
private Hashtable |
_siteKeys
|
private com.objectspace.jgl.HashMap |
_siteMounts
|
private com.objectspace.jgl.HashMap |
_siteRemoteFolders
|
private com.objectspace.jgl.HashMap |
_siteRemoteVaults
|
private Vector |
_sites
|
private com.objectspace.jgl.HashMap |
_siteVaults
|
private com.objectspace.jgl.HashMap |
_vaultKeyedMounts
|
private Hashtable |
_vaultKeys
Vaults indexed by vault object id. |
private Vector |
_vaults
|
private Hashtable |
_vaultSched
|
private boolean |
DEBUG
|
private static String |
REPL_CLASS
|
private static String |
REPL_METHOD
|
private static String |
REV_CLASS
|
private static String |
REV_METHOD
|
Constructor Summary | |
private |
FvMountInfoMaster()
Private constructor |
Method Summary | |
void |
addFolder(String vaultName,
String folderName,
long capacity,
long threshold,
boolean readOnly,
boolean enabled,
int seqNum)
addFolder adds a folder to the system. |
void |
addNewMount(int hostIndex,
String folderName,
String path,
boolean isLocal,
boolean folderEnabled)
addNewMount Adds a new mount to the system. |
void |
addNewMount(String hostName,
String folderName,
String path,
boolean isLocal,
boolean folderEnabled)
addNewMount Adds a new mount to the system. |
private void |
addSiteMounts(Long siteID,
Enumeration vaultEnum)
|
void |
broadcastSiteConfig(Long siteKey)
|
void |
cleanFolder(Long folderKey)
|
void |
cleanVault(int vaultIndex)
Cleans the file vault. |
void |
cleanVault(Long vaultKey)
Cleans the file vault. |
void |
createVault(String vaultName,
boolean readOnly,
boolean remote,
Site theSite,
boolean designatedForCache)
createVault Creates a new empty vault in the fileVault system. |
void |
deleteFolder(Long folderKey)
|
void |
deleteHost(Long hostKey)
Deletes a host given the host object iD. |
private void |
deleteHostHelper(FvHost theHost)
deleteHostHelper Actually performs the delete. |
void |
deleteVault(Long vaultKey)
Deletes a vault given its vault key |
private Enumeration |
fetchMounts()
We are using the Site object as the access control key. |
private void |
fetchSchedItems(String targClass,
String targMethod)
|
Choice |
FillFolderChoice(Choice theBox,
Site currSite,
String currSelection,
boolean local)
Fills a java.awt.Choice box with the folders in selected site and pre-selects a folder item. |
Choice |
FillHostChoice(Choice theBox,
Site currSite,
String currSelection)
Fills a host choice box with the hosts in the selected site, and selects an item at load time. |
Choice |
FillSiteChoice(Choice theBox)
There are several places where a choice of available sites is needed. |
Choice |
FillSiteChoice(Choice theBox,
String selectedItem)
|
Choice |
FillVaultChoice(Choice theBox)
There are several places where a combo box of available vaults is needed. |
Choice |
FillVaultChoice(Choice theBox,
Site theSite,
String selectedItem,
boolean local)
|
Choice |
FillVaultChoice(Choice theBox,
String selectedItem)
|
boolean |
folderHasMounts(Long folderKey)
Determines whether a folder has any mounts attached. |
FileFolder |
getFolder(Long folderKey)
Gets a folder given its object ID. |
FileFolder |
getFolder(String folderName)
Return a folder given its name |
FvAdminFolderInfo |
getFolderInfo(Long key)
Gets an FvAdminFOlderInfo object. |
Enumeration |
getFolderMounts(Long folderKey)
|
Enumeration |
getFolders()
Deprecated. |
Vector |
getFolders(Vault theVault)
Gets a vector of Folders given a vault. |
Site |
getFolderSite(FileFolder theFolder)
Return site of a folder |
Site |
getFolderSite(Long folderKey)
Return site of a folder given its key. |
Site |
getFolderSite(String folderName)
Return site of selected folder |
FvHost |
getHost(int index)
|
FvHost |
getHost(Long objID)
Returns a host given its objectID Returns an FvHost object on success, returns null if the host is not found. |
FvHost |
getHost(String hostName)
Return a host given its name |
Enumeration |
getHostMounts(Long key)
Returns an enumeration containing all the mounts for a host given the objectID of the vault. |
Enumeration |
getHosts()
Deprecated. |
Site |
getHostSite(FvHost host)
Return site of a host |
Site |
getHostSite(Long hostKey)
Return site of a host |
Site |
getHostSite(String hostName)
Return site of selected host |
private ScheduleItem |
getLatestScheduleItem(Vault theVault)
Get the latest schedule item for a particular vault. |
Enumeration |
getLocalFolderMounts(Long folderKey)
Returns the mounts of a given folder object. |
FvMount |
getMount(String mountID)
|
int |
getNumberOfSites()
Return the number of existing sites |
private Long |
getObjectId(WTObject obj)
|
private ResourceBundle |
getRB()
|
Enumeration |
getRemoteFolderMounts(Long folderKey)
Returns the mounts of a given RemoteFolder object. |
Enumeration |
getRemoteFolders(Long key)
|
Enumeration |
getRemoteVaultMounts(Long vaultKey)
Get all the mounts for a remote vault |
Site |
getSite(int index)
Returns a site given its index. |
Site |
getSite(Long objID)
Returns a site given its objectID Returns an Site object on success, returns null if the host is not found. |
Site |
getSite(String siteName)
Return a site given its name |
Enumeration |
getSiteFolders(Long siteKey)
Get all the hosts for a site |
Enumeration |
getSiteHosts(Long siteKey)
Get all the hosts for a site |
Enumeration |
getSiteHosts(Site theSite)
|
Enumeration |
getSiteMounts(Long siteKey)
Get all the mounts for a site |
Enumeration |
getSiteRemoteFolders(Long siteKey)
|
Enumeration |
getSiteRemoteVaults(Long siteKey)
Get all the remote vaults for a site |
Enumeration |
getSiteRemoteVaults(Site theSite)
|
Enumeration |
getSites()
Returns an enumeration containing all the sites in the system |
Enumeration |
getSiteVaults(Long siteKey)
Get all the vaults for a site |
Enumeration |
getSiteVaults(Site theSite)
|
Vault |
getVault(Long vaultKey)
Get a vault given its vault Key |
Vault |
getVault(String vaultName)
Get a vault given its name |
Enumeration |
getVaultMounts(Long vaultKey)
Get all the mounts for a vault. |
Enumeration |
getVaults()
Get an enumeration of the current set of vaults. |
FvMountInfoMaster.VaultSchedInfo |
getVaultSchedInfo(Long key)
|
FvMountInfoMaster.VaultSchedInfo |
getVaultSchedInfo(Vault theVault)
|
Site |
getVaultSite(Long vaultID)
|
Site |
getVaultSite(Vault vault)
|
boolean |
hostHasMounts(Long key)
|
private void |
init()
Initialize the collections. |
private void |
initFolders(Site theSite)
|
private void |
initHosts(Site theSite)
Helper function that initializes the _hosts vector |
private void |
initialize()
|
private void |
initMountInfo()
Helper method that initializes the MountInfo Structure |
private void |
initRemoteFolders(Site theSite)
|
private void |
initRemoteVaults(Site theSite)
Helper method to initialize the collection of remote vaults. |
private void |
initSiteMounts(Site theSite)
|
private void |
initSites()
|
private void |
initVaults(Site theSite)
Helper method to initialize the collection of vaults. |
FileFolder |
moveFolderToNewVault(String vaultName,
FileFolder theFolder)
Move folder to new vault. |
FileFolder |
moveFolderToNewVault(Vault theVault,
FileFolder theFolder)
Move folder to new vault. |
static FvMountInfoMaster |
newFvMountInfoMaster()
Create a new object and return it to the caller. |
private boolean |
remoteFolderHasMounts(Long folderKey)
Deprecated. |
void |
removeMount(String mountID)
Remove a mount from the system. |
void |
reset()
reset Clears all the elements of this class. |
void |
resetReplication(ReplicaVault theVault)
Reset the content replication rules for a ReplicaVault At the moment this is a placeholder. |
void |
resetReplication(Site theSite)
Reset the replication statuses of the entire site. |
void |
resetUndelivered(ReplicaVault theVault)
|
void |
resetUndelivered(Site theSite)
Reset repliation for an entire site. |
void |
toggleEnableFvFolder(Long folderKey)
|
void |
toggleEnableRemoteFolder(Long folderKey)
|
void |
toggleEnableVault(Long key)
|
FileFolder |
updateFolder(FvAdminFolderInfo info)
Updates the attributes of an FvFolderObject. |
private void |
updateFolderSeqNumbers(Vault vault)
|
void |
updateMount(FvMount mount,
String hostName,
String folderName,
String path,
boolean isLocal)
Updates the attributes of a mount. |
void |
updateVaultAttrs(Vault theVault,
String newName,
boolean newReadOnly,
boolean newDesignatedForCache)
Updates the vault attributes Thiis method obdates the attributes of a given vault. |
void |
updateVaultFolderSeq(Vault origVault,
String vaultName,
boolean readOnly,
Vector folderSeq)
This function updates a file vault. |
void |
validateFolderMounts(Long key)
|
void |
validateHostMounts(Long key)
|
void |
validateMount(String key)
|
void |
validateVaultMounts(Long key)
Validates vault mounts |
boolean |
vaultHasFolders(Long vaultKey)
Checks to see if a vault has any folders |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ResourceBundle _rb
private final boolean DEBUG
private Vector _vaults
private Vector _folders
private Vector _hosts
private Hashtable _vaultKeys
private Hashtable _folderKeys
private Hashtable _hostKeys
private com.objectspace.jgl.HashMap _folderMounts
private com.objectspace.jgl.HashMap _remoteFolderMounts
private com.objectspace.jgl.HashMap _vaultKeyedMounts
private com.objectspace.jgl.HashMap _remoteVaultKeyedMounts
private com.objectspace.jgl.HashMap _hostKeyedMounts
private Hashtable _mounts
private Vector _sites
private Hashtable _siteKeys
private com.objectspace.jgl.HashMap _siteVaults
private com.objectspace.jgl.HashMap _siteRemoteVaults
private com.objectspace.jgl.HashMap _siteHosts
private com.objectspace.jgl.HashMap _siteFolders
private com.objectspace.jgl.HashMap _siteMounts
private Hashtable _vaultSched
Hashtable _remSched
Hashtable _locSched
private static final String REV_CLASS
private static final String REV_METHOD
private static final String REPL_CLASS
private static final String REPL_METHOD
private Hashtable _remFolderKeys
private com.objectspace.jgl.HashMap _siteRemoteFolders
Constructor Detail |
private FvMountInfoMaster()
Method Detail |
private ResourceBundle getRB()
public static FvMountInfoMaster newFvMountInfoMaster()
private void initialize()
public Enumeration getSites()
public void broadcastSiteConfig(Long siteKey) throws WTException
WTException
public Site getSite(String siteName)
public int getNumberOfSites()
public Enumeration getSiteHosts(Long siteKey)
public Enumeration getSiteHosts(Site theSite)
public Enumeration getSiteFolders(Long siteKey)
public Enumeration getSiteVaults(Long siteKey)
public Enumeration getSiteVaults(Site theSite)
public Enumeration getSiteRemoteVaults(Long siteKey)
public Enumeration getSiteRemoteVaults(Site theSite)
public Enumeration getSiteRemoteFolders(Long siteKey)
public Enumeration getSiteMounts(Long siteKey)
public FvMountInfoMaster.VaultSchedInfo getVaultSchedInfo(Vault theVault)
public FvMountInfoMaster.VaultSchedInfo getVaultSchedInfo(Long key)
public Site getVaultSite(Vault vault)
public Site getVaultSite(Long vaultID)
public Site getFolderSite(FileFolder theFolder)
public Site getFolderSite(Long folderKey)
public Site getFolderSite(String folderName)
public Site getHostSite(Long hostKey)
public Site getHostSite(FvHost host)
public Site getHostSite(String hostName)
public Site getSite(Long objID)
public Site getSite(int index)
public Enumeration getHosts()
public Enumeration getHostMounts(Long key)
public FvHost getHost(int index)
public FvHost getHost(Long objID)
public FvHost getHost(String hostName)
public boolean hostHasMounts(Long key) throws ObjectNoLongerExistsException, WTException
ObjectNoLongerExistsException
WTException
public void deleteHost(Long hostKey) throws WTException
WTException
private void deleteHostHelper(FvHost theHost) throws WTException
WTException
public FvAdminFolderInfo getFolderInfo(Long key)
public void cleanFolder(Long folderKey) throws WTException
WTException
public void deleteFolder(Long folderKey) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void updateFolderSeqNumbers(Vault vault) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public boolean folderHasMounts(Long folderKey)
private boolean remoteFolderHasMounts(Long folderKey)
public Enumeration getFolderMounts(Long folderKey)
public Enumeration getLocalFolderMounts(Long folderKey)
public Enumeration getRemoteFolderMounts(Long folderKey)
public FileFolder getFolder(Long folderKey)
public void toggleEnableFvFolder(Long folderKey) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void toggleEnableVault(Long key) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public void toggleEnableRemoteFolder(Long folderKey) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public FileFolder getFolder(String folderName)
public Enumeration getVaultMounts(Long vaultKey)
public Enumeration getRemoteVaultMounts(Long vaultKey)
public Vault getVault(Long vaultKey)
public Vault getVault(String vaultName)
public Enumeration getVaults()
public Vector getFolders(Vault theVault) throws WTException
WTException
public Choice FillSiteChoice(Choice theBox)
public Choice FillSiteChoice(Choice theBox, String selectedItem)
public Choice FillVaultChoice(Choice theBox)
public Choice FillVaultChoice(Choice theBox, String selectedItem)
public Choice FillVaultChoice(Choice theBox, Site theSite, String selectedItem, boolean local)
public Choice FillHostChoice(Choice theBox, Site currSite, String currSelection)
public Choice FillFolderChoice(Choice theBox, Site currSite, String currSelection, boolean local)
public void addFolder(String vaultName, String folderName, long capacity, long threshold, boolean readOnly, boolean enabled, int seqNum) throws WTPropertyVetoException, WTException, PropertyVetoException
WTPropertyVetoException
WTException
PropertyVetoException
public FileFolder moveFolderToNewVault(String vaultName, FileFolder theFolder) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public FileFolder moveFolderToNewVault(Vault theVault, FileFolder theFolder) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public FileFolder updateFolder(FvAdminFolderInfo info) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void addNewMount(int hostIndex, String folderName, String path, boolean isLocal, boolean folderEnabled) throws WTException, WTPropertyVetoException
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public void addNewMount(String hostName, String folderName, String path, boolean isLocal, boolean folderEnabled) throws WTException, WTPropertyVetoException
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public void updateMount(FvMount mount, String hostName, String folderName, String path, boolean isLocal) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void removeMount(String mountID) throws WTException
WTException
public FvMount getMount(String mountID) throws WTException
WTException
public void reset() throws WTException
WTException
public boolean vaultHasFolders(Long vaultKey) throws WTException
vaultKey
- the object identifier of the vault.
WTException
public void resetUndelivered(ReplicaVault theVault) throws WTException
WTException
public void resetUndelivered(Site theSite) throws WTException
WTException
public void resetReplication(ReplicaVault theVault) throws WTException
WTException
public void resetReplication(Site theSite) throws WTException
WTException
public void deleteVault(Long vaultKey) throws WTException
WTException
public void validateVaultMounts(Long key) throws WTException
WTException
public void validateFolderMounts(Long key) throws WTException
WTException
public void validateMount(String key) throws WTException
WTException
public void validateHostMounts(Long key) throws WTException
WTException
public void cleanVault(Long vaultKey) throws WTException
WTException
public void cleanVault(int vaultIndex) throws WTException
WTException
public void createVault(String vaultName, boolean readOnly, boolean remote, Site theSite, boolean designatedForCache) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void updateVaultFolderSeq(Vault origVault, String vaultName, boolean readOnly, Vector folderSeq) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public void updateVaultAttrs(Vault theVault, String newName, boolean newReadOnly, boolean newDesignatedForCache) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void init() throws WTException
WTException
private void initSites() throws WTException
WTException
private void initSiteMounts(Site theSite)
private void addSiteMounts(Long siteID, Enumeration vaultEnum)
public Enumeration getRemoteFolders(Long key)
private void initRemoteFolders(Site theSite) throws WTException
WTException
private void initFolders(Site theSite) throws WTException
WTException
public Enumeration getFolders()
private void initHosts(Site theSite) throws WTException
WTException
private void initVaults(Site theSite) throws WTException
WTException
private ScheduleItem getLatestScheduleItem(Vault theVault)
private void fetchSchedItems(String targClass, String targMethod)
private Long getObjectId(WTObject obj)
private void initRemoteVaults(Site theSite) throws WTException
WTException
private Enumeration fetchMounts()
private void initMountInfo() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |