@ThreadSafe public final class UpdateCheck extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getLatestVersion(MetaMaster metaMaster,
long connectionRequestTimeout,
long connectTimeout,
long socketTimeout) |
static List<String> |
getUserAgentClusterInfoList(int clusterSize)
Get the cluster information.
|
static String |
getUserAgentEnvironmentString(String clusterID) |
static List<String> |
getUserAgentFeatureList()
Get the feature's information.
|
static String |
getUserAgentString(String clusterID,
int clusterSize) |
public static String getLatestVersion(MetaMaster metaMaster, long connectionRequestTimeout, long connectTimeout, long socketTimeout) throws IOException
metaMaster
- the cluster meta masterconnectionRequestTimeout
- the connection request timeout for the HTTP request in msconnectTimeout
- the connection timeout for the HTTP request in mssocketTimeout
- the socket timeout for the HTTP request in msIOException
public static String getUserAgentString(String clusterID, int clusterSize)
clusterID
- the cluster IDclusterSize
- number of live workerspublic static String getUserAgentEnvironmentString(String clusterID)
clusterID
- the cluster IDpublic static List<String> getUserAgentFeatureList()
Copyright © 2023. All Rights Reserved.