|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.repository.DAMOTE.JNIDAMOTE
public class JNIDAMOTE
This class implements the JNI interface for DAMOTE (ULg). DAMOTE is a Decentralized Agent for Mpls Online Traffic Engineering.
Creation date: 02-Feb.-2005
| Field Summary | |
|---|---|
int[] |
lsps
|
int |
sessId
|
| Constructor Summary | |
|---|---|
JNIDAMOTE()
|
|
| Method Summary | |
|---|---|
void |
jniaddBackupLSP(int lspid,
int primaryId,
int[] path,
int PL,
int OA,
float reservation,
boolean type)
Adds an already computed backup LSP to DAMOTE database |
void |
jniaddLink(int linkId,
int color,
int src,
int dst,
float[] cap,
float[][] rbw,
float[][] pbw,
float[][] bbw,
float[][] fbw)
Adds Link in DAMOTE database |
void |
jniaddLSP(int lspid,
int[] path,
int PL,
int OA,
float reservation)
Adds an already computed primary LSP to DAMOTE database Note that the least priority and the default OA will be chosen. |
void |
jniaddNode(int nodeId)
Adds Node in DAMOTE database |
java.lang.Object[] |
jnicomputeBackupPath(int primarylspId,
int[] backuplspIds,
int backupType,
boolean ADDLSP,
boolean PREEMPT)
Computes a global detour or local detours with DAMOTE |
int[] |
jnicomputePath(int lspId,
int src,
int dst,
int rrid,
int rrsrc,
int rrdst,
int PL,
int OA,
float reservation,
int[] colorArray,
boolean ADDLSP,
boolean PREEMPT)
Computes a primary LSP with DAMOTE |
void |
jniinitDamote(int nbOA,
int nbPL,
boolean colorClause,
boolean allowReroute,
boolean capacityClause,
float loadbal,
float load,
float sqLoad,
float relativeLoad,
float sqRelativeLoad,
float delay,
float fortz,
float[][] reroutingScorecoef)
Initializes DAMOTE High Level configuration, database filling,... |
void |
jnikillDamote()
Kills DAMOTE Unload DAMOTE from memory |
void |
jniprintDamoteDB()
|
void |
jniremoveLink(int srcNodeId,
int dstNodeId)
Removes the link identified by srcNodeId and dstNodeId from DAMOTE database |
void |
jniremoveLSP(int lspid)
Remove the LSP identified by lspid from DAMOTE database |
void |
jniremoveNode(int nodeId)
Removes the node identified by nodeId from DAMOTE database |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[] lsps
public int sessId
| Constructor Detail |
|---|
public JNIDAMOTE()
| Method Detail |
|---|
public void jniprintDamoteDB()
public void jniinitDamote(int nbOA,
int nbPL,
boolean colorClause,
boolean allowReroute,
boolean capacityClause,
float loadbal,
float load,
float sqLoad,
float relativeLoad,
float sqRelativeLoad,
float delay,
float fortz,
float[][] reroutingScorecoef)
nbOA - the number of OAs or CTs(not taken into account in C code (FIX needed)nbPL - the number of PLs - preemption or priority levels - (not taken into account in C code (FIX needed)colorClause - link colorsallowReroute - allow rerouting of less prioritary LSPs when computing?capacityClause - take into account the max capacity of the linkloadbal - loadbalancing score function contributionload - minhop score functionsqLoad - relativeLoad - sqRelativeLoad - traffic minimization score function contributiondelay - reroutingScorecoef - score function configurationpublic void jnikillDamote()
public void jniaddNode(int nodeId)
throws AddDBException
nodeId -
AddDBException
public void jniaddLink(int linkId,
int color,
int src,
int dst,
float[] cap,
float[][] rbw,
float[][] pbw,
float[][] bbw,
float[][] fbw)
throws AddDBException
linkId - color - src - dst - cap - capacity of the link per CT or OArbw - bandwidth caracteristics of the linkpbw - bandwidth caracteristics of the linkbbw - bandwidth caracteristics of the linkfbw - bandwidth caracteristics of the link
AddDBException
public void jniaddLSP(int lspid,
int[] path,
int PL,
int OA,
float reservation)
throws AddDBException
lspid - the LSP id of the LSPpath - the path as a list of NODE idsPL - OA - reservation - requested bandwidth
AddDBException
public void jniaddBackupLSP(int lspid,
int primaryId,
int[] path,
int PL,
int OA,
float reservation,
boolean type)
throws AddDBException
lspid - the LSP id of the LSPprimaryId - the LSP id of the protected LSPpath - the path as a list of NODE idsPL - OA - reservation - requested bandwidthtype - false for global backup, true for local backup
AddDBException
public void jniremoveLSP(int lspid)
throws AddDBException
lspid -
AddDBException
public void jniremoveNode(int nodeId)
throws AddDBException
nodeId -
AddDBException
public void jniremoveLink(int srcNodeId,
int dstNodeId)
throws AddDBException
srcNodeId - dstNodeId -
AddDBException
public int[] jnicomputePath(int lspId,
int src,
int dst,
int rrid,
int rrsrc,
int rrdst,
int PL,
int OA,
float reservation,
int[] colorArray,
boolean ADDLSP,
boolean PREEMPT)
throws AddDBException,
NoRouteToHostException,
RoutingException
lspId - src - dst - rrid - used when computing a rerouting of another LSPrrsrc - used when computing a rerouting of another LSPrrdst - used when computing a rerouting of another LSPPL - OA - reservation - requested bandwidthcolorArray - lists of link colors that should not be usedADDLSP - add the LSP to the databasePREEMPT - allow preemption
AddDBException
NoRouteToHostException
RoutingException
public java.lang.Object[] jnicomputeBackupPath(int primarylspId,
int[] backuplspIds,
int backupType,
boolean ADDLSP,
boolean PREEMPT)
throws AddDBException,
NoRouteToHostException
primarylspId - backupType - ADDLSP - PREEMPT -
AddDBException
NoRouteToHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||