|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.managers.NetworkManager
Manages collections of networks.
| Method Summary | |
void |
addNetwork(Network network,
DataStorageTag tag,
java.lang.String name)
Add a new network to the vault. |
void |
addNetwork(Network network,
java.lang.String name)
Add a network to the vault, using the default data storage tag. |
void |
cleanVault()
Cleans the vault of all networks. |
static NetworkManager |
getManager()
Returns an instance of the network manager. |
Network |
getNetwork(java.lang.String name)
Returns the named network from the vault. |
DataStorageTag |
getStorageTag(java.lang.String name)
Returns the data storage tag for the named network. |
java.lang.String |
getVaultDirectory()
Returns the base directory for the vault. |
java.util.List |
listNetworks()
Lists the networks in the vault. |
void |
removeNetwork(java.lang.String name)
Remove the network from the vault. |
void |
setVaultDirectory(java.lang.String directory)
Set the directory path for the netwowrk vault. |
void |
updateNetwork(Network network,
DataStorageTag tag,
java.lang.String name)
Update the given network and the data storage tag. |
void |
updateNetwork(Network network,
java.lang.String name)
Update the given network without changing the data storage tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static NetworkManager getManager()
public void addNetwork(Network network,
DataStorageTag tag,
java.lang.String name)
throws java.io.IOException
network - The network.tag - The storage tag for this network.name - The name of the network.
IOException - Thrown if there is a problem adding this network.
public void addNetwork(Network network,
java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
network - The network.name - The name of the network.
FileNotFoundException - Thrown if there is a problem saving the network.
IOException - Thrown if there is a porblem saving the network.
java.lang.ClassNotFoundException - Thrown if there is a problem saving the network.public void cleanVault()
public java.lang.String getVaultDirectory()
public Network getNetwork(java.lang.String name)
throws java.io.IOException,
java.lang.ClassNotFoundException
name - The name of the network.
IOException - Thrown if there is a problem reading the network.
java.lang.ClassNotFoundException - Thrown if there is a problem retrieving the network.
public DataStorageTag getStorageTag(java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
name - The name of the network.
FileNotFoundException - Thrown if there is a problem reading the tag.
IOException - Thrown if there is a problem reading the tag.
java.lang.ClassNotFoundException - Thrown if there is a problem reading the tag.public java.util.List listNetworks()
public void removeNetwork(java.lang.String name)
name - The name of the network to remove.public void setVaultDirectory(java.lang.String directory)
directory - The file path to the network vault.
public void updateNetwork(Network network,
java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
network - The network data.name - The name of the network to update.
FileNotFoundException - Thrown if there is a problem saving the network.
IOException - Thrown if there is a problem saving the network.
java.lang.ClassNotFoundException - Thrown if there is a problem saving the network.
public void updateNetwork(Network network,
DataStorageTag tag,
java.lang.String name)
throws java.io.IOException
network - The network data.tag - The storage tag to update.name - The name of the network.
IOException - Thrown if there is an error updating the network.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||