|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.renesys.raceway.SSF.Entity
|
+--SSF.Net.link
|
+--SSF.Net._link
This class is a bridge to access package attributes by subclasses. It also contains some utilities for a link. This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic. We would appreciate acknowledgement if the software is used. NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
private boolean |
failure
Indicates if the link is failed. |
private int |
id
The id of this link. |
protected boolean |
inConfiguration
Indicator if the class is in the configuration mode (true). |
| Fields inherited from class SSF.Net.link |
attachedCount, attachedInterfaces, cidr, dumpTo, ip, ipaddr, link_hw, net, nhi, prefix |
| Fields inherited from class com.renesys.raceway.SSF.Entity |
|
| Constructor Summary | |
_link(Net N,
java.lang.String use_nhi)
Constructor |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configures the link. |
void |
configOptional(com.renesys.raceway.DML.Configuration cfg)
Configures optional values. |
int |
getAttachedCount()
Get the number of attached interfaces. |
static int |
getAttachedCount(link ofLink)
Return the number of attached interfaces for the given link |
java.util.Hashtable |
getAttachedInterfaces()
Table mapping NHI addresses, which are "N:N:N:N:H(I)" strings, to instances of NIC and ONIC. |
static java.util.Hashtable |
getAttachedInterfaces(link ofLink)
Return the table mapping NHI addresses, which are "N:N:N:N:H(I)" strings, to instances of NIC. |
java.lang.String |
getCidr()
CIDR block address, in l1/l2/l3/l4/l5... |
tcpDump |
getDumpTo()
Probe to which traffic is dumped (if non-null) |
int |
getID()
Get the id of this link. |
java.lang.String |
getIp()
IP network address of attached interfaces, in a.b.c.d/m format. |
static java.lang.String |
getIp(link ofLink)
get IP network address of attached interfaces, in a.b.c.d/m format |
int |
getIpaddr()
IP network address of attached interfaces. |
static int |
getIpaddr(link ofLink)
return the IP network address of attached interfaces for a link |
linkLayer |
getLinkLayer()
Future link layer interface -- determines level-2 routing semantics for packets written on any attached interface. |
static linkLayer |
getLinkLayer(link ofLink)
Get the future link layer interface. |
Net |
getNet()
Get the Net object that contains the link. |
java.lang.String |
getNhi()
NHI address of point of link definition. |
static NIC[] |
getNICs(link lnk)
Return the attached NIC for the given link |
int |
getPrefix()
IP prefix length (default: /32). |
static int |
getPrefix(link ofLink)
get IP prefix length (default: /32) |
boolean |
isFailure()
Retruns if the link is failed. |
protected void |
notifyNIC()
Informs the NIC's on both sides about the change of the link status. |
void |
setAttachedCount(int newAttachedCount)
Set the number of attached interfaces. |
static void |
setAttachedCount(int newAttachedCount,
link ofLink)
Set the number of attached interfaces for a link |
void |
setAttachedInterfaces(java.util.Hashtable newAttachedInterfaces)
Table mapping NHI addresses, which are "N:N:N:N:H(I)" strings, to instances of NIC and ONIC. |
static void |
setAttachedInterfaces(java.util.Hashtable newAttachedInterfaces,
link ofLink)
Set the hashtable mapping the nhi to the NICs for a link |
void |
setCidr(java.lang.String newCidr)
CIDR block address, in l1/l2/l3/l4/l5... |
void |
setDumpTo(tcpDump newTcpDump)
Probe to which traffic is dumped (if non-null) |
void |
setFailure(boolean newValue)
Modify the failure attribute. |
void |
setID(int newID)
Set the ID for this optical link. |
void |
setIp(java.lang.String newIp)
Set up the IP network address of attached interfaces, in a.b.c.d/m format. |
static void |
setIp(java.lang.String newIp,
link ofLink)
Set the ip adress of a link |
void |
setIpaddr(int newIpaddr)
IP network address of attached interfaces. |
static void |
setIpaddr(int newIpaddr,
link ofLink)
Set the ip adress of a link |
void |
setLinkLayer(linkLayer newLinkLayer)
set up the future link layer interface. |
static void |
setLinkLayer(linkLayer newLinkLayer,
link ofLink)
Set the future link layer interface packets written on any attached interface. |
void |
setNet(Net newNet)
Set the Net object that contains the link. |
void |
setNhi(java.lang.String newNhi)
NHI address of point of link definition. |
void |
setPrefix(int newPrefix)
IP prefix length (default: /32). |
static void |
setPrefix(int newPrefix,
link ofLink)
set IP prefix length |
| Methods inherited from class SSF.Net.link |
delay |
| Methods inherited from class com.renesys.raceway.SSF.Entity |
alignment, alignTo, coalignedEntities, inChannels, init, joinAll, makeIndependent, now, outChannels, pauseAll, playRole, processes, resumeAll, startAll, startAll, startClient, startClient, startServer, W, Z |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean failure
private int id
protected boolean inConfiguration
| Constructor Detail |
public _link(Net N,
java.lang.String use_nhi)
N - the Net that contains this linkuse_nhi - The NHI address to use for this link.| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface com.renesys.raceway.DML.Configurableconfig in class linkcfg - the configuration object.
com.renesys.raceway.DML.configException - if a configuration exception occurs.
public void configOptional(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
cfg - the configuration object.
com.renesys.raceway.DML.configException - if an configuration exceprion occurs.public boolean isFailure()
isFailure in interface FailureInformationpublic void setFailure(boolean newValue)
newValue - True if the link becomes failed.protected void notifyNIC()
public int getID()
public void setID(int newID)
throws com.renesys.raceway.DML.configException
newID - The id to use.
com.renesys.raceway.DML.configException - when the ID is < 0 or already in use.public int getAttachedCount()
public void setAttachedCount(int newAttachedCount)
newAttachedCount - The number of attached interfaces.public java.util.Hashtable getAttachedInterfaces()
public void setAttachedInterfaces(java.util.Hashtable newAttachedInterfaces)
public java.lang.String getCidr()
public void setCidr(java.lang.String newCidr)
newCidr - The CIDR block address of the link.public java.lang.String getIp()
public void setIp(java.lang.String newIp)
newIp - The IP address of the link as String format.public int getIpaddr()
public void setIpaddr(int newIpaddr)
newIpaddr - The IP address of the link as int.public Net getNet()
public void setNet(Net newNet)
newNet - The Net object that contains the link.public java.lang.String getNhi()
public void setNhi(java.lang.String newNhi)
newNhi - The NHI address of the linkpublic int getPrefix()
public void setPrefix(int newPrefix)
newPrefix - The IP prefix length of this link.public linkLayer getLinkLayer()
public void setLinkLayer(linkLayer newLinkLayer)
newLinkLayer - The linkLayer that manages packets transmission.public tcpDump getDumpTo()
public void setDumpTo(tcpDump newTcpDump)
newTcpDump - The tcpDump for this link.public static java.util.Hashtable getAttachedInterfaces(link ofLink)
public static void setAttachedInterfaces(java.util.Hashtable newAttachedInterfaces,
link ofLink)
ofLink - The link to modifypublic static int getAttachedCount(link ofLink)
ofLink - The link we want to have the number of interfaces
public static void setAttachedCount(int newAttachedCount,
link ofLink)
newAttachedCount - The number of attached interfacesofLink - The link to modifypublic static int getIpaddr(link ofLink)
ofLink - The link we want to have information
public static void setIpaddr(int newIpaddr,
link ofLink)
ofLink - The link we want to have informationpublic static java.lang.String getIp(link ofLink)
ofLink - The link we want to have information
public static void setIp(java.lang.String newIp,
link ofLink)
newIp - the IP to assignofLink - The link we want to have informationpublic static int getPrefix(link ofLink)
ofLink - The link we want to have information
public static void setPrefix(int newPrefix,
link ofLink)
ofLink - The link we want to have informationpublic static linkLayer getLinkLayer(link ofLink)
ofLink - The link we want to have information .
public static void setLinkLayer(linkLayer newLinkLayer,
link ofLink)
newLinkLayer - The link layer that manages packet transmission.ofLink - The link we want to have informationpublic static NIC[] getNICs(link lnk)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||