Package org.apache.accumulo.server.util
Class PropUtil
- java.lang.Object
-
- org.apache.accumulo.server.util.PropUtil
-
public final class PropUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidremoveProperties(ServerContext context, PropStoreKey<?> propStoreKey, Collection<String> propertyNames)static voidreplaceProperties(ServerContext context, PropStoreKey<?> propStoreKey, long version, Map<String,String> properties)static voidsetProperties(ServerContext context, PropStoreKey<?> propStoreKey, Map<String,String> properties)Method to set provided properties for the provided AbstractId.protected static voidvalidateProperties(PropStoreKey<?> propStoreKey, Map<String,String> properties)
-
-
-
Method Detail
-
setProperties
public static void setProperties(ServerContext context, PropStoreKey<?> propStoreKey, Map<String,String> properties) throws IllegalArgumentException
Method 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
-
-