public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
addBlockInt(voldemort.store.cachestore.Value value,
voldemort.store.cachestore.Value block) |
static void |
addBlockLong(voldemort.store.cachestore.Value value,
voldemort.store.cachestore.Value block) |
static void |
addOne(voldemort.store.cachestore.Value value) |
static void |
addOneLong(voldemort.store.cachestore.Value value) |
static voldemort.store.cachestore.Value |
bytesToValue(byte[] bytes) |
static voldemort.store.cachestore.impl.CacheValue |
createCacheValue(voldemort.store.cachestore.Value value,
Serializer serializer) |
static StoreParas |
createError(Request request,
String message) |
static RemoteValue |
createRemoteValue(voldemort.store.cachestore.Value value,
Serializer serializer) |
static String |
getPath(String configPath) |
static boolean |
isOverLoaded(ThreadPoolExecutor pools)
Check if the thread pool is overload or not
|
static byte[] |
putInt(int k) |
static byte[] |
putLong(long k) |
static byte[] |
putShort(short k) |
static byte[] |
valueToBytes(voldemort.store.cachestore.Value value) |
public static StoreParas createError(Request request, String message)
request
- message
- public static boolean isOverLoaded(ThreadPoolExecutor pools)
pools
- public static RemoteValue createRemoteValue(voldemort.store.cachestore.Value value, Serializer serializer)
value
- an CacheValueserializer
- public static voldemort.store.cachestore.impl.CacheValue createCacheValue(voldemort.store.cachestore.Value value, Serializer serializer)
value
- an RemoteValuepublic static byte[] putInt(int k)
public static byte[] putLong(long k)
public static byte[] putShort(short k)
public static byte[] valueToBytes(voldemort.store.cachestore.Value value)
public static voldemort.store.cachestore.Value bytesToValue(byte[] bytes)
public static void addOneLong(voldemort.store.cachestore.Value value)
public static void addBlockLong(voldemort.store.cachestore.Value value, voldemort.store.cachestore.Value block)
public static void addBlockInt(voldemort.store.cachestore.Value value, voldemort.store.cachestore.Value block)
public static void addOne(voldemort.store.cachestore.Value value)
Copyright © 2016. All rights reserved.