|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.mpls.mgmt.mpls_interface.MPLSOpticalInterface
Optical Interface to manage several fibers and lambdas.
The MPLSOpticalInterface provedes a capability of management for a Optical
Interface(ONIC) to the MPLSInterfaceInfo. It collects fibers and lambdas
information from the ONIC, and creates management table.
+------------------------------+
| MPLSInterfaceInfo |
| - InterfaceType == ONICType |
| - MPLSOpticalInterface <----+---+ MPLSOpticalInterface provedes the MPLSInterfaceInfo with
+------+-----------------------+ | the configuration informations of the ONIC.
| | So, the MPLSInterfaceInfo can handle the fibers and lambdas of the OpticalLink
+---------+ +--------------+----------+
| ONIC |<......| MPLSOpticalInterface | +-------------------------+
+---------+ | - inFiberTable <------+--------| OpticalFiberInfo class |+
| - outFiberTable <------+--------| - fiberID ||+
| - ControlChannelTable | | - Resource Informaton |||
| - Resource Information | | - lambdaTable <--------------+
+-------------------------+ | - Lambda Monitoring func||| |
+-------------------------+|| |
+------------------------+| |
+----------------------+ |
|
+-----------------+
|
|
+-------------------------+
| LambdaInfo class |+
| - fiberID ||+
| - Resource Informaton |||
+-------------------------+||
+------------------------+|
+----------------------+
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.
| Nested Class Summary | |
class |
MPLSOpticalInterface.LambdaInfo
Class LambdaInfo This class represents the Lambda information |
class |
MPLSOpticalInterface.OpticalFiberInfo
Class OpticalFiberInfo This class represents the Optical Fiber information |
| Field Summary | |
double |
availableInBandWidth
Field availableInBandWidth - Available incoming bandwidth |
double |
availableOutBandWidth
Field availableOutBandWidth - Available outgoing bandwidth |
(package private) MPLSInterfaceInfo |
ifaceInfo
Field ifaceInfo - MPLS Interface Information |
java.util.Vector |
inControlChannelTable
Field inControlChannelTable - Incoming Control channel table |
java.util.Hashtable |
inFiberTable
Field inFiberTable - Incoming Fiber Table |
MPLSMgmt |
mplsMgmt
Field mplsmgmt - MPLS Management Information |
(package private) int |
NodeType
Field NodeType - Node type |
(package private) ONIC |
onic
Field onic - Optical NIC |
java.util.Vector |
outControlChannelTable
Field outControlChannelTable - Outgoing Control channel Table |
java.util.Hashtable |
outFiberTable
Field outFiberTable - Outgoing Fiber Table |
double |
totalInBandWidth
Field totalInBandWidth - Total Incoming bandwidth |
double |
totalInControlChannelBandWidth
Field totalInControlChannelBandWidth - Total Incoming Control channel bandwidth |
int |
totalInControlLambdaNum
Field totalInControlLambdaNum - Total Incoming Control Lambda Number |
int |
totalInDataLambdaNum
Field totalInDataLambdaNum - Total Incoming Data Lambda number |
int |
totalInFiberNum
Field totalInFiberNum - Total Incoming Fiber number |
double |
totalOutBandWidth
Field totalOutBandWidth - Total outgoing bandwidth |
double |
totalOutControlChannelBandWidth
Field totalOutControlChannelBandWidth - Totoal outgoing control channel bandwidth |
int |
totalOutControlLambdaNum
Field totalOutControlLambdaNum - Total Outgoing control lambda number |
int |
totalOutDataLambdaNum
Field totalOutDataLambdaNum - Total Outgoing data lambda number |
int |
totalOutFiberNum
Field totalOutFiberNum - Total Outgoing Fiber number |
| Constructor Summary | |
MPLSOpticalInterface(MPLSInterfaceInfo info)
Creates an instance of the class MPLSOpticalInterface. |
|
| Method Summary | |
void |
flushFile()
Method flushFile Output the log to file |
double |
getBandwidth(int fiberid,
int lambdaid)
Method getBandwidth Retrieve the Bandwidth information |
double |
getBlockBytes(int fiberid,
int lambdaid)
Method getBlockBytes Retrieves the Block bytes |
long |
getBlockCounts(int fiberid,
int lambdaid)
Method getBlockCounts Retrieves the Block counts |
Lambda |
getInLambda(int fiberid,
int lambdaid)
Method getInLambda Get Incoming Lambda |
int |
getLabel(double bandwidth)
Method getLabel Generatge the Label value |
MPLSOpticalInterface.LambdaInfo |
getLambda(int fiberid,
int lambdaid,
java.util.Hashtable table)
Method getLambda Retrieves the Lambda Object |
java.lang.String |
getOpticalIfaceInfo()
Method getOpticalIfaceInfo Get the Optical Information Message |
Lambda |
getOutLambda(int fiberid,
int lambdaid)
Method getOutLambda Return the Outgoing Lambda |
boolean |
isAvailableInResource(double bandwidth)
Method isAvailableInResource Check that there is enough incoming bandwidth |
boolean |
isAvailableOutResource(double bandwidth)
Method isAvailableOutResource Check there is enough outgoing bandwidth |
boolean |
isControlChannel(int fiberid,
int lambdaid)
Method isControlChannel Check whether this path is control channel or not |
void |
Monitoring(double ctime)
Method Monitoring Do monitoring |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Method push Put the message to the proper interface |
boolean |
pushControlChannel(ProtocolMessage message,
ProtocolSession fromSession)
Method pushControlChannel Push the control packet to the proper session |
boolean |
releaseInBandwidth(int fiberid,
int lambdaid)
Method releaseInBandwidth Release Incoming Bandwidth |
boolean |
releaseOutBandwidth(int fiberid,
int lambdaid)
Method releaseOutBandwidth Release the Outgoing bandwidth |
boolean |
reserveBandwidth(int fiberid,
int lambdaid)
Method reserveBandwidth Reserve bandwidth |
void |
setOpticalNic()
Method setOpticalNic |
void |
setupLogFile(java.io.File interfacedir)
Method setupLogFile Setup Log File |
void |
updateTrafficInfo(boolean isout,
int fiberid,
int lambdaid,
double bytes)
Method updateTrafficInfo Update monitored traffic information |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public MPLSMgmt mplsMgmt
MPLSInterfaceInfo ifaceInfo
ONIC onic
int NodeType
public java.util.Hashtable inFiberTable
public java.util.Hashtable outFiberTable
public java.util.Vector inControlChannelTable
public java.util.Vector outControlChannelTable
public int totalInFiberNum
public int totalInDataLambdaNum
public int totalInControlLambdaNum
public double totalInBandWidth
public double availableInBandWidth
public double totalInControlChannelBandWidth
public int totalOutFiberNum
public int totalOutDataLambdaNum
public int totalOutControlLambdaNum
public double totalOutBandWidth
public double availableOutBandWidth
public double totalOutControlChannelBandWidth
| Constructor Detail |
public MPLSOpticalInterface(MPLSInterfaceInfo info)
info - the MPLSInterfaceInfo.| Method Detail |
public void setOpticalNic()
public Lambda getOutLambda(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public Lambda getInLambda(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public MPLSOpticalInterface.LambdaInfo getLambda(int fiberid,
int lambdaid,
java.util.Hashtable table)
fiberid - - Fiber IDlambdaid - - Lambda IDtable - - Fiber Table
public int getLabel(double bandwidth)
bandwidth -
public boolean isAvailableInResource(double bandwidth)
bandwidth - - Requried bandwidth
public boolean isAvailableOutResource(double bandwidth)
bandwidth - - Required bandwidth
public boolean reserveBandwidth(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public double getBandwidth(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public boolean releaseOutBandwidth(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public boolean releaseInBandwidth(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
message - fromSession -
public boolean pushControlChannel(ProtocolMessage message,
ProtocolSession fromSession)
message - fromSession -
public double getBlockBytes(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public long getBlockCounts(int fiberid,
int lambdaid)
fiberid - - Fiber IDlambdaid - - Lambda ID
public boolean isControlChannel(int fiberid,
int lambdaid)
fiberid - lambdaid -
public java.lang.String getOpticalIfaceInfo()
public void updateTrafficInfo(boolean isout,
int fiberid,
int lambdaid,
double bytes)
isout - - ture if outgoing interfacefiberid - - Fiber IDlambdaid - - Lambda IDbytes - - Updated bytespublic void setupLogFile(java.io.File interfacedir)
interfacedir - - XXXpublic void Monitoring(double ctime)
ctime - - Current Timepublic void flushFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||