public final class SfcProviderServiceFunctionAPI 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.
ServiceFunctionListener| Modifier and Type | Method and Description |
|---|---|
static boolean |
addPathToServiceFunctionState(RenderedServicePath renderedServicePath)
This method adds a RSP name to the corresponding SF operational state.
|
static boolean |
deleteRspFromServiceFunctionState(RspName rspName)
This method removes the given Rendered Service Path from the all SF
operational states that use it.
|
static boolean |
deleteServiceFunctionState(SfName serviceFunctionName)
This method deletes the operational state for a service function.
|
static boolean |
deleteServicePathFromServiceFunctionState(List<RspName> rspNames)
Delete the given list of RSP from the SFF operational state.
|
static boolean |
deleteServicePathFromServiceFunctionState(SfpName sfpName)
This method removes the given Service Path from the all SF operational
states that use it.
|
static List<RspName> |
getRspsBySfName(SfName serviceFunctionName)
This method reads the operational state for a service function.
|
static boolean |
mergeServiceFunctionState(ServiceFunctionState sfState) |
static boolean |
putServiceFunction(ServiceFunction sf)
This method puts a SF to data store.
|
static boolean |
putServiceFunctionState(ServiceFunctionState sfState)
Add ServiceFunctionState to datastore.
|
static ServiceFunctions |
readAllServiceFunctions() |
static ServiceFunction |
readServiceFunction(SfName serviceFunctionName)
This method reads a SF from the datastore.
|
static SfcSfDescMon |
readServiceFunctionDescriptionMonitor(SfName serviceFunctionName)
This method reads the operational state for a service function.
|
static List<SfServicePath> |
readServiceFunctionState(SfName serviceFunctionName)
This method reads the operational state for a service function.
|
public static List<SfServicePath> readServiceFunctionState(SfName serviceFunctionName)
serviceFunctionName - SF namepublic static List<RspName> getRspsBySfName(SfName serviceFunctionName)
serviceFunctionName - SF namepublic static SfcSfDescMon readServiceFunctionDescriptionMonitor(SfName serviceFunctionName)
serviceFunctionName - SF namepublic static boolean deleteServiceFunctionState(SfName serviceFunctionName)
serviceFunctionName - SF namepublic static boolean addPathToServiceFunctionState(RenderedServicePath renderedServicePath)
renderedServicePath - RSP objectpublic static boolean putServiceFunction(ServiceFunction sf)
sf - Service Functionpublic static boolean putServiceFunctionState(ServiceFunctionState sfState)
sfState - ServiceFunctionState Objectpublic static boolean mergeServiceFunctionState(ServiceFunctionState sfState)
public static ServiceFunction readServiceFunction(SfName serviceFunctionName)
serviceFunctionName - SF namepublic static ServiceFunctions readAllServiceFunctions()
public static boolean deleteServicePathFromServiceFunctionState(SfpName sfpName)
sfpName - SFP namepublic static boolean deleteServicePathFromServiceFunctionState(List<RspName> rspNames)
rspNames - list of RSP names.public static boolean deleteRspFromServiceFunctionState(RspName rspName)
rspName - Rendered Service Path nameCopyright © 2017 OpenDaylight. All rights reserved.