live.dto
Class Network

java.lang.Object
  extended bylive.dto.Network

public class Network
extends Object

Network is used by the cache to store information about a specific network.

Author:
Jason J. Herne

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

NETWORK_GLAN

public static final int NETWORK_GLAN
See Also:
Constant Field Values

NETWORK_VSWITCH

public static final int NETWORK_VSWITCH
See Also:
Constant Field Values

networkName

private String networkName

networkType

private int networkType

owner

public String owner

type

public String type

numConnected

public int numConnected

maxConnected

public int maxConnected

restricted

public boolean restricted

priRouter

public boolean priRouter

ipTimeout

public int ipTimeout

queueStorLim

public int queueStorLim

rdev1

public String rdev1

rdev2

public String rdev2

rdev3

public String rdev3

portname1

public String portname1

portname2

public String portname2

portname3

public String portname3

members

public LinkedList members
Constructor Detail

Network

public Network(String networkName,
               int networkType)
Creates a Network and sets its name and type.

Parameters:
networkName - The name of this network
networkType - The type of this network
Method Detail

setNetworkName

public void setNetworkName(String networkName)
Sets the name of this network.

Parameters:
networkName - The network name to use.

getNetworkName

public String getNetworkName()
Gets the name of this network.

Returns:
Name of this network.

setNetworkType

public void setNetworkType(int networkType)
Sets the type of this network. This can be 0 for GLAN or 1 for VSWITCH. The defined constants NETWORK_GLAN and NETWORK_VSWICH can be used as well.

Parameters:
networkType - The network type to set.

getNetworkType

public int getNetworkType()
Gets the type of this network.

Returns:
type of this network.

addMember

public void addMember(String guestName)
Adds a member to the network

Parameters:
guestName - Name of the guest to add

getMembers

public Collection getMembers()
Returns the members of the network (a Collection of guest names as Strings)

Returns:
The members of the network

toString

public String toString()
Returns a nice, readable version of the network in the form: [Network (network name): [member, member, ...]]

See Also:
Object.toString()


Copyright © 2005