be.ac.ulg.montefiore.run.totem.domain.model.impl
Class ComputeBackupOnFailureRerouteMethod

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.domain.model.DomainChangeAdapter
      extended by be.ac.ulg.montefiore.run.totem.domain.model.impl.ComputeBackupOnFailureRerouteMethod
All Implemented Interfaces:
DomainChangeListener, RerouteMethod

public class ComputeBackupOnFailureRerouteMethod
extends DomainChangeAdapter
implements RerouteMethod

Compute another lsp when an lsp has its status changed to DOWN. The parameter remove indicates if the down lsp should be removed or not. If the lsp is removed, the new lsp will have the same id as the deleted one. Otherwise, it will have a new generated id.

Creation date: 8/05/2007

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

Constructor Summary
ComputeBackupOnFailureRerouteMethod()
           
 
Method Summary
 java.util.List<ParameterDescriptor> getStartParameters()
          Returns the optional parameters that can be given when starting the algorithm
 void lspStatusChangeEvent(Lsp lsp)
          Notify a change in the status of an LSP (UP<->DOWN)
 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 class be.ac.ulg.montefiore.run.totem.domain.model.DomainChangeAdapter
addLinkEvent, addLspEvent, addNodeEvent, linkBandwidthChangeEvent, linkDelayChangeEvent, linkMetricChangeEvent, linkReservedBandwidthChangeEvent, linkStatusChangeEvent, linkTeMetricChangeEvent, lspReservationChangeEvent, nodeLocationChangeEvent, nodeStatusChangeEvent, removeLinkEvent, removeLspEvent, removeNodeEvent, rerouteLspEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainChangeListener
addLinkEvent, addLspEvent, addNodeEvent, linkBandwidthChangeEvent, linkDelayChangeEvent, linkMetricChangeEvent, linkReservedBandwidthChangeEvent, linkStatusChangeEvent, linkTeMetricChangeEvent, lspReservationChangeEvent, nodeLocationChangeEvent, nodeStatusChangeEvent, removeLinkEvent, removeLspEvent, removeNodeEvent, rerouteLspEvent
 

Constructor Detail

ComputeBackupOnFailureRerouteMethod

public ComputeBackupOnFailureRerouteMethod()
Method Detail

start

public void start(java.util.HashMap<java.lang.String,java.lang.String> params)
           throws RerouteMethodInitialisationException
Description copied from interface: RerouteMethod
Starts the reroute method.

Specified by:
start in interface RerouteMethod
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

public void stop()
Description copied from interface: RerouteMethod
Stop the reroute method. Should remove listeners.

Specified by:
stop in interface RerouteMethod

setDomain

public void setDomain(Domain domain)
Description copied from interface: RerouteMethod
Sets the domain on which the network controller should listens to events. Must be called prior to start().

Specified by:
setDomain in interface RerouteMethod

getStartParameters

public java.util.List<ParameterDescriptor> getStartParameters()
Description copied from interface: RerouteMethod
Returns the optional parameters that can be given when starting the algorithm

Specified by:
getStartParameters in interface RerouteMethod
Returns:
the list of algorithm parameters

lspStatusChangeEvent

public void lspStatusChangeEvent(Lsp lsp)
Description copied from class: DomainChangeAdapter
Notify a change in the status of an LSP (UP<->DOWN)

Specified by:
lspStatusChangeEvent in interface DomainChangeListener
Overrides:
lspStatusChangeEvent in class DomainChangeAdapter


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