it.unina.repository.MIRA
Class JNIMIRA

java.lang.Object
  extended by it.unina.repository.MIRA.JNIMIRA

public class JNIMIRA
extends java.lang.Object

This class implements the JNI interface for MIRA (Unina).

Creation date : 6 juin 2005 12:26:54

Author:
Simon Balon (balon@run.montefiore.ulg.ac.be)

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

JNIMIRA

public JNIMIRA()
Method Detail

jniprintMiraDB

public static void jniprintMiraDB()

jniinitMira

public static void jniinitMira(int miraVersion)
Initializes MIRA High Level configuration, database filling,...

Parameters:
miraVersion - : specify if we want to use s-MIRA (type = 0) or new-MIRA (type = 1)

jnikillMira

public static void jnikillMira()
Kills MIRA Unload MIRA from memory


jniaddNode

public static void jniaddNode(int nodeId,
                              int type)
                       throws AddDBException
Adds Node in MIRA database

Parameters:
nodeId -
type - : specify if the node is an edge node (1) or not (0)
Throws:
AddDBException

jniaddLink

public static void jniaddLink(int srcId,
                              int dstId,
                              float cap,
                              float reservedBw,
                              float metric)
                       throws AddDBException
Adds Link in MIRA database

Parameters:
srcId -
dstId -
cap - capacity of the link per CT or OA
Throws:
AddDBException

jniaddPath

public static void jniaddPath(int[] path,
                              float reservation)
                       throws AddDBException
Adds an already computed primary LSP to MIRA database

Parameters:
path - the path as a list of NODE ids
reservation - requested bandwidth
Throws:
AddDBException

jniremovePath

public static void jniremovePath(int[] path,
                                 float reservation)
                          throws AddDBException
Remove an already computed primary LSP to MIRA database

Parameters:
path - the path as a list of NODE ids
reservation - requested bandwidth
Throws:
AddDBException

jniremoveNode

public static void jniremoveNode(int nodeId)
                          throws AddDBException
Removes the node identified by nodeId from MIRA database

Parameters:
nodeId -
Throws:
AddDBException

jniremoveLink

public static void jniremoveLink(int srcId,
                                 int dstId)
                          throws AddDBException
Removes the link identified by srcNodeId and dstNodeId from MIRA database

Parameters:
srcId -
dstId -
Throws:
AddDBException

jnicomputePath

public static int[] jnicomputePath(int src,
                                   int dst,
                                   float bandwidth,
                                   int ADDLSP)
                            throws AddDBException,
                                   NoRouteToHostException,
                                   RoutingException
Computes a primary LSP with MIRA

Parameters:
src -
dst -
bandwidth - requested bandwidth
ADDLSP - add the LSP to the database
Returns:
Throws:
AddDBException
NoRouteToHostException
RoutingException


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.