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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeZduInfoImpl(ApplicationState state, String buildNumber, String version, int longRunningTaskCount, int activeUserCount, boolean hasFinalizationTasks, UpgradeFinalizationRun finalizationRun)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActiveUserCount()
Obtains the count of users with non-expired sessions on this node.ApplicationState
getApplicationState()
Obtains the application state of this node.String
getBuildNumber()
Obtains the application build number running on this node.Optional<UpgradeFinalizationRun>
getFinalizationRun()
int
getLongRunningTaskCount()
Obtains the count of all long-running tasks that are currently running on this node.String
getVersion()
Obtains the Confluence version running on this node.boolean
isPendingLocalFinalization()
-
-
-
Constructor Detail
-
NodeZduInfoImpl
public NodeZduInfoImpl(ApplicationState state, String buildNumber, String version, int longRunningTaskCount, int activeUserCount, boolean hasFinalizationTasks, @Nullable UpgradeFinalizationRun finalizationRun)
-
-
Method Detail
-
getApplicationState
public ApplicationState getApplicationState()
Description copied from interface:NodeZduInfo
Obtains the application state of this node.- Specified by:
getApplicationState
in interfaceNodeZduInfo
- Returns:
- the application state
-
getBuildNumber
public String 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
public String 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
public Optional<UpgradeFinalizationRun> getFinalizationRun()
- Specified by:
getFinalizationRun
in interfaceNodeZduInfo
- Returns:
- the most recent finalization run on this node.
-
-