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 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(ServerContext context, PropStoreKey<?> propStoreKey, Map<String,String> properties)
-
-
-
Method Detail
-
setProperties
public static void setProperties(ServerContext context, PropStoreKey<?> propStoreKey, Map<String,String> properties)
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)
-
validateProperties
protected static void validateProperties(ServerContext context, PropStoreKey<?> propStoreKey, Map<String,String> properties)
-
-