@Deprecated public class MockInstanceOperations extends Object
| Constructor and Description |
|---|
MockInstanceOperations(MockAccumulo acu)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<ActiveCompaction> |
getActiveCompactions(String tserver)
List the active compaction running on a tablet server
|
List<ActiveScan> |
getActiveScans(String tserver)
List the active scans on tablet server.
|
Map<String,String> |
getSiteConfiguration() |
Map<String,String> |
getSystemConfiguration() |
List<String> |
getTabletServers()
List the currently active tablet servers participating in the accumulo instance
|
void |
ping(String tserver)
Throws an exception if a tablet server can not be contacted.
|
void |
removeProperty(String property)
Removes a system property from zookeeper.
|
void |
setProperty(String property,
String value)
Sets an system property in zookeeper.
|
boolean |
testClassLoad(String className,
String asTypeName)
Test to see if the instance can load the given class as the given type.
|
public MockInstanceOperations(MockAccumulo acu)
public void setProperty(String property, String value) throws AccumuloException, AccumuloSecurityException
InstanceOperationsInstanceOperations.getSystemConfiguration()setProperty in interface InstanceOperationsproperty - the name of a per-table propertyvalue - the value to set a per-table property toAccumuloException - if a general error occursAccumuloSecurityException - if the user does not have permissionpublic void removeProperty(String property) throws AccumuloException, AccumuloSecurityException
InstanceOperationsInstanceOperations.getSystemConfiguration()removeProperty in interface InstanceOperationsproperty - the name of a per-table propertyAccumuloException - if a general error occursAccumuloSecurityException - if the user does not have permissionpublic Map<String,String> getSystemConfiguration() throws AccumuloException, AccumuloSecurityException
getSystemConfiguration in interface InstanceOperationsAccumuloExceptionAccumuloSecurityExceptionpublic Map<String,String> getSiteConfiguration() throws AccumuloException, AccumuloSecurityException
getSiteConfiguration in interface InstanceOperationsAccumuloExceptionAccumuloSecurityExceptionpublic List<String> getTabletServers()
InstanceOperationsgetTabletServers in interface InstanceOperationspublic List<ActiveScan> getActiveScans(String tserver) throws AccumuloException, AccumuloSecurityException
InstanceOperationsgetActiveScans in interface InstanceOperationstserver - The tablet server address should be of the form <ip address>:<port>AccumuloExceptionAccumuloSecurityExceptionpublic boolean testClassLoad(String className, String asTypeName) throws AccumuloException, AccumuloSecurityException
InstanceOperationsTableOperations.testClassLoad(String, String, String)testClassLoad in interface InstanceOperationsAccumuloExceptionAccumuloSecurityExceptionpublic List<ActiveCompaction> getActiveCompactions(String tserver) throws AccumuloException, AccumuloSecurityException
InstanceOperationsgetActiveCompactions in interface InstanceOperationstserver - The tablet server address should be of the form <ip address>:<port>AccumuloExceptionAccumuloSecurityExceptionpublic void ping(String tserver) throws AccumuloException
InstanceOperationsping in interface InstanceOperationstserver - The tablet server address should be of the form <ip address>:<port>AccumuloExceptionCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.