Package org.apache.accumulo.server.util
Class PropUtil
java.lang.Object
org.apache.accumulo.server.util.PropUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
removeProperties
(ServerContext context, PropStoreKey<?> propStoreKey, Collection<String> propertyNames) static void
replaceProperties
(ServerContext context, PropStoreKey<?> propStoreKey, long version, Map<String, String> properties) static void
setProperties
(ServerContext context, PropStoreKey<?> propStoreKey, Map<String, String> properties) Method to set provided properties for the provided AbstractId.protected static void
validateProperties
(PropStoreKey<?> propStoreKey, Map<String, String> properties)
-
Method Details
-
setProperties
public static void setProperties(ServerContext context, PropStoreKey<?> propStoreKey, Map<String, String> properties) throws IllegalArgumentExceptionMethod to set provided properties for the provided AbstractId.- Throws:
IllegalStateException
- if an underlying exception (KeeperException, InterruptException) or other failure to read properties from the cache / backend storeIllegalArgumentException
- if a provided property is not valid
-
removeProperties
public static void removeProperties(ServerContext context, PropStoreKey<?> propStoreKey, Collection<String> propertyNames) -
replaceProperties
public static void replaceProperties(ServerContext context, PropStoreKey<?> propStoreKey, long version, Map<String, String> properties) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
validateProperties
protected static void validateProperties(PropStoreKey<?> propStoreKey, Map<String, String> properties) throws IllegalArgumentException- Throws:
IllegalArgumentException
-