public interface BundleManager
| Modifier and Type | Method and Description |
|---|---|
int |
approveUploadedBundles(int handle)
Approve uploaded bundles.
|
boolean |
bundleExists(java.lang.String bundleName)
Does a bundle exist with given name.
|
boolean |
bundleExists(java.lang.String bundlePrefix,
java.lang.String bundleName)
Does a bundle exists with given prefix and last part.
|
boolean |
bundleVersionExists(java.lang.String bundleName,
java.lang.String bundleVersion)
Does a bundle exist with given name and version or any newer version.
|
int |
createBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String executor,
java.util.Hashtable<java.lang.String,java.lang.String> extraLines,
java.util.Hashtable<java.lang.String,java.lang.String> files)
|
int |
createBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String executor,
java.lang.String[] extraLines,
java.lang.String[] files)
Deprecated.
|
int |
createBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String executor,
java.util.Vector<java.lang.String> extraLines,
java.util.Hashtable<java.lang.String,java.lang.String> files)
Deprecated.
|
int |
createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.util.Hashtable<java.lang.String,java.lang.String> extras,
java.util.Hashtable<java.lang.String,java.lang.String> files)
Create a new signed bundle with given parameters and datafiles.
|
int |
createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.util.Hashtable<java.lang.String,java.lang.String> extras,
java.util.Hashtable<java.lang.String,java.lang.String> files,
java.lang.String bundleFile)
Create a signed bundle file (jar).
|
int |
createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.lang.String[] extras,
java.lang.String[] files)
Create a signed bundle file (jar).
|
int |
createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.lang.String[] extras,
java.lang.String[] files,
java.lang.String bundleFile)
Create a signed bundle file (jar).
|
int |
getBundleId(int handle)
Get the bundle ID associated with the handle.
|
java.lang.String |
getLastCreatedBundleName(int handle)
Returns the name of the bundle last created.
|
int |
setBundleId(int handle,
int bundleId)
Set bundle ID to be used with the handle.
|
int |
signJar(java.lang.String infile,
java.lang.String outfile)
Sign a JAR file.
|
int |
uploadBundle(int handle)
Upload a bundle assiciated with the handle (created with
createSignedBundle) to the server. |
int |
uploadBundle(int handle,
java.lang.String bundleFile)
Upload a bundle file to the server.
|
int |
useBundle(int handle,
java.lang.String bundleName)
Set the bundle to be used in a project.
|
int |
useBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName)
Set bundle to be used in a project.
|
int createBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String executor,
java.lang.String[] extraLines,
java.lang.String[] files)
createSignedBundle(
int, String, String, String, String, String, String, String, String,
String, String, String[], String[])handle - the handle, see TechilaManager.open()bundlePrefix - prefix of the bundle namebundleName - name of the bundle (last part of the full name)description - description of the bundlebundleVersion - version of the bundleimports - imports of the new bundleexports - exports of the new bundlecategoryName - category in which this bundle belongs toresources - resources this bundle offersexecutor - the executor to execute calculations withextraLines - array of strings of extra lines for the manifestfiles - array of strings of "filename=/path/to/local/file"SupportcreateBundle(int, String, String, String,
String, String, String, String, String, String, Hashtable, Hashtable)int createBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String executor,
java.util.Vector<java.lang.String> extraLines,
java.util.Hashtable<java.lang.String,java.lang.String> files)
(int, String, String, String, String, String, String, String, String,
String, String, Hashtable, Hashtable)handle - the handle, see TechilaManager.open()bundlePrefix - prefix of the bundle namebundleName - name of the bundle (last part of the full name)description - description of the bundlebundleVersion - version of the bundleimports - imports for the new bundlesexports - exports of the new bundlecategoryName - category in which this bundle belongs toresources - resources this bundle offersexecutor - the executor to execute calculations withextraLines - array of strings of extra lines for the manifestfiles - Hashtable of filename - local file (full path) pairsSupportcreateBundle(int, String, String, String,
String, String, String, String, String, String, Hashtable, Hashtable)int createBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String executor,
java.util.Hashtable<java.lang.String,java.lang.String> extraLines,
java.util.Hashtable<java.lang.String,java.lang.String> files)
createSignedBundle(
int, String, String, String, String, String, String, String, String,
String, String, Hashtable, Hashtable)
Hashtable<String, String> extras =
new Hashtable<String, String>();
extras.put("extraline1", "extralinedata");
Hashtable<String, String> files =
new Hashtable<String, String>();
files.put("data1", "C:\\datafiles\\datafile1.dat");
files.put("data2", "C:\\datafiles\\datafile2.dat");
BundleManager bundleManager = techila.bundleManager();
int statuscode = bundleManager.createBundle(handle,
"fi.techila.grid.cust.example", "databundle1", "description", "0.0.1",
"fi.techila.grid.cust.example.clientmodule.client", "",
"{user}", "dataresource",
"fi.techila.grid.cust.example.clientmodule.client;
specification-version=0.1.0",
extras, files);
handle - the handle, see TechilaManager.open()bundlePrefix - prefix of the bundle namebundleName - name of the bundle (last part of the full name)description - description of the bundlebundleVersion - version of the bundleimports - imports for the new bundlesexports - exports of the new bundlecategoryName - category in which this bundle belongs toresources - resources this bundle offersexecutor - the executor to execute calculations withextraLines - hashtable of extra line name-value pairsfiles - Hashtable of filename - local file (full path) pairsSupportint createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.lang.String[] extras,
java.lang.String[] files)
handle - the handle, see TechilaManager.open()bundleName - the name of the bundledescription - description of the bundlebundleVersion - version of the bundleimports - prerequired bundlesexports - exportsnatives - nativescategoryName - category in which this bundle belongs toresources - resources this bundle offersactivator - activatorexecutor - the executor to execute calculations withextras - extra lines, array of strings of "key=value"files - array of strings of "filename=/path/to/local/file"SupportcreateSignedBundle(int, String, String, String,
String, String, String, String, String, String, String, Hashtable,
Hashtable, String)int createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.lang.String[] extras,
java.lang.String[] files,
java.lang.String bundleFile)
handle - the handle, see TechilaManager.open()bundleName - name of the bundledescription - description of the bundlebundleVersion - version of the bundleimports - prerequired bundlesexports - exportsnatives - nativescategoryName - category in which this bundle belongs toresources - resources this bundle offersactivator - activatorexecutor - the executor to execute the calculations withextras - extra lines, array of strings of "key=value"files - array of strings of "filename=/path/to/local/file"bundleFile - output bundle filename, may be nullSupportcreateSignedBundle(int, String, String, String,
String, String, String, String, String, String, String, Hashtable,
Hashtable, String)int createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.util.Hashtable<java.lang.String,java.lang.String> extras,
java.util.Hashtable<java.lang.String,java.lang.String> files)
Hashtable<String, String> extras =
new Hashtable<String, String>();
extras.put("extraline1", "extralinedata");
Hashtable<String, String> files =
new Hashtable<String, String>();
files.put("data1", "C:\\datafiles\\datafile1.dat");
files.put("data2", "C:\\datafiles\\datafile2.dat");
BundleManager bundleManager = techila.bundleManager();
int statuscode = bundleManager.createSignedBundle(handle,
"example.{user}.mcpi", "description", "0.0.1",
"binarybundle;specification-version=0.0.1", "",
"", "", "dataresource", "", "", extras, files);
handle - the handle, see TechilaManager.open()bundleName - the name of the bundledescription - the description of the bundlebundleVersion - the version of the bundleimports - prerequirementsexports - exported namesnatives - native filescategoryName - category in which this bundle belongs toresources - resources this bundle offersactivator - activatorexecutor - the executor to execute calculations withextras - extra lines, name-value pairsfiles - included files, filename-local file (full path) pairsSupportcreateSignedBundle(int, String, String, String,
String, String, String, String, String, String, String, Hashtable,
Hashtable, String)int createSignedBundle(int handle,
java.lang.String bundleName,
java.lang.String description,
java.lang.String bundleVersion,
java.lang.String imports,
java.lang.String exports,
java.lang.String natives,
java.lang.String categoryName,
java.lang.String resources,
java.lang.String activator,
java.lang.String executor,
java.util.Hashtable<java.lang.String,java.lang.String> extras,
java.util.Hashtable<java.lang.String,java.lang.String> files,
java.lang.String bundleFile)
Hashtable<String, String> extras =
new Hashtable<String, String>();
extras.put("ResultHandler", "default");
extras.put("Splitter", "default");
extras.put("InternalResources", "example.exe;
file=example.exe;destination=example.exe");
extras.put("Executable", "example.exe");
extras.put("OutputFiles", "output;file=result.dat");
extras.put("Parameters", "%P(jobidx) %O(output)");
Hashtable<String, String> files =
new Hashtable<String, String>();
files.put("example.exe", "example.exe");
BundleManager bundleManager = techila.bundleManager();
int statuscode = bundleManager.createSignedBundle(handle,
"fi.techila.grid.cust.example.clientmodule.client",
"binary bundle description", "0.1.0",
"fi.techila.grid.cust.example.clientmodule.client",
"",
"x86/Windows/example.exe;osname=Windows XP;
processor=x86,x86/Windows/example.exe;osname=Windows 2000;
processor=x86,x86/Windows/example.exe;osname=Windows Vista;
processor=x86",
"", "", "", "", extras, files);
handle - the handle, see TechilaManager.open()bundleName - the name of the bundledescription - the description of the bundlebundleVersion - the version of the bundleimports - prerequirementsexports - exported namesnatives - native filescategoryName - category in which this bundle belongs toresources - resources this bundle offersactivator - activatorexecutor - the executor to execute calculations withextras - extra lines, name-value pairsfiles - included files, filename-local file (full path) pairsbundleFile - output filename, may be null.Supportint signJar(java.lang.String infile,
java.lang.String outfile)
init.infile - input jar filenameoutfile - output jar filenameSupportint uploadBundle(int handle)
createSignedBundle) to the server.SupportcreateSignedBundle(int, String, String, String,
String, String, String, String, String, String, String,
Hashtable, Hashtable, String),
ManagementInterface#approveUploadedBundles(int)int uploadBundle(int handle,
java.lang.String bundleFile)
handle - the handle, see TechilaManager.open()bundleFile - the file to be uploadedSupportapproveUploadedBundles(int)int approveUploadedBundles(int handle)
handle - the handle, see TechilaManager.open()Supportint useBundle(int handle,
java.lang.String bundleName)
handle - the handle, see TechilaManager.open()bundleName - full name of the bundleSupportProjectManager.createProject(int, int, String),
ProjectManager.createProject(int, int, String, Hashtable)int useBundle(int handle,
java.lang.String bundlePrefix,
java.lang.String bundleName)
handle - the handle, see TechilaManager.open()bundlePrefix - prefix of the bundle namebundleName - the name of the bundleSupportProjectManager.createProject(int, int, String),
ProjectManager.createProject(int, int, String, Hashtable)boolean bundleExists(java.lang.String bundleName)
bundleName - of the bundle to checkboolean bundleVersionExists(java.lang.String bundleName,
java.lang.String bundleVersion)
bundleName - name of the bundle to checkbundleVersion - minimum version of the bundle to checkboolean bundleExists(java.lang.String bundlePrefix,
java.lang.String bundleName)
bundlePrefix - prefix of the bundle namebundleName - the name of the bundleint getBundleId(int handle)
setBundleId(int,
int) without the need to create new bundles each time.handle - the handle, see TechilaManager.open()setBundleId(int, int)int setBundleId(int handle,
int bundleId)
getBundleId(int) after
createBundle (or useBundle).handle - the handle, see TechilaManager.open()bundleId - the id of the bundleSupportProjectManager.createProject(int, int, String),
ProjectManager.createProject(int, int, String, Hashtable)java.lang.String getLastCreatedBundleName(int handle)
handle - the handle, see TechilaManager.open()