public class ControllerConfigurationEndpointMerger extends AbstractSingleEntityEndpoint<ControllerConfigurationEntity>
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
CONTROLLER_CONFIGURATION_URI_PATTERN |
| Constructor and Description |
|---|
ControllerConfigurationEndpointMerger() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.net.URI uri,
java.lang.String method)
Indicates whether or not this EndpointResponseMapper can handle mapping responses
for the given URI and HTTP Method
|
protected java.lang.Class<ControllerConfigurationEntity> |
getEntityClass() |
protected void |
mergeResponses(ControllerConfigurationEntity clientEntity,
java.util.Map<NodeIdentifier,ControllerConfigurationEntity> entityMap,
java.util.Set<NodeResponse> successfulResponses,
java.util.Set<NodeResponse> problematicResponses)
Merges the responses from all nodes in the given map into the single given entity
|
mergepublic static final java.util.regex.Pattern CONTROLLER_CONFIGURATION_URI_PATTERN
public ControllerConfigurationEndpointMerger()
protected java.lang.Class<ControllerConfigurationEntity> getEntityClass()
getEntityClass in class AbstractSingleEntityEndpoint<ControllerConfigurationEntity>protected void mergeResponses(ControllerConfigurationEntity clientEntity, java.util.Map<NodeIdentifier,ControllerConfigurationEntity> entityMap, java.util.Set<NodeResponse> successfulResponses, java.util.Set<NodeResponse> problematicResponses)
AbstractSingleEntityEndpointmergeResponses in class AbstractSingleEntityEndpoint<ControllerConfigurationEntity>clientEntity - the Entity to merge responses intoentityMap - the responses from all nodessuccessfulResponses - the responses from nodes that completed the request successfullyproblematicResponses - the responses from nodes that did not complete the request successfullypublic boolean canHandle(java.net.URI uri,
java.lang.String method)
EndpointResponseMergeruri - the URI of the endpointmethod - the HTTP Method used to interact with the endpointtrue if the EndpointResponseMapper can handle mapping responses
for the endpoint described by the given URI and HTTP Method