public static class GUIDHelper.GUIDResolver extends Base
Base.LoggingWriter, Base.StackFrame
Modifier and Type | Field | Description |
---|---|---|
protected Map<Member,String[]> |
f_mapGUID |
The Map of registered GUIDs, keyed by member.
|
protected String[] |
m_asGUIDNewest |
The resolved list of the newest GUIDs, indexed by partition-id.
|
protected int |
m_cPartitions |
The partition-count.
|
protected boolean |
m_fSharedStorage |
Specifies whether or not the storage is shared.
|
protected Map<Member,PartitionSet> |
m_mapResolved |
The resolved map of members to the associated set of partitions.
|
protected PartitionSet |
m_partsUnresolved |
The PartitionSet containing partitions that don't have corresponding GUIDs.
|
Constructor | Description |
---|---|
GUIDResolver(int cPartitions) |
Construct a GUIDResolver for the specified partition-count.
|
Modifier and Type | Method | Description |
---|---|---|
Map<Integer,String[]> |
getMemberGUIDs() |
Return a Map of member id to an array of GUIDs.
|
String |
getNewestGUID(int nPartition) |
Return the newest GUID for the specified partition.
|
String[] |
getNewestGUIDs(PartitionSet parts) |
Return the list of the newest GUIDs for the specified set of partitions.
|
PartitionSet |
getUnresolvedPartitions() |
Retrieve a PartitionSet containing all partitions that don't have any
corresponding GUIDs.
|
boolean |
isSharedStorage() |
Check whether ior not all the partition stores visible by every member.
|
void |
registerGUIDs(Member member,
String[] asGUID) |
Register the specified list of GUIDs from the specified member.
|
Map<Member,PartitionSet> |
resolve() |
Resolve the registered GUIDs and return a map associating each member
to the set of partitions that it had registered as having the newest
GUID for.
|
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
protected final Map<Member,String[]> f_mapGUID
protected int m_cPartitions
protected String[] m_asGUIDNewest
protected Map<Member,PartitionSet> m_mapResolved
protected PartitionSet m_partsUnresolved
protected boolean m_fSharedStorage
public GUIDResolver(int cPartitions)
cPartitions
- the partition-countpublic void registerGUIDs(Member member, String[] asGUID)
member
- the memberasGUID
- the list of GUIDspublic String getNewestGUID(int nPartition)
nPartition
- the partition to return a GUID forpublic String[] getNewestGUIDs(PartitionSet parts)
parts
- the set of partitions to return GUIDs forpublic PartitionSet getUnresolvedPartitions()
public Map<Integer,String[]> getMemberGUIDs()
public boolean isSharedStorage()
public Map<Member,PartitionSet> resolve()