Class CurrentNodeInfo

    • Constructor Detail

      • CurrentNodeInfo

        public CurrentNodeInfo()
    • Method Detail

      • init

        public static void init()
      • init

        public static void init​(@Nullable
                                String nodeId,
                                @Nullable
                                String nodeUrl)
      • 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)
      • 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)