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