public class DetailedContainerResource
extends org.springframework.hateoas.ResourceSupport
Modifier and Type | Class and Description |
---|---|
static class |
DetailedContainerResource.Page
Dedicated subclass to workaround type erasure.
|
Constructor and Description |
---|
DetailedContainerResource(java.util.Map<java.lang.String,java.lang.String> attributes,
int deploymentSize,
java.util.List<ModuleMetadataResource> deployedModules,
java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> messageRates)
Construct ContainerResource using the container attributes and
deployed modules.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Get the attribute value by given name.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Get all the container attributes.
|
java.lang.String |
getContainerId()
Get container id.
|
java.util.List<ModuleMetadataResource> |
getDeployedModules()
Get the list of deployed modules.
|
int |
getDeploymentSize()
Get the number of modules deployed into the container.
|
java.lang.String |
getGroups()
Get container group(s).
|
java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> |
getMessageRates() |
java.lang.String |
toString() |
public DetailedContainerResource(java.util.Map<java.lang.String,java.lang.String> attributes, int deploymentSize, java.util.List<ModuleMetadataResource> deployedModules, java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> messageRates)
attributes
- the container attributesdeploymentSize
- number of deployed modulesdeployedModules
- the list of deployed modulesmessageRates
- the messageRates for deployed modulespublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
public java.lang.String getAttribute(java.lang.String name)
name
- the attribute namepublic java.lang.String getContainerId()
public java.lang.String getGroups()
public int getDeploymentSize()
public java.util.List<ModuleMetadataResource> getDeployedModules()
public java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> getMessageRates()
public java.lang.String toString()
toString
in class org.springframework.hateoas.ResourceSupport