public class SnapshotNodeStateProvider extends Object implements NodeStateProvider
NodeStateProvider
.Constructor and Description |
---|
SnapshotNodeStateProvider(Map<String,Object> snapshot)
Deprecated.
Populate this instance from a previously generated snapshot.
|
SnapshotNodeStateProvider(SolrCloudManager other,
AutoScalingConfig config)
Deprecated.
Populate this instance from another instance of
SolrCloudManager . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
Map<String,Object> |
getNodeValues(String node,
Collection<String> tags)
Deprecated.
|
Map<String,Map<String,List<ReplicaInfo>>> |
getReplicaInfo(String node,
Collection<String> keys)
Deprecated.
|
ReplicaInfo |
getReplicaInfo(String collection,
String coreNode)
Deprecated.
|
Map<String,Object> |
getSnapshot()
Deprecated.
Create a snapshot of all node and replica tag values available from the original source, per the original
autoscaling configuration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isClosed
public SnapshotNodeStateProvider(SolrCloudManager other, AutoScalingConfig config) throws Exception
SolrCloudManager
.other
- another instanceconfig
- optional AutoScalingConfig
, which will be used to determine what node and
replica tags to retrieve. If this is null then the other instance's config will be used.Exception
public Map<String,Object> getSnapshot()
public Map<String,Object> getNodeValues(String node, Collection<String> tags)
getNodeValues
in interface NodeStateProvider
public Map<String,Map<String,List<ReplicaInfo>>> getReplicaInfo(String node, Collection<String> keys)
getReplicaInfo
in interface NodeStateProvider
public ReplicaInfo getReplicaInfo(String collection, String coreNode)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.