public final class SfcServicePathId extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
allocatePathId(long pathid)
Allocate Pathid.
|
static long |
chechAndAllocatePathId(long pathid)
Check and allocate Pathid if available.
|
static long |
checkAndAllocatePathId()
Generate pathid, check and allocate if available.
|
static long |
checkAndAllocateSymmetricPathId(long pathid)
Check and allocate symmetric Pathid if available.
|
static boolean |
checkSuitablePathId(long pathid)
Check if Pathid is available.
|
static boolean |
freePathId(long pathid)
Free Pathid.
|
static int |
generatePathIdRandomIncrements()
Algorithm to randomize the generation of pathIds.
|
static boolean |
setGenerationAlgorithm(GenerationAlgorithmEnum genAlgorithm)
Set the PathId Generate-algorithm in the data-store.
|
public static int generatePathIdRandomIncrements()
public static long chechAndAllocatePathId(long pathid)
pathid
- Candidate Path Idpublic static long checkAndAllocateSymmetricPathId(long pathid)
pathid
- Candidate Path Idpublic static long checkAndAllocatePathId()
public static boolean checkSuitablePathId(long pathid)
pathid
- Candidate Path Idpublic static boolean allocatePathId(long pathid)
pathid
- Path Id to be allocatedpublic static boolean freePathId(long pathid)
pathid
- Path Id to be freedpublic static boolean setGenerationAlgorithm(GenerationAlgorithmEnum genAlgorithm)
genAlgorithm
- enum string value as taken from service-path-id.yangCopyright © 2017 OpenDaylight. All rights reserved.