Class InstanceUtils
- java.lang.Object
-
- org.apache.pinot.common.utils.config.InstanceUtils
-
public class InstanceUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetHelixInstanceId(Instance instance)Returns the Helix instance id (e.g.static StringgetServerAdminEndpoint(org.apache.helix.model.InstanceConfig instanceConfig)static StringgetServerAdminEndpoint(org.apache.helix.model.InstanceConfig instanceConfig, String hostname, String defaultProtocol)static org.apache.helix.model.InstanceConfigtoHelixInstanceConfig(Instance instance)Returns the Helix InstanceConfig for the given instance.static voidupdateHelixInstanceConfig(org.apache.helix.model.InstanceConfig instanceConfig, Instance instance)Updates the Helix InstanceConfig with the given instance configuration.
-
-
-
Field Detail
-
POOL_KEY
public static final String POOL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHelixInstanceId
public static String getHelixInstanceId(Instance instance)
Returns the Helix instance id (e.g.Server_localhost_1234) for the given instance.
-
getServerAdminEndpoint
public static String getServerAdminEndpoint(org.apache.helix.model.InstanceConfig instanceConfig)
-
getServerAdminEndpoint
public static String getServerAdminEndpoint(org.apache.helix.model.InstanceConfig instanceConfig, String hostname, String defaultProtocol)
-
toHelixInstanceConfig
public static org.apache.helix.model.InstanceConfig toHelixInstanceConfig(Instance instance)
Returns the Helix InstanceConfig for the given instance.
-
updateHelixInstanceConfig
public static void updateHelixInstanceConfig(org.apache.helix.model.InstanceConfig instanceConfig, Instance instance)Updates the Helix InstanceConfig with the given instance configuration. Leaves the fields not included in the instance configuration unchanged.
-
-