|
||||||||||
| 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.OS.ProtocolGraph
|
+--SSF.Net.Host
|
+--SSF.Net.Router
|
+--SSF.Net.ExtRouter
This class is a bridge to access package attributes by subclasses. 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 ExtRouter is failed. |
protected boolean |
inConfiguration
Indicator if the class is in the configuration mode (true). |
private boolean |
log
If a logfile has to be produced. |
protected java.util.Vector |
protNames
This Vector contains the names of the attached protocols. |
| Fields inherited from class SSF.Net.Host |
hostConfig, ID, interfaceAddresses, interfaceCount, interfaceNumbers, net, nhi, nhi_context |
| Fields inherited from class SSF.OS.ProtocolGraph |
description |
| Fields inherited from class com.renesys.raceway.SSF.Entity |
|
| Constructor Summary | |
ExtRouter(Net N,
java.lang.String use_nhi,
int use_id)
Default constructor |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configures the ExtRouter by adding Onic. |
int |
getID()
Return the ID of the host |
java.util.Hashtable |
getInterfaceAddresses()
Return the table of the interfaces |
int |
getInterfaceCount()
Number of interfaces constructed for this Host (may not all be "up") |
static int |
getInterfaceCount(Host ofHost)
Number of interfaces constructed for this Host (may not all be "up") |
java.util.Vector |
getNameOfProtocols()
Determine the names of attached Protocols. |
Net |
getNet()
Return the net that contains this host |
boolean |
isFailure()
Informs if the OXC is failed. |
boolean |
isLog()
Returns if the log has to be created or not. |
protected void |
notifyONIC()
Notifies the ONIC about a change in the failure setting. |
void |
removeProtocolSession(java.lang.String name)
Remove a protocolSession of this node. |
protected void |
sendMessage(short messageType)
Checks if the Eventhandler has receivers and this object is not in the configuration mode, this message will send the specified event. |
ProtocolSession |
SessionForName(java.lang.String protocol_name)
If a protocol has been registered under the given name, return an instance (session) of it. |
void |
setFailure(boolean newFailure)
Set the status of the ExtRouter. |
void |
setID(int newID)
Set the ID of the host |
static void |
setInterfaceCount(int newInterfaceCount,
Host ofHost)
Set the number of interfaces constructed for this Host (may not all be "up") |
void |
setLog(boolean newValue)
Set the log value. |
private void |
storeProtocolSessionName(com.renesys.raceway.DML.Configuration cfg)
Determines all used protocols out of the configuration file. |
| Methods inherited from class SSF.Net.Host |
defined_in_network, global_nhi_to_ip, init, local_nhi_to_ip, toString |
| Methods inherited from class SSF.OS.ProtocolGraph |
cpu |
| Methods inherited from class com.renesys.raceway.SSF.Entity |
alignment, alignTo, coalignedEntities, inChannels, 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, wait, wait, wait |
| Field Detail |
private boolean log
protected java.util.Vector protNames
private boolean failure
protected boolean inConfiguration
| Constructor Detail |
public ExtRouter(Net N,
java.lang.String use_nhi,
int use_id)
N - The net that contains this routeruse_nhi - The NHI contextuse_id - The id to use for this node| 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 Hostcfg - the configuration object.
com.renesys.raceway.DML.configException
private void storeProtocolSessionName(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
cfg - the Configuration containing the graph information.
com.renesys.raceway.DML.configException - An configuration Exception occured.public void removeProtocolSession(java.lang.String name)
name - The name of the ProtocolSession to removepublic java.util.Vector getNameOfProtocols()
public ProtocolSession SessionForName(java.lang.String protocol_name)
throws ProtocolException
SessionForName in class ProtocolGraphprotocol_name - The name of the protocol
ProtocolException - if the specified protocol name doesn't
name a valid protocol class, or if the class could not be instantiated
due to its lack of a public zero-argument constructor.public Net getNet()
getNet in class Hostpublic int getID()
public void setID(int newID)
throws IllegalIDException,
DuplicateIDException
IllegalIDException
DuplicateIDExceptionpublic java.util.Hashtable getInterfaceAddresses()
public int getInterfaceCount()
public boolean isLog()
public void setLog(boolean newValue)
newValue - true if the log has to be created.public void setFailure(boolean newFailure)
newFailure - True if the OXC becomes failed.public boolean isFailure()
isFailure in interface FailureInformationprotected void notifyONIC()
package.classprotected void sendMessage(short messageType)
messageType - the type of the message. The types are specified in the
class gov.nist.antd.optical.event.monitor.EventHandler.
public static void setInterfaceCount(int newInterfaceCount,
Host ofHost)
public static int getInterfaceCount(Host ofHost)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||