org.sdnplatform.sync.internal.config
Class DelegatingCCProvider

java.lang.Object
  extended by org.sdnplatform.sync.internal.config.DelegatingCCProvider
All Implemented Interfaces:
IClusterConfigProvider

public class DelegatingCCProvider
extends java.lang.Object
implements IClusterConfigProvider

Delegate cluster configuration to a list of providers

Author:
readams

Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
DelegatingCCProvider()
           
 
Method Summary
 void addProvider(IClusterConfigProvider provider)
           
 ClusterConfig getConfig()
          Get the ClusterConfig that represents the current cluster
 void init(SyncManager syncManager, FloodlightModuleContext context)
          Initialize the provider with the configuration parameters from the Floodlight module context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

DelegatingCCProvider

public DelegatingCCProvider()
Method Detail

addProvider

public void addProvider(IClusterConfigProvider provider)

init

public void init(SyncManager syncManager,
                 FloodlightModuleContext context)
Description copied from interface: IClusterConfigProvider
Initialize the provider with the configuration parameters from the Floodlight module context.

Specified by:
init in interface IClusterConfigProvider

getConfig

public ClusterConfig getConfig()
                        throws SyncException
Description copied from interface: IClusterConfigProvider
Get the ClusterConfig that represents the current cluster

Specified by:
getConfig in interface IClusterConfigProvider
Returns:
the ClusterConfig object
Throws:
SyncException