public class ResourceUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static javax.persistence.EntityManagerFactory |
factory |
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addGatewayWorker(GatewayResource gatewayResource,
UserResource userResource) |
static ConfigurationResource |
createConfiguration(String configKey) |
static Resource |
createGateway(String gatewayName) |
static ConfigurationResource |
getConfiguration(String configKey) |
static List<ConfigurationResource> |
getConfigurations(String configKey) |
static javax.persistence.EntityManager |
getEntityManager() |
static Resource |
getGateway(String gatewayName) |
static Lock |
getLock() |
static Resource |
getWorker(String gatewayName,
String userName) |
static boolean |
isConfigurationExist(String configKey) |
static boolean |
isConfigurationExists(String configKey,
String configVal) |
static boolean |
isGatewayExist(String gatewayName) |
static void |
removeConfiguration(String configkey) |
static void |
removeConfiguration(String configkey,
String configValue) |
static boolean |
removeGateway(String gatewayName) |
static boolean |
removeGatewayWorker(GatewayResource gatewayResource,
UserResource userResource) |
static void |
reset() |
public static void reset()
public static javax.persistence.EntityManager getEntityManager()
public static Resource createGateway(String gatewayName)
gatewayName - public static boolean isGatewayExist(String gatewayName)
gatewayName - public static boolean removeGateway(String gatewayName)
gatewayName - public static void addGatewayWorker(GatewayResource gatewayResource, UserResource userResource)
gatewayResource - userResource - public static boolean removeGatewayWorker(GatewayResource gatewayResource, UserResource userResource)
gatewayResource - userResource - public static List<ConfigurationResource> getConfigurations(String configKey)
configKey - public static ConfigurationResource getConfiguration(String configKey)
configKey - public static boolean isConfigurationExist(String configKey)
configKey - public static ConfigurationResource createConfiguration(String configKey)
configKey - public static void removeConfiguration(String configkey, String configValue)
configkey - configValue - public static void removeConfiguration(String configkey)
configkey - public static boolean isConfigurationExists(String configKey, String configVal)
public static Lock getLock()
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.