| Package | Description |
|---|---|
| com.hazelcast.client.impl.protocol.codec |
Client protocol custom codec implementations
|
| com.hazelcast.client.impl.protocol.template |
Client protocol templates
|
| com.hazelcast.cp.internal |
Contains implementation of the CP subsystem
|
| com.hazelcast.cp.internal.datastructures.atomiclong.proxy |
Contains
IAtomicLong functionality
based on the Raft algorithm. |
| com.hazelcast.cp.internal.datastructures.atomicref.proxy |
Contains
IAtomicReference functionality
based on the Raft algorithm. |
| com.hazelcast.cp.internal.datastructures.countdownlatch.proxy |
Contains
IAtomicLong functionality
based on the Raft algorithm. |
| com.hazelcast.cp.internal.datastructures.lock.proxy |
Contains
ILock functionality
based on the Raft algorithm. |
| com.hazelcast.cp.internal.datastructures.semaphore.proxy |
Contains
ISemaphore functionality
based on the Raft algorithm. |
| com.hazelcast.cp.internal.raftop.metadata |
Contains operations that are used in the Metadata CP group
|
| com.hazelcast.cp.internal.session |
Contains service classes
for the Raft-based
ISemaphore implementation |
| Modifier and Type | Method and Description |
|---|---|
static RaftGroupId |
RaftGroupIdCodec.decode(ClientMessage clientMessage) |
| Modifier and Type | Method and Description |
|---|---|
static int |
RaftGroupIdCodec.calculateDataSize(RaftGroupId groupId) |
static void |
RaftGroupIdCodec.encode(RaftGroupId groupId,
ClientMessage clientMessage) |
| Modifier and Type | Method and Description |
|---|---|
Object |
CPSemaphoreCodecTemplate.acquire(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid,
int permits,
long timeoutMs)
Acquires the requested amount of permits if available, reducing
the number of available permits.
|
Object |
CPAtomicLongCodecTemplate.addAndGet(RaftGroupId groupId,
String name,
long delta)
Atomically adds the given value to the current value.
|
void |
CPAtomicLongCodecTemplate.alter(RaftGroupId groupId,
String name,
Data function,
int returnValueType)
Alters the currently stored value by applying a function on it.
|
Object |
CPAtomicLongCodecTemplate.apply(RaftGroupId groupId,
String name,
Data function)
Applies a function on the value, the actual stored value will not change
|
Object |
CPAtomicRefCodecTemplate.apply(RaftGroupId groupId,
String name,
Data function,
int returnValueType,
boolean alter)
Applies a function on the value
|
Object |
CPSemaphoreCodecTemplate.availablePermits(RaftGroupId groupId,
String name)
Returns the number of available permits.
|
Object |
CPCountDownLatchCodecTemplate.await(RaftGroupId groupId,
String name,
UUID invocationUid,
long timeoutMs)
Causes the current thread to wait until the latch has counted down
to zero, or an exception is thrown, or the specified waiting time
elapses.
|
Object |
CPSemaphoreCodecTemplate.change(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid,
int permits)
Increases or decreases the number of permits by the given value.
|
Object |
CPSessionCodecTemplate.closeSession(RaftGroupId groupId,
long sessionId)
Closes the given session on the given CP group
|
Object |
CPAtomicRefCodecTemplate.compareAndSet(RaftGroupId groupId,
String name,
Data oldValue,
Data newValue)
Alters the currently stored value by applying a function on it.
|
Object |
CPAtomicLongCodecTemplate.compareAndSet(RaftGroupId groupId,
String name,
long expected,
long updated)
Atomically sets the value to the given updated value only if the current
value the expected value.
|
Object |
CPAtomicRefCodecTemplate.contains(RaftGroupId groupId,
String name,
Data value)
Checks if the reference contains the value.
|
void |
CPCountDownLatchCodecTemplate.countDown(RaftGroupId groupId,
String name,
UUID invocationUid,
int expectedRound)
Decrements the count of the latch, releasing all waiting threads if
the count reaches zero.
|
Object |
CPSessionCodecTemplate.createSession(RaftGroupId groupId,
String endpointName)
Creates a session for the caller on the given CP group.
|
Object |
CPGroupCodecTemplate.destroyCPObject(RaftGroupId groupId,
String serviceName,
String objectName)
Destroys the distributed object with the given name on the requested
CP group
|
Object |
CPSemaphoreCodecTemplate.drain(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid)
Acquires all available permits at once and returns immediately.
|
Object |
CPSessionCodecTemplate.generateThreadId(RaftGroupId groupId)
Generates a new ID for the caller thread.
|
Object |
CPAtomicRefCodecTemplate.get(RaftGroupId groupId,
String name)
Gets the current value.
|
Object |
CPAtomicLongCodecTemplate.get(RaftGroupId groupId,
String name)
Gets the current value.
|
Object |
CPAtomicLongCodecTemplate.getAndAdd(RaftGroupId groupId,
String name,
long delta)
Atomically adds the given value to the current value.
|
Object |
CPAtomicLongCodecTemplate.getAndSet(RaftGroupId groupId,
String name,
long newValue)
Atomically sets the given value and returns the old value.
|
Object |
CPCountDownLatchCodecTemplate.getCount(RaftGroupId groupId,
String name)
Returns the current count.
|
Object |
CPFencedLockCodecTemplate.getLockOwnership(RaftGroupId groupId,
String name)
Returns current lock ownership status of the given FencedLock instance.
|
Object |
CPCountDownLatchCodecTemplate.getRound(RaftGroupId groupId,
String name)
Returns the current round.
|
Object |
CPSessionCodecTemplate.heartbeatSession(RaftGroupId groupId,
long sessionId)
Commits a heartbeat for the given session on the given cP group and
extends its session expiration time.
|
Object |
CPSemaphoreCodecTemplate.init(RaftGroupId groupId,
String name,
int permits)
Initializes the ISemaphore instance with the given permit number, if not
initialized before.
|
Object |
CPFencedLockCodecTemplate.lock(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid)
Acquires the given FencedLock on the given CP group.
|
void |
ResponseTemplate.RaftGroupId(RaftGroupId groupId) |
Object |
CPSemaphoreCodecTemplate.release(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid,
int permits)
Releases the given number of permits and increases the number of
available permits by that amount.
|
Object |
CPAtomicRefCodecTemplate.set(RaftGroupId groupId,
String name,
Data newValue,
boolean returnOldValue)
Atomically sets the given value
|
Object |
CPFencedLockCodecTemplate.tryLock(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid,
long timeoutMs)
Attempts to acquire the given FencedLock on the given CP group.
|
Object |
CPCountDownLatchCodecTemplate.trySetCount(RaftGroupId groupId,
String name,
int count)
Sets the count to the given value if the current count is zero.
|
Object |
CPFencedLockCodecTemplate.unlock(RaftGroupId groupId,
String name,
long sessionId,
long threadId,
UUID invocationUid)
Unlocks the given FencedLock on the given CP group.
|
| Modifier and Type | Field and Description |
|---|---|
static RaftGroupId |
MetadataRaftGroupManager.INITIAL_METADATA_GROUP_ID |
| Modifier and Type | Method and Description |
|---|---|
RaftGroupId |
RaftService.createRaftGroupForProxy(String name) |
RaftGroupId |
RaftService.getGroupIdForProxy(String name) |
RaftGroupId |
CPGroupInfo.id() |
| Modifier and Type | Method and Description |
|---|---|
ICompletableFuture<RaftGroupId> |
RaftInvocationManager.createRaftGroup(String groupName) |
ICompletableFuture<RaftGroupId> |
RaftInvocationManager.createRaftGroup(String groupName,
int groupSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
MetadataRaftGroupManager.setActiveMembers(RaftGroupId metadataGroupId,
Collection<CPMemberInfo> members) |
| Constructor and Description |
|---|
CPGroupInfo(RaftGroupId id,
Collection<CPMemberInfo> members) |
| Constructor and Description |
|---|
RaftAtomicLongProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Constructor and Description |
|---|
RaftAtomicRefProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Constructor and Description |
|---|
RaftCountDownLatchProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Constructor and Description |
|---|
AbstractRaftFencedLockProxy(AbstractProxySessionManager sessionManager,
RaftGroupId groupId,
String proxyName,
String objectName) |
RaftFencedLockProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Constructor and Description |
|---|
RaftSessionAwareSemaphoreProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
RaftSessionlessSemaphoreProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Constructor and Description |
|---|
SendActiveCPMembersOp(RaftGroupId metadataGroupId,
Collection<CPMemberInfo> members) |
| Modifier and Type | Field and Description |
|---|---|
protected RaftGroupId |
SessionAwareProxy.groupId |
| Modifier and Type | Method and Description |
|---|---|
RaftGroupId |
SessionAwareProxy.getGroupId() |
| Modifier and Type | Method and Description |
|---|---|
Map<RaftGroupId,ICompletableFuture<Object>> |
AbstractProxySessionManager.shutdown()
Invokes a shutdown call on server to close all existing sessions.
|
| Modifier and Type | Method and Description |
|---|---|
long |
AbstractProxySessionManager.acquireSession(RaftGroupId groupId)
Increments acquire count of the session.
|
long |
AbstractProxySessionManager.acquireSession(RaftGroupId groupId,
int count)
Increments acquire count of the session.
|
protected ICompletableFuture<Object> |
ProxySessionManagerService.closeSession(RaftGroupId groupId,
Long sessionId) |
protected abstract ICompletableFuture<Object> |
AbstractProxySessionManager.closeSession(RaftGroupId groupId,
Long sessionId)
Closes the given session on the Raft group
|
protected long |
ProxySessionManagerService.generateThreadId(RaftGroupId groupId) |
protected abstract long |
AbstractProxySessionManager.generateThreadId(RaftGroupId groupId)
Generates a cluster-wide unique thread id for the caller
|
protected Long |
SessionAwareProxy.getOrCreateUniqueThreadId(RaftGroupId groupId) |
Long |
AbstractProxySessionManager.getOrCreateUniqueThreadId(RaftGroupId groupId) |
long |
AbstractProxySessionManager.getSession(RaftGroupId groupId)
Returns id of the session opened for the given Raft group.
|
long |
AbstractProxySessionManager.getSessionAcquireCount(RaftGroupId groupId,
long sessionId) |
protected ICompletableFuture<Object> |
ProxySessionManagerService.heartbeat(RaftGroupId groupId,
long sessionId) |
protected abstract ICompletableFuture<Object> |
AbstractProxySessionManager.heartbeat(RaftGroupId groupId,
long sessionId)
Commits a heartbeat for the session on the Raft group
|
void |
AbstractProxySessionManager.invalidateSession(RaftGroupId groupId,
long id)
Invalidates the given session.
|
void |
AbstractProxySessionManager.releaseSession(RaftGroupId groupId,
long id)
Decrements acquire count of the session.
|
void |
AbstractProxySessionManager.releaseSession(RaftGroupId groupId,
long id,
int count)
Decrements acquire count of the session.
|
protected SessionResponse |
ProxySessionManagerService.requestNewSession(RaftGroupId groupId) |
protected abstract SessionResponse |
AbstractProxySessionManager.requestNewSession(RaftGroupId groupId)
Creates a new session on the Raft group
|
| Constructor and Description |
|---|
SessionAwareProxy(AbstractProxySessionManager sessionManager,
RaftGroupId groupId) |
Copyright © 2019. All Rights Reserved.