public final class SfcProviderServiceFunctionGroupAPI extends Object
It is normally called from onDataChanged() through a executor service. We need to use an executor service because we can not operate on a datastore while on onDataChanged() context.
Modifier and Type | Method and Description |
---|---|
protected static boolean |
addServiceFunctionToGroup(String serviceFunctionGroupName,
SfName serviceFunctionName)
Adds a SF to SFG.
|
protected static boolean |
deleteServiceFunctionGroup(String serviceFunctionGroupName)
Deletes a SFG from the datastore.
|
protected static ServiceFunctionGroup |
getServiceFunctionGroupByType(SftTypeName serviceFunctionType)
Reads a SFG from the datastore.
|
static List<String> |
getSfgNameList(ServiceFunctionChain serviceFunctionChain) |
static boolean |
putServiceFunctionGroup(ServiceFunctionGroup sfg)
Puts a SFG in the datastore.
|
static ServiceFunctionGroup |
readServiceFunctionGroup(String serviceFunctionGroupName)
Reads a SFG from the datastore.
|
protected static boolean |
removeServiceFunctionFromGroup(String serviceFunctionGroupName,
SfName serviceFunctionName)
Removes a SF from SFG.
|
public static List<String> getSfgNameList(ServiceFunctionChain serviceFunctionChain)
public static ServiceFunctionGroup readServiceFunctionGroup(String serviceFunctionGroupName)
serviceFunctionGroupName
- nameprotected static ServiceFunctionGroup getServiceFunctionGroupByType(SftTypeName serviceFunctionType)
serviceFunctionType
- function typepublic static boolean putServiceFunctionGroup(ServiceFunctionGroup sfg)
sfg
- the ServiceFunctionGroup to putprotected static boolean deleteServiceFunctionGroup(String serviceFunctionGroupName)
serviceFunctionGroupName
- SFG nameprotected static boolean addServiceFunctionToGroup(String serviceFunctionGroupName, SfName serviceFunctionName)
serviceFunctionGroupName
- SFG nameserviceFunctionName
- name of SF to addCopyright © 2017 OpenDaylight. All rights reserved.