public class AdminAttributes extends java.lang.Object implements java.util.Map<java.lang.String,java.lang.String>, java.lang.Comparable<AdminAttributes>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMIN_ID_KEY |
static java.lang.String |
HOST_KEY |
static java.lang.String |
IP_ADDRESS_KEY |
static java.lang.String |
MGMT_PORT_KEY |
static java.lang.String |
PORT_KEY |
static java.lang.String |
PROCESS_ID_KEY |
Constructor and Description |
---|
AdminAttributes()
Default constructor generates a random id.
|
AdminAttributes(java.util.Map<? extends java.lang.String,? extends java.lang.String> attributes)
Constructor to be called when the attributes are already known.
|
AdminAttributes(java.lang.String id)
Constructor to be called when the id is already known.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(AdminAttributes other)
Compares using the adminId.
|
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 admin.
|
java.lang.String |
getHost() |
java.lang.String |
getId() |
java.lang.String |
getIp() |
int |
getManagementPort() |
int |
getPid() |
int |
getPort() |
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) |
AdminAttributes |
setHost(java.lang.String host) |
AdminAttributes |
setIp(java.lang.String ip) |
AdminAttributes |
setManagementPort(java.lang.Integer mgmtPort) |
AdminAttributes |
setPid(java.lang.Integer pid) |
AdminAttributes |
setPort(java.lang.Integer port) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<java.lang.String> |
values() |
public static final java.lang.String ADMIN_ID_KEY
public static final java.lang.String HOST_KEY
public static final java.lang.String PORT_KEY
public static final java.lang.String PROCESS_ID_KEY
public static final java.lang.String IP_ADDRESS_KEY
public static final java.lang.String MGMT_PORT_KEY
public AdminAttributes()
public AdminAttributes(java.lang.String id)
id
- the admin server's idpublic AdminAttributes(java.util.Map<? extends java.lang.String,? extends java.lang.String> attributes)
attributes
- the admin server's attributespublic java.lang.String getId()
public java.lang.String getHost()
public int getPort()
public java.lang.String getIp()
public int getManagementPort()
public int getPid()
public AdminAttributes setPid(java.lang.Integer pid)
public AdminAttributes setHost(java.lang.String host)
public AdminAttributes setPort(java.lang.Integer port)
public AdminAttributes setIp(java.lang.String ip)
public AdminAttributes setManagementPort(java.lang.Integer mgmtPort)
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(AdminAttributes other)
compareTo
in interface java.lang.Comparable<AdminAttributes>