de.fzj.unicore.wsrflite.utils.deployment
Class DeploymentUtils

java.lang.Object
  extended by de.fzj.unicore.wsrflite.utils.deployment.DeploymentUtils

public class DeploymentUtils
extends Object


Constructor Summary
DeploymentUtils()
           
 
Method Summary
static void copyFile(File src, File dst)
          File copy utility (maximal file size ~64 MB).
static File createJar(String pathToJarFile, byte[] jarAsBytes)
           
static DeploymentDescriptor extractDeploymentMetadata(File jarFile)
           
static String extractServiceNameFromJarFile(File jarFile)
          Extracts service name from jar file.
static boolean isWSRF(Class<?> classImpl)
          Determines if a service to be deployed is WSRF.
static File[] listFilesByExtension(String pathToDir, String extension)
          Lists files filtered by file extension.
static String makeChecksum(File jarFile)
          Compute a checksum of the specified jar file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentUtils

public DeploymentUtils()
Method Detail

copyFile

public static void copyFile(File src,
                            File dst)
                     throws IOException,
                            FileNotFoundException
File copy utility (maximal file size ~64 MB).

Throws:
IOException
FileNotFoundException

extractServiceNameFromJarFile

public static String extractServiceNameFromJarFile(File jarFile)
Extracts service name from jar file.


listFilesByExtension

public static File[] listFilesByExtension(String pathToDir,
                                          String extension)
Lists files filtered by file extension.

Parameters:
pathToDir -
extension -
Returns:

makeChecksum

public static String makeChecksum(File jarFile)
                           throws IOException
Compute a checksum of the specified jar file.

Parameters:
jarFile -
Returns:
The computed checksum as a String.
Throws:
IOException

extractDeploymentMetadata

public static DeploymentDescriptor extractDeploymentMetadata(File jarFile)
                                                      throws IOException
Throws:
IOException

createJar

public static File createJar(String pathToJarFile,
                             byte[] jarAsBytes)
                      throws IOException
Throws:
IOException

isWSRF

public static boolean isWSRF(Class<?> classImpl)
Determines if a service to be deployed is WSRF.



Copyright © 2010. All Rights Reserved.