Class SemaphoreView
- java.lang.Object
- 
- org.apache.ignite.spi.systemview.view.datastructures.SemaphoreView
 
- 
 public class SemaphoreView extends Object IgniteSemaphorerepresentation for aSystemView.
- 
- 
Field SummaryFields Modifier and Type Field Description protected TdsData structure instance.
 - 
Constructor SummaryConstructors Constructor Description SemaphoreView(org.apache.ignite.internal.processors.datastructures.GridCacheRemovable ds)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longavailablePermits()booleanbroken()booleanfailoverSafe()intgroupId()StringgroupName()booleanhasQueuedThreads()Stringname()intqueueLength()booleanremoved()
 
- 
- 
- 
Method Detail- 
availablePermitspublic long availablePermits() - Returns:
- Number of permits available.
- See Also:
- IgniteSemaphore.availablePermits()
 
 - 
hasQueuedThreadspublic boolean hasQueuedThreads() - Returns:
- Trueif there may be other threads waiting to acquire the lock.
- See Also:
- IgniteSemaphore.hasQueuedThreads()
 
 - 
queueLengthpublic int queueLength() - Returns:
- The estimated number of nodes waiting for this lock.
- See Also:
- IgniteSemaphore.getQueueLength()
 
 - 
failoverSafepublic boolean failoverSafe() - Returns:
- Trueif this semaphore is failover safe.
- See Also:
- IgniteSemaphore.isFailoverSafe()
 
 - 
brokenpublic boolean broken() - Returns:
- Trueif a node failed on this semaphore and- failoverSafe()flag was set to- false,- falseotherwise.
- See Also:
- IgniteSemaphore.isBroken()
 
 - 
namepublic String name() - Returns:
- Name.
 
 - 
groupNamepublic String groupName() - Returns:
- Group name.
 
 - 
groupIdpublic int groupId() - Returns:
- Group id.
 
 - 
removedpublic boolean removed() - Returns:
- Trueis data structure removed.
 
 
- 
 
-