@MessageBundle(projectCode="JBAS")
public interface ClusteringApiMessages
Modifier and Type | Field and Description |
---|---|
static ClusteringApiMessages |
MESSAGES
The messages.
|
Modifier and Type | Method and Description |
---|---|
String |
cannotAcquireHeldLock()
A message indicating that a lock could not be acquired because it's held by an unknown.
|
String |
cannotAcquireHeldLock(ClusterNode node)
A message indicating that a lock could not be acquired because it's held by the node.
|
String |
cannotAcquireLock(Serializable lockName)
A message indicating a lock could not be acquired from a cluster.
|
RuntimeException |
caughtRemoteInvocationThrowable(Throwable cause)
Creates an exception indicating a raw throwable was caught on a remote invocation.
|
IllegalArgumentException |
incompatibleDispatcher(String dispatcherName,
GroupRpcDispatcher dispatcher,
String notifierName,
GroupMembershipNotifier notifier)
Creates an exception indicating an incompatible dispatcher.
|
IllegalStateException |
invalidMethodCall(String firstMethod,
String secondMethod)
Creates an exception indicating the first method must be called before the second method.
|
IllegalArgumentException |
nullVar(String name)
Creates an exception indicating a variable is
null . |
IllegalStateException |
receivedUnlockForRemoteNode(ClusterNode caller)
Creates an exception indicating an unlock should not be invoked for remote nodes.
|
RuntimeException |
remoteLockReleaseFailure(Throwable cause)
Creates an exception indicating the failure to release a remote lock.
|
IllegalStateException |
varNotSet(String name,
String methodName)
Creates an exception indicating the variable represented the
name parameter must be set before invoking
the method represented by the methodName . |
static final ClusteringApiMessages MESSAGES
@Message(id=10220, value="Caught raw Throwable on remote invocation") RuntimeException caughtRemoteInvocationThrowable(@Cause Throwable cause)
cause
- the cause of the error.RuntimeException
for the error.@Message(id=10221, value="%s is null") IllegalArgumentException nullVar(String name)
null
.name
- the name of the variable.IllegalArgumentException
for the error.@Message(id=10222, value="Must set %s before calling %s") IllegalStateException varNotSet(String name, String methodName)
name
parameter must be set before invoking
the method represented by the methodName
.name
- the variable name.methodName
- the method name.IllegalStateException
for the error.@Message(id=10223, value="Cannot acquire lock %s from cluster") String cannotAcquireLock(Serializable lockName)
lockName
- the lock name.@Message(id=10224, value="Unable to acquire lock as it is held by unknown") String cannotAcquireHeldLock()
@Message(id=10225, value="Unable to acquire lock as it is held by %s") String cannotAcquireHeldLock(ClusterNode node)
node
- the node that holds the lock.@Message(id=10226, value="%s %s is not compatible with %s %s") IllegalArgumentException incompatibleDispatcher(String dispatcherName, GroupRpcDispatcher dispatcher, String notifierName, GroupMembershipNotifier notifier)
dispatcherName
- the dispatcher class name.dispatcher
- the dispatcher.notifierName
- the notifier class name.notifier
- the notifier.IllegalArgumentException
for the error.@Message(id=10227, value="Must call %s before first call to %s") IllegalStateException invalidMethodCall(String firstMethod, String secondMethod)
firstMethod
- the first method that should be called.secondMethod
- the second method.IllegalStateException
for the error.@Message(id=10228, value="Should not receive unlock calls for remote node %s") IllegalStateException receivedUnlockForRemoteNode(ClusterNode caller)
caller
- the caller.IllegalStateException
for the error.@Message(id=10229, value="Failed releasing remote lock") RuntimeException remoteLockReleaseFailure(@Cause Throwable cause)
cause
- the cause of the error.RuntimeException
for the error.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.