|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unina.repository.MIRA.JNIMIRA
public class JNIMIRA
This class implements the JNI interface for MIRA (Unina).
Creation date : 6 juin 2005 12:26:54
Constructor Summary | |
---|---|
JNIMIRA()
|
Method Summary | |
---|---|
static void |
jniaddLink(int srcId,
int dstId,
float cap,
float reservedBw,
float metric)
Adds Link in MIRA database |
static void |
jniaddNode(int nodeId,
int type)
Adds Node in MIRA database |
static void |
jniaddPath(int[] path,
float reservation)
Adds an already computed primary LSP to MIRA database |
static int[] |
jnicomputePath(int src,
int dst,
float bandwidth,
int ADDLSP)
Computes a primary LSP with MIRA |
static void |
jniinitMira(int miraVersion)
Initializes MIRA High Level configuration, database filling,... |
static void |
jnikillMira()
Kills MIRA Unload MIRA from memory |
static void |
jniprintMiraDB()
|
static void |
jniremoveLink(int srcId,
int dstId)
Removes the link identified by srcNodeId and dstNodeId from MIRA database |
static void |
jniremoveNode(int nodeId)
Removes the node identified by nodeId from MIRA database |
static void |
jniremovePath(int[] path,
float reservation)
Remove an already computed primary LSP to MIRA database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNIMIRA()
Method Detail |
---|
public static void jniprintMiraDB()
public static void jniinitMira(int miraVersion)
miraVersion
- : specify if we want to use s-MIRA (type = 0) or new-MIRA (type = 1)public static void jnikillMira()
public static void jniaddNode(int nodeId, int type) throws AddDBException
nodeId
- type
- : specify if the node is an edge node (1) or not (0)
AddDBException
public static void jniaddLink(int srcId, int dstId, float cap, float reservedBw, float metric) throws AddDBException
srcId
- dstId
- cap
- capacity of the link per CT or OA
AddDBException
public static void jniaddPath(int[] path, float reservation) throws AddDBException
path
- the path as a list of NODE idsreservation
- requested bandwidth
AddDBException
public static void jniremovePath(int[] path, float reservation) throws AddDBException
path
- the path as a list of NODE idsreservation
- requested bandwidth
AddDBException
public static void jniremoveNode(int nodeId) throws AddDBException
nodeId
-
AddDBException
public static void jniremoveLink(int srcId, int dstId) throws AddDBException
srcId
- dstId
-
AddDBException
public static int[] jnicomputePath(int src, int dst, float bandwidth, int ADDLSP) throws AddDBException, NoRouteToHostException, RoutingException
src
- dst
- bandwidth
- requested bandwidthADDLSP
- add the LSP to the database
AddDBException
NoRouteToHostException
RoutingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |