public class DeployUtil extends Object
Modifier and Type | Field and Description |
---|---|
static File |
BENCHMARKDIR
The benchmark directory.
|
static File |
SERVICEDIR
The service directory.
|
Constructor and Description |
---|
DeployUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDeployBenchmark(String benchName)
Checks if benchmark can be deployed.
|
static boolean |
canDeployService(String serviceName)
Checks if service can be deployed.
|
static void |
checkDeploy()
Check for any jar files dropped in here.
|
static void |
checkDeployBenchmark(File jarFile,
String benchName)
Checks for benchmark deployment.
|
static void |
checkDeployService(File jarFile,
String serviceName)
Checks for service deployment.
|
static void |
clearConfig(String benchName)
Clears benchmark's configuration.
|
static void |
deployBenchmark(File jarFile,
String benchName)
Deploys a benchmark.
|
static void |
deployService(File jarFile,
String serviceBundleName)
Deploys a service.
|
static void |
generateDD(String dir)
This method is responsible for generation the deployment descriptor.
|
static void |
generateXform(String dir)
This method is responsible for generating xform.
|
static void |
processUploadedJar(File jarFile,
String deployName)
Processes an uploaded jar file.
|
static void |
unjar(File jarFile,
String deployName)
Unjars the content a deployable jar file into the deploy directory.
|
public static final File BENCHMARKDIR
public static final File SERVICEDIR
public static void unjar(File jarFile, String deployName) throws IOException
jarFile
- The deployable jar filedeployName
- The name of the deployable unitIOException
- Error unjaring the jar file.public static void processUploadedJar(File jarFile, String deployName) throws Exception
jarFile
- The benchmark or service jar filedeployName
- The name of the benchmark or serviceException
- Error processing the filepublic static void generateDD(String dir) throws DeployException
dir
- The deployment directoryDeployException
public static void generateXform(String dir) throws Exception
dir
- Exception
public static boolean canDeployBenchmark(String benchName)
benchName
- public static boolean canDeployService(String serviceName)
serviceName
- public static void checkDeploy()
public static void checkDeployService(File jarFile, String serviceName)
jarFile
- The service jar fileserviceName
- The service namepublic static void checkDeployBenchmark(File jarFile, String benchName)
jarFile
- The benchmark jar filebenchName
- The benchmark namepublic static void deployBenchmark(File jarFile, String benchName)
jarFile
- The benchmark jar filebenchName
- The benchmark namepublic static void deployService(File jarFile, String serviceBundleName)
jarFile
- The service jar fileserviceBundleName
- The service bundle namepublic static void clearConfig(String benchName)
benchName
- The banchmark name