Package com.tangosol.net
Class AbstractServiceLoadBalancer<S extends Service,T extends ServiceLoad>
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.AbstractServiceLoadBalancer<S,T>
- All Implemented Interfaces:
ServiceLoadBalancer<S,
,T> Comparator<T>
- Direct Known Subclasses:
SimpleServiceLoadBalancer
public abstract class AbstractServiceLoadBalancer<S extends Service,T extends ServiceLoad>
extends Base
implements ServiceLoadBalancer<S,T>
An abstract base for ServiceLoadBalancer implementations.
- Author:
- jh 2010.12,07
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Member
Return the Member object representing the local cluster member.Obtain the containing Service.void
Called by the Service exactly once on this object as part of its initialization.protected boolean
isLocalMember
(Member member) Check whether the specified Member object represents the local member of the cluster.Methods inherited from class com.tangosol.util.Base
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface com.tangosol.net.ServiceLoadBalancer
compare, getMemberList, update
-
Field Details
-
Constructor Details
-
Method Details
-
init
Called by the Service exactly once on this object as part of its initialization.- Specified by:
init
in interfaceServiceLoadBalancer<S extends Service,
T extends ServiceLoad> - Parameters:
service
- the containing Service
-
getLocalMember
Return the Member object representing the local cluster member.- Returns:
- the Member object representing the local cluster member
-
isLocalMember
Check whether the specified Member object represents the local member of the cluster.- Parameters:
member
- the Member object in question- Returns:
- true iff the Member object represents the local cluster member
-
getService
Obtain the containing Service.- Returns:
- the containing Service
-