Index
All Classes and Interfaces|All Packages
A
- AVERAGE_HOLD_TIME_MILLIS - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The average length of time, in milliseconds, that the lock is held after it has been acquired.
- AVERAGE_WAIT_TIME_MILLIS - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The average length of time, in milliseconds, that threads have had to block waiting to acquire the lock, whether they were ultimately successful or not.
C
- ClusterLockStatus - Class in com.atlassian.beehive.core
- ClusterLockStatus(String, String, long) - Constructor for class com.atlassian.beehive.core.ClusterLockStatus
- com.atlassian.beehive.core - package com.atlassian.beehive.core
- com.atlassian.beehive.core.stats - package com.atlassian.beehive.core.stats
- COUNTER - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsType
-
A statistic that counts the number of times an event has occurred, such as the number of times that a given lock has been acquired.
- createLock(String, String) - Method in class com.atlassian.beehive.core.LockRegistry
-
Creates a new cluster lock with the given name.
D
- DelegatingClusterLockService - Class in com.atlassian.beehive.core
-
A cluster lock service that delegates all requests to another cluster lock service.
- DelegatingClusterLockService(ClusterLockService) - Constructor for class com.atlassian.beehive.core.DelegatingClusterLockService
E
- ERROR - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that a request to acquire/release/renew the lock failed because of a non-state-related exception
F
- FAIL_LOCAL - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that a request to acquire the lock failed because it was already held by another thread on the same node.
- FAIL_REMOTE - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that a request to acquire the lock failed because it was already held by another node in the cluster.
- FORCED_UNLOCK - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that a lock has had to be "recovered" by forcibly unlocking it.
G
- GAUGE - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsType
-
A statistic that represents something that represents a varying measurement, such as the number of threads that are currently waiting to acquire a given lock.
- getAllKnownClusterLocks() - Method in class com.atlassian.beehive.core.LockRegistry
-
A delegate implementation for
ManagedClusterLockService.getAllKnownClusterLocks()that will return all registeredManagedClusterLockinstances that have previously been returned by calls toLockRegistry.getLockForName(String). - getAllKnownClusterLocks() - Method in interface com.atlassian.beehive.core.ManagedClusterLockService
-
Returns all the cluster locks that are currently known to this cluster lock service.
- getClusterLockStatus() - Method in interface com.atlassian.beehive.core.ManagedClusterLock
-
Returns the status of this lock.
- getLabel() - Method in enum com.atlassian.beehive.core.stats.StatisticsKey
-
Returns the label for this statistics key.
- getLockedByNode() - Method in class com.atlassian.beehive.core.ClusterLockStatus
- getLockForName(String) - Method in class com.atlassian.beehive.core.DelegatingClusterLockService
- getLockForName(String) - Method in class com.atlassian.beehive.core.LockRegistry
-
A delegate implementation for
ClusterLockService.getLockForName(String)that will ensure that the same lock instance is returned on every call. - getLockName() - Method in class com.atlassian.beehive.core.ClusterLockStatus
- getName() - Method in interface com.atlassian.beehive.core.ManagedClusterLock
-
Returns the name of this cluster lock.
- getStatistics() - Method in interface com.atlassian.beehive.core.ManagedClusterLock
-
Returns the currently available statistics for this lock.
- getStatusesOfAllHeldClusterLocks() - Method in class com.atlassian.beehive.core.LockRegistry
-
A delegate implementation for
ManagedClusterLockService.getStatusesOfAllHeldClusterLocks()that will returnClusterLockStatusfor every lock being held. - getStatusesOfAllHeldClusterLocks() - Method in interface com.atlassian.beehive.core.ManagedClusterLockService
-
Returns lock status of every cluster lock being held.
- getType() - Method in enum com.atlassian.beehive.core.stats.StatisticsKey
-
Returns the type of statistic that this is.
- getUpdateTime() - Method in class com.atlassian.beehive.core.ClusterLockStatus
I
- isLocked() - Method in interface com.atlassian.beehive.core.ManagedClusterLock
L
- LAST_ACCESS - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when this lock was last accessed.
- LAST_ERROR - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when a last request to acquire/release/renew the lock failed because of a non-state-related exception
- LAST_FAIL_REMOTE - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when a request to acquire the lock failed because it was already held by another node in the cluster.
- LAST_LOCK - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when this lock was last successfully locked.
- LAST_RENEWAL - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when this lock's state was last renewed.
- LAST_STATE_ERROR - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when a last request to acquire/release/renew the lock failed because of a lock state state exception
- LAST_UNLOCK - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
A timestamp, expressed in millis since the epoch, when this lock was last unlocked.
- LockRegistry<T extends ManagedClusterLock> - Class in com.atlassian.beehive.core
-
Provides a lock registry for
ManagedClusterLockServiceimplementations. - LockRegistry() - Constructor for class com.atlassian.beehive.core.LockRegistry
M
- ManagedClusterLock - Interface in com.atlassian.beehive.core
-
Decorates a cluster lock with management concerns, such as its name and statistics.
- ManagedClusterLockService - Interface in com.atlassian.beehive.core
-
Decorates a cluster lock service with management concerns, such as instrumentation.
- MetricsBuilderFactory - Class in com.atlassian.beehive.core.stats
-
Util class for constructing metrics builder to be used for measuring lock timer metrics to JMX.
N
- newClusterLockAwaitedMetricsBuilder(String, String, String) - Static method in class com.atlassian.beehive.core.stats.MetricsBuilderFactory
-
Constructs
Metrics.Builderto use for measuring how long a cluster lock was awaited by a plugin. - newClusterLockHeldMetricsBuilder(String, String, String) - Static method in class com.atlassian.beehive.core.stats.MetricsBuilderFactory
-
Constructs
Metrics.Builderto use for measuring how long a cluster lock was held by a plugin.
S
- SORT_BY_LABEL - Static variable in enum com.atlassian.beehive.core.stats.StatisticsKey
-
Sorts statistics keys by
label. - STATE_ERROR - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that a request to acquire/release/renew the lock failed because of a lock state related exception
- StatisticsKey - Enum in com.atlassian.beehive.core.stats
-
Represents some type of information that might be collected for a
ManagedClusterLock. - StatisticsType - Enum in com.atlassian.beehive.core.stats
-
The type of statistic that a
StatisticsKeyrepresents. - SUCCESSFUL_LOCKS - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that the lock has been successfully acquired.
- SUCCESSFUL_UNLOCKS - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The total number of times that the lock has been released(regardless of exceptions that happended in the process).
V
- valueOf(String) - Static method in enum com.atlassian.beehive.core.stats.StatisticsKey
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.atlassian.beehive.core.stats.StatisticsType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.atlassian.beehive.core.stats.StatisticsKey
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.atlassian.beehive.core.stats.StatisticsType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WAIT_QUEUE_LENGTH - Enum constant in enum com.atlassian.beehive.core.stats.StatisticsKey
-
The number of threads that are currently waiting on this lock.
All Classes and Interfaces|All Packages