public class SnapshotCloudManager extends Object implements SolrCloudManager
SolrCloudManager
.Modifier and Type | Field and Description |
---|---|
static String |
AUTOSCALING_JSON_KEY |
static String |
AUTOSCALING_STATE_KEY |
static String |
CLUSTER_STATE_KEY |
static String |
DISTRIB_STATE_KEY |
static String |
MANAGER_STATE_KEY |
static String |
NODE_STATE_KEY |
static List<String> |
REQUIRED_KEYS |
static String |
STATISTICS_STATE_KEY |
Constructor and Description |
---|
SnapshotCloudManager(Map<String,Object> snapshot) |
SnapshotCloudManager(SolrCloudManager other,
AutoScalingConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ClusterStateProvider |
getClusterStateProvider() |
DistribStateManager |
getDistribStateManager() |
DistributedQueueFactory |
getDistributedQueueFactory() |
NodeStateProvider |
getNodeStateProvider() |
ObjectCache |
getObjectCache() |
Map<String,Object> |
getSnapshot(boolean withAutoscaling,
boolean redact) |
TimeSource |
getTimeSource() |
byte[] |
httpRequest(String url,
SolrRequest.METHOD method,
Map<String,String> headers,
String payload,
int timeout,
boolean followRedirects) |
static SnapshotCloudManager |
readSnapshot(File sourceDir) |
SolrResponse |
request(SolrRequest req) |
void |
saveSnapshot(File targetDir,
boolean withAutoscaling,
boolean redact) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isClosed
public static final String MANAGER_STATE_KEY
public static final String CLUSTER_STATE_KEY
public static final String NODE_STATE_KEY
public static final String DISTRIB_STATE_KEY
public static final String AUTOSCALING_STATE_KEY
public static final String STATISTICS_STATE_KEY
public static final String AUTOSCALING_JSON_KEY
public SnapshotCloudManager(SolrCloudManager other, AutoScalingConfig config) throws Exception
Exception
public void saveSnapshot(File targetDir, boolean withAutoscaling, boolean redact) throws Exception
Exception
public static SnapshotCloudManager readSnapshot(File sourceDir) throws Exception
Exception
public Map<String,Object> getSnapshot(boolean withAutoscaling, boolean redact) throws Exception
Exception
public ClusterStateProvider getClusterStateProvider()
getClusterStateProvider
in interface SolrCloudManager
public NodeStateProvider getNodeStateProvider()
getNodeStateProvider
in interface SolrCloudManager
public DistribStateManager getDistribStateManager()
getDistribStateManager
in interface SolrCloudManager
public DistributedQueueFactory getDistributedQueueFactory()
getDistributedQueueFactory
in interface SolrCloudManager
public ObjectCache getObjectCache()
getObjectCache
in interface SolrCloudManager
public TimeSource getTimeSource()
getTimeSource
in interface SolrCloudManager
public SolrResponse request(SolrRequest req) throws IOException
request
in interface SolrCloudManager
IOException
public byte[] httpRequest(String url, SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects) throws IOException
httpRequest
in interface SolrCloudManager
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.