org.gcube.datatransformation.datatransformationlibrary.deployer
Class DTSProgramDeployer

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.deployer.DTSProgramDeployer

public class DTSProgramDeployer
extends Object

Author:
Dimitris Katris, NKUA DTSProgramDeployer deploys packages containing Programs.

Constructor Summary
DTSProgramDeployer(String DTS_LIBS_PATH)
          Initializes the DTSProgramDeployer.
 
Method Summary
 void deployPackages(ArrayList<SoftwarePackage> packages)
          Deploys packages.
 ClassLoader getClassLoader()
          Returns the class loader which also looks in the DTS_LIBS_PATH directory.
 String getDTSLibsPath()
          Returns the DTS_LIBS_PATH.
static void main(String[] args)
          Just a testing method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTSProgramDeployer

public DTSProgramDeployer(String DTS_LIBS_PATH)
                   throws Exception
Initializes the DTSProgramDeployer.

Parameters:
DTS_LIBS_PATH - Sets the the DTS_LIBS_PATH.
Throws:
Exception - If DTSProgramDeployer could not be initialized.
Method Detail

main

public static void main(String[] args)
                 throws Exception
Just a testing method.

Parameters:
args - Arguments of main method.
Throws:
Exception - If deployer failed to deploy packages.

getDTSLibsPath

public String getDTSLibsPath()
Returns the DTS_LIBS_PATH.

Returns:
The DTS_LIBS_PATH.

deployPackages

public void deployPackages(ArrayList<SoftwarePackage> packages)
                    throws Exception
Deploys packages.

Parameters:
packages - List with the packages that will be deployed.
Throws:
Exception - If an error occurred in deploying the packages.

getClassLoader

public ClassLoader getClassLoader()

Returns the class loader which also looks in the DTS_LIBS_PATH directory.

Note: It is not safe to return the cl and keep references to it.

Returns:
The class loader.


Copyright © 2013. All Rights Reserved.