DynamicShardingConnectionInfoMessage

public class DynamicShardingConnectionInfoMessage
extends Object implements IDynamicShardingConnectionInfo

java.lang.Object
   ↳ com.android.tradefed.invoker.shard.DynamicShardingConnectionInfoMessage


Data-holding class in order to make sending via the feature server easier.

WARNING: THIS CLASS NEEDS TO BE BACKWARD COMPATIBLE WITH ITSELF AT LEAST 2 WEEKS BACK. IT MUST MESH WITH THE DEPLOYED VERSION WHICH CAN BE UP TO A COUPLE WEEKS OLD. This is because this class handles serialization and deserialization for a feature, but it must work with the lab-deployed version which is going to be an older version of this class.

Summary

Constants

String AUTH_SCOPES_KEY

String SERVER_NAME_KEY

String SERVER_PORT_KEY

Public methods

static DynamicShardingConnectionInfoMessage fromConnectionInfo(IDynamicShardingConnectionInfo info)
static DynamicShardingConnectionInfoMessage fromMultiPartResponse(MultiPartResponse response)
List<String> getAuthScopes()
String getServerAddress()
Integer getServerPort()
MultiPartResponse.Builder toResponseBuilder()

Constants

AUTH_SCOPES_KEY

public static final String AUTH_SCOPES_KEY

Constant Value: "auth_scopes"

SERVER_NAME_KEY

public static final String SERVER_NAME_KEY

Constant Value: "server_name"

SERVER_PORT_KEY

public static final String SERVER_PORT_KEY

Constant Value: "server_port"

Public methods

fromConnectionInfo

public static DynamicShardingConnectionInfoMessage fromConnectionInfo (IDynamicShardingConnectionInfo info)

Parameters
info IDynamicShardingConnectionInfo

Returns
DynamicShardingConnectionInfoMessage

fromMultiPartResponse

public static DynamicShardingConnectionInfoMessage fromMultiPartResponse (MultiPartResponse response)

Parameters
response MultiPartResponse

Returns
DynamicShardingConnectionInfoMessage

getAuthScopes

public List<String> getAuthScopes ()

Returns
List<String>

getServerAddress

public String getServerAddress ()

Returns
String

getServerPort

public Integer getServerPort ()

Returns
Integer

toResponseBuilder

public MultiPartResponse.Builder toResponseBuilder ()

Returns
MultiPartResponse.Builder