public class TreeConnectionHash extends Object
Hashtable of TreeConnections for the available disk shared devices. TreeConnections are indexed using the hash of the share name to allow mounts to be persistent across server restarts.
Constructor and Description |
---|
TreeConnectionHash()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addConnection(TreeConnection tree)
Add a connection to the list of available connections
|
TreeConnection |
deleteConnection(String shareName)
Delete a connection from the list
|
Enumeration<TreeConnection> |
enumerateConnections()
Enumerate the connections
|
TreeConnection |
findConnection(int hashCode)
Find a connection for the specified share name hash code
|
TreeConnection |
findConnection(String shareName)
Find a connection for the specified share name
|
int |
numberOfEntries()
Return the number of tree connections in the hash table
|
public final int numberOfEntries()
public final void addConnection(TreeConnection tree)
tree
- TreeConnectionpublic final TreeConnection deleteConnection(String shareName)
shareName
- Stringpublic final TreeConnection findConnection(String shareName)
shareName
- Stringpublic final TreeConnection findConnection(int hashCode)
hashCode
- intpublic final Enumeration<TreeConnection> enumerateConnections()
Copyright © 2005–2017 Alfresco Software. All rights reserved.