Class GridJobProcessor.PartitionsReservation
- java.lang.Object
-
- org.apache.ignite.internal.processors.job.GridJobProcessor.PartitionsReservation
-
- All Implemented Interfaces:
GridReservable
- Enclosing class:
- GridJobProcessor
public class GridJobProcessor.PartitionsReservation extends Object implements GridReservable
-
-
Constructor Summary
Constructors Constructor Description PartitionsReservation(int[] cacheIds, int partId, AffinityTopologyVersion topVer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getCacheIds()intgetPartId()voidrelease()Releases.booleanreserve()Reserves.
-
-
-
Constructor Detail
-
PartitionsReservation
public PartitionsReservation(int[] cacheIds, int partId, AffinityTopologyVersion topVer)- Parameters:
cacheIds- Cache identifiers array.partId- Partition number.topVer- Affinity topology version.
-
-
Method Detail
-
getCacheIds
public int[] getCacheIds()
- Returns:
- Caches identifiers.
-
getPartId
public int getPartId()
- Returns:
- Partition id.
-
reserve
public boolean reserve()
Reserves.- Specified by:
reservein interfaceGridReservable- Returns:
trueIf reserved successfully.
-
release
public void release()
Releases.- Specified by:
releasein interfaceGridReservable
-
-