|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlive.dto.Network
Network is used by the cache to store information about a specific network.
Field Summary | |
int |
ipTimeout
|
int |
maxConnected
|
LinkedList |
members
|
static int |
NETWORK_GLAN
|
static int |
NETWORK_VSWITCH
|
private String |
networkName
|
private int |
networkType
|
int |
numConnected
|
String |
owner
|
String |
portname1
|
String |
portname2
|
String |
portname3
|
boolean |
priRouter
|
int |
queueStorLim
|
String |
rdev1
|
String |
rdev2
|
String |
rdev3
|
boolean |
restricted
|
String |
type
|
Constructor Summary | |
Network(String networkName,
int networkType)
Creates a Network and sets its name and type. |
Method Summary | |
void |
addMember(String guestName)
Adds a member to the network |
Collection |
getMembers()
Returns the members of the network (a Collection of guest names as Strings) |
String |
getNetworkName()
Gets the name of this network. |
int |
getNetworkType()
Gets the type of this network. |
void |
setNetworkName(String networkName)
Sets the name of this network. |
void |
setNetworkType(int networkType)
Sets the type of this network. |
String |
toString()
Returns a nice, readable version of the network in the form: [Network (network name): [member, member, ...]] |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NETWORK_GLAN
public static final int NETWORK_VSWITCH
private String networkName
private int networkType
public String owner
public String type
public int numConnected
public int maxConnected
public boolean restricted
public boolean priRouter
public int ipTimeout
public int queueStorLim
public String rdev1
public String rdev2
public String rdev3
public String portname1
public String portname2
public String portname3
public LinkedList members
Constructor Detail |
public Network(String networkName, int networkType)
networkName
- The name of this networknetworkType
- The type of this networkMethod Detail |
public void setNetworkName(String networkName)
networkName
- The network name to use.public String getNetworkName()
public void setNetworkType(int networkType)
networkType
- The network type to set.public int getNetworkType()
public void addMember(String guestName)
guestName
- Name of the guest to addpublic Collection getMembers()
public String toString()
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |