be.ac.ulg.montefiore.run.totem.domain.model
Interface RerouteMethod

All Superinterfaces:
DomainChangeListener
All Known Implementing Classes:
ComputeBackupOnFailureRerouteMethod, RemovePrimaryOnFailureRerouteMethod, UseBackupOnFailureRerouteMethod

public interface RerouteMethod
extends DomainChangeListener

This interface must be implemented by all the rerouting methods. A rerouting method is a component which listens to the events occurring on a domain and which reacts in some way to these events, by rerouting the lsps.

The implementations of this interface should have an empty constructor.

Creation date: 11/05/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Method Summary
 java.util.List<ParameterDescriptor> getStartParameters()
          Returns the optional parameters that can be given when starting the algorithm
 void setDomain(Domain domain)
          Sets the domain on which the network controller should listens to events.
 void start(java.util.HashMap<java.lang.String,java.lang.String> params)
          Starts the reroute method.
 void stop()
          Stop the reroute method.
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainChangeListener
addLinkEvent, addLspEvent, addNodeEvent, linkBandwidthChangeEvent, linkDelayChangeEvent, linkMetricChangeEvent, linkReservedBandwidthChangeEvent, linkStatusChangeEvent, linkTeMetricChangeEvent, lspReservationChangeEvent, lspStatusChangeEvent, nodeLocationChangeEvent, nodeStatusChangeEvent, removeLinkEvent, removeLspEvent, removeNodeEvent, rerouteLspEvent
 

Method Detail

start

void start(java.util.HashMap<java.lang.String,java.lang.String> params)
           throws RerouteMethodInitialisationException
Starts the reroute method.

Parameters:
params - The parameters to initialise the reroute method. See the specific documentation of each reroute method to have a list of the supported parameters.
Throws:
RerouteMethodInitialisationException - If an error occurs during the initialisation of the controller.

stop

void stop()
Stop the reroute method. Should remove listeners.


setDomain

void setDomain(Domain domain)
Sets the domain on which the network controller should listens to events. Must be called prior to start().

Parameters:
domain -

getStartParameters

java.util.List<ParameterDescriptor> getStartParameters()
Returns the optional parameters that can be given when starting the algorithm

Returns:
the list of algorithm parameters


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