Class NodeZduInfoImpl
java.lang.Object
com.atlassian.confluence.impl.cluster.NodeZduInfoImpl
- All Implemented Interfaces:
NodeZduInfo
,Serializable
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public class NodeZduInfoImpl
extends Object
implements NodeZduInfo, Serializable
- Since:
- 7.14
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNodeZduInfoImpl
(ApplicationState state, String buildNumber, String version, int longRunningTaskCount, int activeUserCount, boolean hasFinalizationTasks, @Nullable UpgradeFinalizationRun finalizationRun) -
Method Summary
Modifier and TypeMethodDescriptionint
Obtains the count of users with non-expired sessions on this node.Obtains the application state of this node.Obtains the application build number running on this node.int
Obtains the count of all long-running tasks that are currently running on this node.Obtains the Confluence version running on this node.boolean
-
Constructor Details
-
NodeZduInfoImpl
public NodeZduInfoImpl(ApplicationState state, String buildNumber, String version, int longRunningTaskCount, int activeUserCount, boolean hasFinalizationTasks, @Nullable UpgradeFinalizationRun finalizationRun)
-
-
Method Details
-
getApplicationState
Description copied from interface:NodeZduInfo
Obtains the application state of this node.- Specified by:
getApplicationState
in interfaceNodeZduInfo
- Returns:
- the application state
-
getBuildNumber
Description copied from interface:NodeZduInfo
Obtains the application build number running on this node.- Specified by:
getBuildNumber
in interfaceNodeZduInfo
- Returns:
- the build number
-
getVersion
Description copied from interface:NodeZduInfo
Obtains the Confluence version running on this node.- Specified by:
getVersion
in interfaceNodeZduInfo
- Returns:
- the Confluence version
-
getLongRunningTaskCount
public int getLongRunningTaskCount()Description copied from interface:NodeZduInfo
Obtains the count of all long-running tasks that are currently running on this node.- Specified by:
getLongRunningTaskCount
in interfaceNodeZduInfo
- Returns:
- the task count (0 or positive)
-
getActiveUserCount
public int getActiveUserCount()Description copied from interface:NodeZduInfo
Obtains the count of users with non-expired sessions on this node.- Specified by:
getActiveUserCount
in interfaceNodeZduInfo
- Returns:
- the user count (0 or positive)
-
isPendingLocalFinalization
public boolean isPendingLocalFinalization()- Specified by:
isPendingLocalFinalization
in interfaceNodeZduInfo
- Returns:
- true if the node is pending local finalization.
-
getFinalizationRun
- Specified by:
getFinalizationRun
in interfaceNodeZduInfo
- Returns:
- the most recent finalization run on this node.
-