Package org.acemq.rabbitmq.admin
Class GlobalParameterInfo
java.lang.Object
org.acemq.rabbitmq.admin.GlobalParameterInfo
A cluster-wide parameter, which is not scoped to a virtual host.
Separate from ParameterInfo because the value is not the same shape. A vhost
parameter's value is always an object — a federation upstream, a shovel definition — while a
global parameter's may be anything the broker chose: internal_cluster_id is a string
and cluster_tags is an array.
Modelling this with Map<String, Object> therefore fails to parse on any broker that
has ever started, which is how this class came to exist.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GlobalParameterInfo
-
-
Method Details
-
name
-
value
- Returns:
- the value, which may be a string, a number, a list or an object
-
asString
- Returns:
- the value when it is a string, such as
internal_cluster_id
-
asList
- Returns:
- the value when it is a list, such as
cluster_tags
-
asMap
- Returns:
- the value when it is an object
-
toString
-