org.sdnplatform.sync.internal.config
Class SyncStoreCCProvider

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

public class SyncStoreCCProvider
extends java.lang.Object
implements IClusterConfigProvider

Configure sync service from a persistent sync store, and support bootstrapping without manually configuring it.

Author:
readams

Nested Class Summary
protected  class SyncStoreCCProvider.BootstrapTask
           
protected  class SyncStoreCCProvider.ShortListener
           
protected  class SyncStoreCCProvider.StringListener
           
 
Field Summary
static java.lang.String AUTH_SCHEME
           
static java.lang.String KEY_STORE_PASSWORD
           
static java.lang.String KEY_STORE_PATH
           
static java.lang.String LOCAL_NODE_HOSTNAME
           
static java.lang.String LOCAL_NODE_ID
           
static java.lang.String LOCAL_NODE_IFACE
           
static java.lang.String LOCAL_NODE_PORT
           
protected static org.slf4j.Logger logger
           
static java.lang.String SEEDS
           
static java.lang.String SYSTEM_NODE_STORE
           
static java.lang.String SYSTEM_UNSYNC_STORE
           
 
Constructor Summary
SyncStoreCCProvider()
           
 
Method Summary
 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

SYSTEM_NODE_STORE

public static final java.lang.String SYSTEM_NODE_STORE

SYSTEM_UNSYNC_STORE

public static final java.lang.String SYSTEM_UNSYNC_STORE

SEEDS

public static final java.lang.String SEEDS
See Also:
Constant Field Values

LOCAL_NODE_ID

public static final java.lang.String LOCAL_NODE_ID
See Also:
Constant Field Values

LOCAL_NODE_IFACE

public static final java.lang.String LOCAL_NODE_IFACE
See Also:
Constant Field Values

LOCAL_NODE_HOSTNAME

public static final java.lang.String LOCAL_NODE_HOSTNAME
See Also:
Constant Field Values

LOCAL_NODE_PORT

public static final java.lang.String LOCAL_NODE_PORT
See Also:
Constant Field Values

AUTH_SCHEME

public static final java.lang.String AUTH_SCHEME
See Also:
Constant Field Values

KEY_STORE_PATH

public static final java.lang.String KEY_STORE_PATH
See Also:
Constant Field Values

KEY_STORE_PASSWORD

public static final java.lang.String KEY_STORE_PASSWORD
See Also:
Constant Field Values
Constructor Detail

SyncStoreCCProvider

public SyncStoreCCProvider()
Method Detail

init

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

Specified by:
init in interface IClusterConfigProvider
Throws:
SyncException

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