public class ReprioritizationTracker extends Object implements IReprioritizationTracker
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ReprioritizationTracker.PreloadedValues
A set of preloaded values
|
protected static class |
ReprioritizationTracker.PreloadRequest
A preload request
|
| Modifier and Type | Field and Description |
|---|---|
static String |
_rcsid |
protected IBinManager |
binManager |
protected ILockManager |
lockManager
Lock manager
|
protected Map<String,ReprioritizationTracker.PreloadedValues> |
preloadedValues
Preload values
|
protected Map<String,ReprioritizationTracker.PreloadRequest> |
preloadRequests
Preload requests
|
protected static String |
trackerMinimumDepthResource |
protected static String |
trackerProcessIDResource |
protected static String |
trackerReproIDResource |
protected static String |
trackerWriteLock |
| Constructor and Description |
|---|
ReprioritizationTracker(IThreadContext threadContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPreloadRequest(String binName,
double weightedMinimumDepth)
Note preload amounts.
|
void |
assessMinimumDepth(Double[] binNamesSet)
Assess the current minimum depth.
|
void |
clearPreloadedValues()
Clear remaining preloaded values.
|
void |
clearPreloadRequests()
Clear any preload requests.
|
void |
doneReprioritization(String reproID)
Complete a reprioritization activity.
|
double |
getIncrementBinValue(String binName,
double weightedMinimumDepth)
Get a bin value.
|
double |
getMinimumDepth()
Retrieve current minimum depth.
|
String |
isSpecifiedProcessReprioritizing(String processID)
Check if the specified processID is the one performing reprioritization.
|
void |
preloadBinValues()
Preload bin values.
|
protected double |
readMinimumDepth()
Read minimum depth.
|
protected String |
readProcessID()
Read process ID.
|
protected String |
readReproID()
Read repriotization ID.
|
void |
startReprioritization(String processID,
String reproID)
Start a reprioritization activity.
|
protected void |
writeMinimumDepth(double depth)
Write minimum depth.
|
protected void |
writeProcessID(String processID)
Write process ID.
|
protected void |
writeReproID(String reproID)
Write repro ID.
|
public static final String _rcsid
protected static final String trackerWriteLock
protected static final String trackerProcessIDResource
protected static final String trackerReproIDResource
protected static final String trackerMinimumDepthResource
protected final ILockManager lockManager
protected final IBinManager binManager
protected final Map<String,ReprioritizationTracker.PreloadRequest> preloadRequests
protected final Map<String,ReprioritizationTracker.PreloadedValues> preloadedValues
public ReprioritizationTracker(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFExceptionpublic void startReprioritization(String processID, String reproID) throws ManifoldCFException
startReprioritization in interface IReprioritizationTrackerprioritizationTime - is the timestamp of the prioritization.processID - is the process ID of the process performing/waiting for the prioritization
to complete.reproID - is the reprocessing thread IDManifoldCFExceptionpublic void doneReprioritization(String reproID) throws ManifoldCFException
doneReprioritization in interface IReprioritizationTrackerprocessID - is the process ID of the process completing the prioritization.ManifoldCFExceptionpublic String isSpecifiedProcessReprioritizing(String processID) throws ManifoldCFException
isSpecifiedProcessReprioritizing in interface IReprioritizationTrackerprocessID - is the process ID to check.ManifoldCFExceptionpublic void assessMinimumDepth(Double[] binNamesSet) throws ManifoldCFException
assessMinimumDepth in interface IReprioritizationTrackerbinNamesSet - is the current set of priorities we see on the queuing operation.ManifoldCFExceptionpublic double getMinimumDepth()
throws ManifoldCFException
getMinimumDepth in interface IReprioritizationTrackerManifoldCFExceptionpublic void addPreloadRequest(String binName, double weightedMinimumDepth)
addPreloadRequest in interface IReprioritizationTrackerpublic void preloadBinValues()
throws ManifoldCFException
preloadBinValues in interface IReprioritizationTrackerManifoldCFExceptionpublic void clearPreloadRequests()
clearPreloadRequests in interface IReprioritizationTrackerpublic void clearPreloadedValues()
clearPreloadedValues in interface IReprioritizationTrackerpublic double getIncrementBinValue(String binName, double weightedMinimumDepth) throws ManifoldCFException
getIncrementBinValue in interface IReprioritizationTrackerbinName - is the bin name.weightedMinimumDepth - is the minimum depth to use.ManifoldCFExceptionprotected String readProcessID() throws ManifoldCFException
ManifoldCFExceptionprotected void writeProcessID(String processID) throws ManifoldCFException
processID - is the process ID to write.ManifoldCFExceptionprotected String readReproID() throws ManifoldCFException
ManifoldCFExceptionprotected void writeReproID(String reproID) throws ManifoldCFException
reproID - is the repro ID to write.ManifoldCFExceptionprotected double readMinimumDepth()
throws ManifoldCFException
ManifoldCFExceptionprotected void writeMinimumDepth(double depth)
throws ManifoldCFException
the - minimum depth.ManifoldCFException