Package jetbrains.buildServer.serverSide
Class CurrentNodeInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.CurrentNodeInfo
-
- Direct Known Subclasses:
CurrentNodeInfo
public class CurrentNodeInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEAMCITY_NODE_ID_PROP
static String
TEAMCITY_ROOT_URL_PROP
-
Constructor Summary
Constructors Constructor Description CurrentNodeInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearThreadGroupSettings()
static String
getNodeId()
static String
getStartupPropertiesRootURL()
static Set<NodeResponsibility>
getSupportedResponsibilities()
static void
init()
static void
init(String nodeId, String nodeUrl)
static boolean
isMainNode()
static boolean
isNodeIdSpecified()
static boolean
isSecondaryNode()
static void
setMainNode(boolean isMainServer)
static void
setThreadGroupSettings(ThreadGroup group, String nodeId)
static Heartbeat.AppType
toHeartbeatType()
-
-
-
Field Detail
-
TEAMCITY_NODE_ID_PROP
public static final String TEAMCITY_NODE_ID_PROP
- See Also:
- Constant Field Values
-
TEAMCITY_ROOT_URL_PROP
public static final String TEAMCITY_ROOT_URL_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static void init()
-
isNodeIdSpecified
public static boolean isNodeIdSpecified()
-
getNodeId
@NotNull public static String getNodeId()
-
isSecondaryNode
public static boolean isSecondaryNode()
-
isMainNode
public static boolean isMainNode()
-
getSupportedResponsibilities
@NotNull public static Set<NodeResponsibility> getSupportedResponsibilities()
- Returns:
- the list of responsibilities supported by this node
-
getStartupPropertiesRootURL
@Nullable public static String getStartupPropertiesRootURL()
- Returns:
- explicitly root URL defined via startup properties (system property or teamcity-startup.properties file)
-
toHeartbeatType
@NotNull public static Heartbeat.AppType toHeartbeatType()
-
setThreadGroupSettings
@TestOnly public static void setThreadGroupSettings(@NotNull ThreadGroup group, @NotNull String nodeId)
-
clearThreadGroupSettings
@TestOnly public static void clearThreadGroupSettings()
-
setMainNode
public static void setMainNode(boolean isMainServer)
-
-