|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.util.DeployUtil
public class DeployUtil
Benchmark deployment utility used to check/generate the deployment descriptors, check proper deployment of all benchmarks or individual benchmarks, and deploy them if appropriate.
Field Summary | |
---|---|
static File |
BENCHMARKDIR
The benchmark directory. |
static File |
SERVICEDIR
The service directory. |
Constructor Summary | |
---|---|
DeployUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final File BENCHMARKDIR
public static final File SERVICEDIR
Constructor Detail |
---|
public DeployUtil()
Method Detail |
---|
public static void unjar(File jarFile, String deployName) throws IOException
jarFile
- The deployable jar filedeployName
- The name of the deployable unit
IOException
- 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 service
Exception
- Error processing the filepublic static void generateDD(String dir) throws DeployException
dir
- The deployment directory
DeployException
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |