Interface ContainerStartedEventOrBuilder (0.10.0)

public interface ContainerStartedEventOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsPortMappings(int key)

public abstract boolean containsPortMappings(int key)

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Parameter
NameDescription
keyint
Returns
TypeDescription
boolean

getActionId()

public abstract int getActionId()

The numeric ID of the action that started this container.

int32 action_id = 1;

Returns
TypeDescription
int

The actionId.

getIpAddress()

public abstract String getIpAddress()

The public IP address that can be used to connect to the container. This field is only populated when at least one port mapping is present. If the instance was created with a private address, this field will be empty even if port mappings exist.

string ip_address = 3;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public abstract ByteString getIpAddressBytes()

The public IP address that can be used to connect to the container. This field is only populated when at least one port mapping is present. If the instance was created with a private address, this field will be empty even if port mappings exist.

string ip_address = 3;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getPortMappings()

public abstract Map<Integer,Integer> getPortMappings()

Use #getPortMappingsMap() instead.

Returns
TypeDescription
Map<java.lang.Integer,java.lang.Integer>

getPortMappingsCount()

public abstract int getPortMappingsCount()

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Returns
TypeDescription
int

getPortMappingsMap()

public abstract Map<Integer,Integer> getPortMappingsMap()

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Returns
TypeDescription
Map<java.lang.Integer,java.lang.Integer>

getPortMappingsOrDefault(int key, int defaultValue)

public abstract int getPortMappingsOrDefault(int key, int defaultValue)

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Parameters
NameDescription
keyint
defaultValueint
Returns
TypeDescription
int

getPortMappingsOrThrow(int key)

public abstract int getPortMappingsOrThrow(int key)

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Parameter
NameDescription
keyint
Returns
TypeDescription
int