Class PlanIdCacheIndexer
- java.lang.Object
-
- com.atlassian.bamboo.plan.cache.index.PlanIdCacheIndexer
-
- All Implemented Interfaces:
PlanCacheIndexer
,PlanIdCacheIndex
public class PlanIdCacheIndexer extends Object implements PlanCacheIndexer, PlanIdCacheIndex
-
-
Constructor Summary
Constructors Constructor Description PlanIdCacheIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToIndex(@NotNull ImmutableChain chain)
Index plan.void
deindex(@NotNull PlanKey planKey)
void
deindexAll()
Set<PlanKey>
getAllChainKeys()
PlanKey
getChain(long chainId)
PlanKey
getChainOfJob(long jobId)
Stream<PlanKey>
getJobsOfChain(PlanKey chainKey)
void
index(@NotNull ImmutableChain chain)
Reindex plan.
-
-
-
Method Detail
-
index
public void index(@NotNull @NotNull ImmutableChain chain)
Description copied from interface:PlanCacheIndexer
Reindex plan. Implementation might require cleaning up existing content of the index.- Specified by:
index
in interfacePlanCacheIndexer
-
addToIndex
public void addToIndex(@NotNull @NotNull ImmutableChain chain)
Description copied from interface:PlanCacheIndexer
Index plan. This method is used during initialisation. Implementation can assume that plan wasn't previously indexed.- Specified by:
addToIndex
in interfacePlanCacheIndexer
-
deindex
public void deindex(@NotNull @NotNull PlanKey planKey)
- Specified by:
deindex
in interfacePlanCacheIndexer
-
deindexAll
public void deindexAll()
- Specified by:
deindexAll
in interfacePlanCacheIndexer
-
getAllChainKeys
public Set<PlanKey> getAllChainKeys()
- Specified by:
getAllChainKeys
in interfacePlanIdCacheIndex
-
getChain
public PlanKey getChain(long chainId)
- Specified by:
getChain
in interfacePlanIdCacheIndex
-
getChainOfJob
public PlanKey getChainOfJob(long jobId)
- Specified by:
getChainOfJob
in interfacePlanIdCacheIndex
-
getJobsOfChain
public Stream<PlanKey> getJobsOfChain(PlanKey chainKey)
- Specified by:
getJobsOfChain
in interfacePlanIdCacheIndex
-
-