be.ac.ulg.montefiore.run.totem.domain.model
Class SwitchingMethod

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.domain.model.SwitchingMethod
All Implemented Interfaces:
DomainChangeListener
Direct Known Subclasses:
FastRerouteSwitchingMethod

public abstract class SwitchingMethod
extends java.lang.Object
implements DomainChangeListener

Implements to react to change in node or link status. Must activate and deactivate the appropriate backups LSPs (using Lsp.activateBackup(Lsp) and Lsp.deactivateBackup(Lsp)) in response to a change of link or node status.

Creation date: 11/09/2007

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

Constructor Summary
SwitchingMethod()
           
 
Method Summary
 void addLinkEvent(Link link)
          Notify a add link event
 void addLspEvent(Lsp lsp)
          Notify a add LSP event
 void addNodeEvent(Node node)
          Notify a add node event
 void linkBandwidthChangeEvent(Link link)
          Notify a link bandwidth change event
 void linkDelayChangeEvent(Link link)
          Notify a link delay change event
 void linkMetricChangeEvent(Link link)
          Notify a link metric change event
 void linkReservedBandwidthChangeEvent(Link link)
          Notify a link reserved bandwidth change event
 void linkTeMetricChangeEvent(Link link)
          Notify a link TE metric change event
 void lspReservationChangeEvent(Lsp lsp)
          Notify a LSP reservation change event
 void lspWorkingPathChangeEvent(Lsp lsp)
          Notify a change in the working path of the lsp.
 void nodeLocationChangeEvent(Node node)
          Notify a node location change event
 void removeLinkEvent(Link link)
          Notify a remove link event
 void removeLspEvent(Lsp lsp)
          Notify a remove LSP event
 void removeNodeEvent(Node node)
          Notify a remove node event
 void rerouteLspEvent(Lsp lsp)
          Notify the fact that a LSP must be rerouted.
abstract  void start()
           
abstract  void stop()
           
 
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
linkStatusChangeEvent, nodeStatusChangeEvent
 

Constructor Detail

SwitchingMethod

public SwitchingMethod()
Method Detail

start

public abstract void start()

stop

public abstract void stop()

addNodeEvent

public final void addNodeEvent(Node node)
Description copied from interface: DomainChangeListener
Notify a add node event

Specified by:
addNodeEvent in interface DomainChangeListener

removeNodeEvent

public final void removeNodeEvent(Node node)
Description copied from interface: DomainChangeListener
Notify a remove node event

Specified by:
removeNodeEvent in interface DomainChangeListener

nodeLocationChangeEvent

public final void nodeLocationChangeEvent(Node node)
Description copied from interface: DomainChangeListener
Notify a node location change event

Specified by:
nodeLocationChangeEvent in interface DomainChangeListener

addLinkEvent

public final void addLinkEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a add link event

Specified by:
addLinkEvent in interface DomainChangeListener

removeLinkEvent

public final void removeLinkEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a remove link event

Specified by:
removeLinkEvent in interface DomainChangeListener

linkMetricChangeEvent

public final void linkMetricChangeEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a link metric change event

Specified by:
linkMetricChangeEvent in interface DomainChangeListener

linkTeMetricChangeEvent

public final void linkTeMetricChangeEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a link TE metric change event

Specified by:
linkTeMetricChangeEvent in interface DomainChangeListener

linkBandwidthChangeEvent

public final void linkBandwidthChangeEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a link bandwidth change event

Specified by:
linkBandwidthChangeEvent in interface DomainChangeListener

linkReservedBandwidthChangeEvent

public final void linkReservedBandwidthChangeEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a link reserved bandwidth change event

Specified by:
linkReservedBandwidthChangeEvent in interface DomainChangeListener

linkDelayChangeEvent

public final void linkDelayChangeEvent(Link link)
Description copied from interface: DomainChangeListener
Notify a link delay change event

Specified by:
linkDelayChangeEvent in interface DomainChangeListener

addLspEvent

public final void addLspEvent(Lsp lsp)
Description copied from interface: DomainChangeListener
Notify a add LSP event

Specified by:
addLspEvent in interface DomainChangeListener

removeLspEvent

public final void removeLspEvent(Lsp lsp)
Description copied from interface: DomainChangeListener
Notify a remove LSP event

Specified by:
removeLspEvent in interface DomainChangeListener

rerouteLspEvent

public final void rerouteLspEvent(Lsp lsp)
Description copied from interface: DomainChangeListener
Notify the fact that a LSP must be rerouted.

Specified by:
rerouteLspEvent in interface DomainChangeListener
Parameters:
lsp - The LSP to reroute.

lspReservationChangeEvent

public final void lspReservationChangeEvent(Lsp lsp)
Description copied from interface: DomainChangeListener
Notify a LSP reservation change event

Specified by:
lspReservationChangeEvent in interface DomainChangeListener

lspWorkingPathChangeEvent

public final void lspWorkingPathChangeEvent(Lsp lsp)
Description copied from interface: DomainChangeListener
Notify a change in the working path of the lsp. The working path of a lsp is the path used for routing.

Specified by:
lspWorkingPathChangeEvent in interface DomainChangeListener


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