public interface ReconfigurableAppInfo
AbstractDemandProfile
implementations to get information
about the application as is pertinent to the reconfiguration policy.Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.net.InetSocketAddress> |
getAllActiveReplicas() |
java.util.Set<java.lang.String> |
getReplicaGroup(java.lang.String serviceName) |
java.lang.String |
snapshot(java.lang.String serviceName) |
java.util.Set<java.lang.String> getReplicaGroup(java.lang.String serviceName)
serviceName
- serviceName
if replicated
locally; if serviceName
is not replicated locally, this
method will return null.java.lang.String snapshot(java.lang.String serviceName)
serviceName
- serviceName
's state as a String.
This method internally invokes
Replicable.checkpoint(String)
in order to obtain a
snapshot of the state. This method is useful when the
reconfiguration decision depends on the value of
serviceName
's current state.java.util.Map<java.lang.String,java.net.InetSocketAddress> getAllActiveReplicas()