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

Fields

public static final String AUTH_SCOPES_KEY

public static final String SERVER_NAME_KEY

public static final String SERVER_PORT_KEY

Public methods

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

Fields

AUTH_SCOPES_KEY

public static final String AUTH_SCOPES_KEY

SERVER_NAME_KEY

public static final String SERVER_NAME_KEY

SERVER_PORT_KEY

public static final String SERVER_PORT_KEY

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  getAuthScopes ()

Returns

getServerAddress

public String getServerAddress ()

Returns
String

getServerPort

public Integer getServerPort ()

Returns
Integer

toResponseBuilder

public MultiPartResponse.Builder toResponseBuilder ()

Returns
MultiPartResponse.Builder