@ThreadSafe public final class UpdateCheck extends Object
Modifier and Type | Field and Description |
---|---|
static String |
USER_AGENT_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
static void |
addIfTrue(boolean valid,
List<String> features,
String featureName)
Add feature name if condition is true.
|
static void |
addUserAgentEnvironments(List<String> info)
Adds the information of user environment to given list.
|
static void |
addUserAgentFeatures(List<String> info)
Get the feature's information.
|
static String |
getLatestVersion(String id,
List<String> additionalInfo,
long connectionRequestTimeout,
long connectTimeout,
long socketTimeout) |
static String |
getUserAgentString(String id,
List<String> additionalInfo) |
public static final String USER_AGENT_SEPARATOR
public static String getLatestVersion(String id, List<String> additionalInfo, long connectionRequestTimeout, long connectTimeout, long socketTimeout) throws IOException
id
- the id of the current Alluxio identity (e.g. cluster id, instance id)additionalInfo
- additional information to sendconnectionRequestTimeout
- 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 id, List<String> additionalInfo)
id
- the id of the current Alluxio identity (e.g. cluster id, instance id)additionalInfo
- additional information to add to result stringpublic static void addUserAgentEnvironments(List<String> info)
info
- the list to add info topublic static void addUserAgentFeatures(List<String> info)
info
- the list to add info toCopyright © 2023. All Rights Reserved.