public class ContainerAttributes extends java.lang.Object implements java.util.Map<java.lang.String,java.lang.String>, java.lang.Comparable<ContainerAttributes>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINER_ID_KEY |
static java.lang.String |
GROUPS_KEY |
static java.lang.String |
HOST_KEY |
static java.lang.String |
IP_ADDRESS_KEY |
static java.lang.String |
PROCESS_ID_KEY |
Constructor and Description |
---|
ContainerAttributes()
Default constructor generates a random id.
|
ContainerAttributes(java.util.Map<? extends java.lang.String,? extends java.lang.String> attributes)
Constructor to be called when the attributes are already known.
|
ContainerAttributes(java.lang.String id)
Constructor to be called when the id is already known.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(ContainerAttributes other)
Compares using the containerId.
|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entrySet() |
java.lang.String |
get(java.lang.Object key) |
java.util.Map<java.lang.String,java.lang.String> |
getCustomAttributes()
Retrieve the custom attributes for this container.
|
java.util.Set<java.lang.String> |
getGroups() |
java.lang.String |
getHost() |
java.lang.String |
getId() |
java.lang.String |
getIp() |
int |
getPid() |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
java.lang.String |
put(java.lang.String key,
java.lang.String value) |
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> m) |
java.lang.String |
remove(java.lang.Object key) |
ContainerAttributes |
setHost(java.lang.String host) |
ContainerAttributes |
setIp(java.lang.String ip) |
ContainerAttributes |
setPid(java.lang.Integer pid) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<java.lang.String> |
values() |
public static final java.lang.String CONTAINER_ID_KEY
public static final java.lang.String HOST_KEY
public static final java.lang.String PROCESS_ID_KEY
public static final java.lang.String GROUPS_KEY
public static final java.lang.String IP_ADDRESS_KEY
public ContainerAttributes()
public ContainerAttributes(java.lang.String id)
id
- the container's idpublic ContainerAttributes(java.util.Map<? extends java.lang.String,? extends java.lang.String> attributes)
attributes
- the container's attributespublic java.lang.String getId()
public java.lang.String getHost()
public java.lang.String getIp()
public int getPid()
public java.util.Set<java.lang.String> getGroups()
public ContainerAttributes setPid(java.lang.Integer pid)
public ContainerAttributes setHost(java.lang.String host)
public ContainerAttributes setIp(java.lang.String ip)
public java.util.Map<java.lang.String,java.lang.String> getCustomAttributes()
public int size()
size
in interface java.util.Map<java.lang.String,java.lang.String>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,java.lang.String>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,java.lang.String>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,java.lang.String>
public java.lang.String get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.String>
public java.lang.String put(java.lang.String key, java.lang.String value)
put
in interface java.util.Map<java.lang.String,java.lang.String>
public java.lang.String remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,java.lang.String>
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> m)
putAll
in interface java.util.Map<java.lang.String,java.lang.String>
public void clear()
clear
in interface java.util.Map<java.lang.String,java.lang.String>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.String>
public java.util.Collection<java.lang.String> values()
values
in interface java.util.Map<java.lang.String,java.lang.String>
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.String>
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ContainerAttributes other)
compareTo
in interface java.lang.Comparable<ContainerAttributes>