public interface TechilaManager
| Modifier and Type | Method and Description |
|---|---|
BundleManager |
bundleManager()
Get an instance of a BundleManager.
|
int |
cleanup(int handle)
Cleanup files associated with the handle using CLEANUP_MODE_ALL.
|
int |
cleanup(int handle,
int mode)
Cleanup files associated with the handle.
Example:
// clean all
Example 2:
// remove zip and download dir |
int |
close(int handle)
Close a handle.
Example:
techila.close(handle); |
DBTest |
dbtest() |
java.util.Hashtable<java.lang.String,java.lang.String> |
getConf(java.lang.String language)
Get the configuration for Language etc.
|
java.lang.String |
getConf(java.lang.String language,
java.lang.String key)
Get the configuration for Language etc.
|
Configuration |
getConfiguration()
Return current configuration.
|
Handle |
getHandle(int handle)
Get the actual Handle object for the specified integer handle.
|
java.lang.String |
getImplVersion()
Get the techila.jar build version.
|
java.util.Date |
getKeyNotAfter()
Get not after date of the validity period of the user key.
|
OOFactory |
getOOFactory()
Get the factory object to create OO style classes.
|
PeachWrapper |
getPeachWrapper()
Get the PeachWrapper class for use within C code.
|
TechilaManagerPlugin |
getPlugin(java.lang.String className)
Get an instance of a plugin manager.
|
java.lang.String |
getPluginClassName(java.lang.String plugin)
Get class name of registered plugin.
|
java.util.Hashtable<java.lang.String,java.lang.String> |
getPluginConf(java.lang.String plugin)
Get the configuration for Plugin.
|
java.lang.String[] |
getPluginNames()
Get list of registered plugin names.
|
java.lang.String |
getSDKVersion()
Get the current SDK version (from VERSION file in SDK root).
|
java.lang.Object |
getServerData(java.lang.String key)
Get server feature/data value.
|
StatusWindow |
getStatusWindow()
Return status window.
|
java.lang.String |
getTechDump()
Techdump of log files, properties and environment.
|
java.lang.String |
getTempDir()
Get path to temporary directory specific for the current session.
|
java.lang.String |
getUserLogin()
Get the user login name defined on the server.
|
int |
init(Configuration conf)
Initialize interface library using the given configuration.
|
int |
init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileSize,
int logFileCount,
java.util.logging.Level fileLogLevel,
java.util.logging.Level consoleLogLevel)
Deprecated.
use the one with more parameters
|
int |
init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileSize,
int logFileCount,
java.util.logging.Level fileLogLevel,
java.util.logging.Level consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
Deprecated.
use
init(Configuration) |
int |
init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileSize,
int logFileCount,
java.util.logging.Level fileLogLevel,
java.util.logging.Level consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
java.lang.String stderrFile,
java.lang.String stderrDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
Deprecated.
use
init(Configuration) |
int |
init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileCount,
int logFileSize,
java.lang.String fileLogLevel,
java.lang.String consoleLogLevel)
Deprecated.
use the one with more parameters
|
int |
init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileCount,
int logFileSize,
java.lang.String fileLogLevel,
java.lang.String consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
Initialize interface library.
|
int |
init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileCount,
int logFileSize,
java.lang.String fileLogLevel,
java.lang.String consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
java.lang.String stderrFile,
java.lang.String stderrDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
Initialize interface library.
|
int |
initFile()
Initialize interface library and read configuration from the a file.
|
int |
initFile(java.lang.String filename)
Initialize interface library and read configuration from the given
file.
|
int |
initFile(java.lang.String filename,
java.lang.String password)
Initialize interface library and read configuration from the given
file.
|
boolean |
isInitialized()
Has the Management library been initialized.
|
int |
loadSession(java.io.InputStream input,
Configuration conf)
Load a session from a previously stored session into given
Configuration object.
|
Peach |
newPeach(java.lang.String name)
Get a new Peach object with given name.
|
Peach |
newPeach(java.lang.String stateDir,
java.lang.String name)
Get a new Peach object with given name also defining the state file
directory.
|
int |
open()
Open a handle.
Example:
int handle = techila.open(); |
int |
peach(java.lang.String... args)
Deprecated.
Use PeachWrapper instead
|
void |
peachDone(int peachhandle)
Deprecated.
Use PeachWrapper instead
|
java.lang.String |
peachNextFile(int peachhandle)
Deprecated.
Use PeachWrapper instead
|
ProjectManager |
projectManager()
Get an instance of a ProjectManager.
|
java.lang.String |
registerPlugin(java.lang.String className)
Register plugin.
|
java.lang.String |
registerPlugin(java.lang.String className,
java.lang.String name)
Register plugin with name.
|
TechilaProxy |
registerProxy(java.lang.String service)
Register proxy for calling dynamically methods of remote service.
|
<T> T |
registerProxy(java.lang.String service,
java.lang.Class method)
Register proxy for calling the given method of remote service.
|
<T> T |
registerProxy(java.lang.String service,
java.lang.Class method,
Control execControl)
Register proxy for calling the given method of remote service.
|
TechilaProxy |
registerProxy(java.lang.String service,
Control execControl)
Register proxy for calling dynamically methods of remote service.
|
void |
registerStatusWindow(StatusWindow sw)
Register a StatusWindow implementation for use.
|
ReportManager |
reportManager()
Get an instance of a ReportManager.
|
ResultManager |
resultManager()
Get an instance of a ResultManager.
|
SemaphoreManager |
semaphoreManager()
Get an instance of a SemaphoreManager.
|
ServerManager |
serverManager()
Get an instance of a ServerManager.
|
void |
setStatusWindow(StatusWindow sw)
Set custom status window.
|
int |
stopPoller()
Stop the poller (mainly for internal use).
|
int |
storeSession(java.io.OutputStream output)
Store the session for later use (contains plain text password, use
carefully).
|
Support |
support()
Get an instance of a Support class.
|
int |
testSession()
Test the session (for debugging purposes).
|
int |
unload(boolean removeTempDir)
Unload the library and optionally remove the temp directory (which must
already be empty = handle cleanups must have been called).
|
int |
unload(boolean removeTempDir,
boolean recursive)
Unload the library and optionally remove the temp directory with
an option to delete it recursively.
|
int |
unload3(boolean removeTempDir,
boolean skipEndConnection) |
void |
unregisterStatusWindow(StatusWindow sw)
Unregister a StatusWindow from use.
|
UserManager |
userManager()
Get an instance of a UserManager.
|
WorkerManager |
workerManager()
Get an instance of a WorkerManager.
|
BundleManager bundleManager()
ProjectManager projectManager()
ResultManager resultManager()
Support support()
DBTest dbtest()
UserManager userManager()
WorkerManager workerManager()
ServerManager serverManager()
ReportManager reportManager()
SemaphoreManager semaphoreManager()
int init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileCount,
int logFileSize,
java.lang.String fileLogLevel,
java.lang.String consoleLogLevel)
keystore - the filename of the keystorealias - the alias for the key and certificate in the keystorepassword - the password for the keystore and keyhostname - the hostname of the serverport - the port number of the server Management InterfacetempDir - path to the local temporary directorylogFilename - filename of the log file, if null no logginglogFileSize - maximum size of log file before rotationlogFileCount - maximum number of log filesfileLogLevel - File logging level, if null no loggingconsoleLogLevel - Console logging level, if null no logginginit(String, String, String, String, int,
String, String, int, int, Level, Level)int init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileCount,
int logFileSize,
java.lang.String fileLogLevel,
java.lang.String consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
keystore - the filename of the keystorealias - the alias for the key and certificate in the keystorepassword - the password for the keystore and keyhostname - the hostname of the serverport - the port number of the server Management InterfacetempDir - path to the local temporary directorylogFilename - filename of the log file, if null no logginglogFileSize - maximum size of log file before rotationlogFileCount - maximum number of log filesfileLogLevel - File logging level, if null no loggingconsoleLogLevel - Console logging level, if null no loggingerrorsToStderr - print project errors to STDERRerrorFile - the file where project errors are printed, may be nullpollTime - time between polls (in ms)dlRetryTime - time to wait between download retries (in ms)swconf - StatusWindow config parametersstreamMode - streaming modestorePassword - store password in meminit(String, String, String, String, int,
String, String, int, int, Level, Level)int init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileCount,
int logFileSize,
java.lang.String fileLogLevel,
java.lang.String consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
java.lang.String stderrFile,
java.lang.String stderrDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
keystore - the filename of the keystorealias - the alias for the key and certificate in the keystorepassword - the password for the keystore and keyhostname - the hostname of the serverport - the port number of the server Management InterfacetempDir - path to the local temporary directorylogFilename - filename of the log file, if null no logginglogFileSize - maximum size of log file before rotationlogFileCount - maximum number of log filesfileLogLevel - File logging level, if null no loggingconsoleLogLevel - Console logging level, if null no loggingerrorsToStderr - print project errors to STDERRerrorFile - the file where project errors are printed, may be nullpollTime - time between polls (in ms)dlRetryTime - time to wait between download retries (in ms)swconf - StatusWindow config parametersstreamMode - streaming modestorePassword - store password in meminit(String, String, String, String, int,
String, String, int, int, Level, Level)int init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileSize,
int logFileCount,
java.util.logging.Level fileLogLevel,
java.util.logging.Level consoleLogLevel)
keystore - the filename of the keystorealias - the alias for the key and certificate in the keystorepassword - the password for the keystore and keyhostname - the hostname of the serverport - the port number of the server Management InterfacetempDir - path to the local temporary directorylogFilename - filename of the log file, if null no logginglogFileSize - maximum size of log file before rotationlogFileCount - maximum number of log filesfileLogLevel - File logging level, if null no loggingconsoleLogLevel - Console logging level, if null no loggingTechilaManager#init(String, String, String, String, int, String,
String, int, int, Level, Level, boolean, String)int init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileSize,
int logFileCount,
java.util.logging.Level fileLogLevel,
java.util.logging.Level consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
init(Configuration)unload method is used to deinitialize the library and
it must be called even if init fails.
int statuscode = techila.init("keystore.jks", "mykey", "password",
"gridserver.example.com", 25000",
"C:\temp\", "mi.log", 1000000, 3,
Level.ALL, Level.OFF, true, null);
keystore - the filename of the keystorealias - the alias for the key and certificate in the keystorepassword - the password for the keystore and keyhostname - the hostname of the serverport - the port number of the server Management InterfacetempDir - path to the local temporary directorylogFilename - filename of the log file, if null no logginglogFileSize - maximum size of log file before rotationlogFileCount - maximum number of log filesfileLogLevel - File logging level, if null no loggingconsoleLogLevel - Console logging level, if null no loggingerrorsToStderr - print project errors to STDERRerrorFile - the file where project errors are printed, may be nullpollTime - time between polls (in ms)dlRetryTime - time to wait between download retries (in ms)swconf - StatusWindow config parametersstreamMode - streaming modestorePassword - store password in memunload(boolean)int init(java.lang.String keystore,
java.lang.String alias,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String tempDir,
java.lang.String logFilename,
int logFileSize,
int logFileCount,
java.util.logging.Level fileLogLevel,
java.util.logging.Level consoleLogLevel,
boolean errorsToStderr,
java.lang.String errorFile,
java.lang.String errorDir,
java.lang.String stdoutFile,
java.lang.String stdoutDir,
java.lang.String stderrFile,
java.lang.String stderrDir,
int pollTime,
int dlRetryTime,
java.util.Hashtable<java.lang.String,java.lang.String> swconf,
boolean streamMode,
boolean storePassword)
init(Configuration)unload method is used to deinitialize the library and
it must be called even if init fails.
int statuscode = techila.init("keystore.jks", "mykey", "password",
"gridserver.example.com", 25000",
"C:\temp\", "mi.log", 1000000, 3,
Level.ALL, Level.OFF, true, null);
keystore - the filename of the keystorealias - the alias for the key and certificate in the keystorepassword - the password for the keystore and keyhostname - the hostname of the serverport - the port number of the server Management InterfacetempDir - path to the local temporary directorylogFilename - filename of the log file, if null no logginglogFileSize - maximum size of log file before rotationlogFileCount - maximum number of log filesfileLogLevel - File logging level, if null no loggingconsoleLogLevel - Console logging level, if null no loggingerrorsToStderr - print project errors to STDERRerrorFile - the file where project errors are printed, may be nullpollTime - time between polls (in ms)dlRetryTime - time to wait between download retries (in ms)swconf - StatusWindow config parametersstreamMode - streaming modestorePassword - store password in memunload(boolean)int init(Configuration conf)
unload method is used to deinitialize the library and
it must be called even if init fails.int initFile()
init(String, String, String, String, int,
String, String, int, int, Level, Level)int initFile(java.lang.String filename)
filename - init(String, String, String, String, int,
String, String, int, int, Level, Level)int initFile(java.lang.String filename,
java.lang.String password)
int statuscode = techila.initFile("techila_settings.ini", "password");
filename - password - keystore passwordinit(String, String, String, String, int,
String, String, int, int, Level, Level)int unload(boolean removeTempDir)
removeTempDir - remove temp directory or notcleanup(int, int)int unload(boolean removeTempDir,
boolean recursive)
removeTempDir - recursive - unload(boolean)int unload3(boolean removeTempDir,
boolean skipEndConnection)
int stopPoller()
int testSession()
java.util.Date getKeyNotAfter()
int storeSession(java.io.OutputStream output)
int loadSession(java.io.InputStream input,
Configuration conf)
java.lang.String getUserLogin()
int open()
int handle = techila.open();
close(int)int close(int handle)
techila.close(handle);
handle - then handle to be closedopen()int cleanup(int handle,
int mode)
// clean all
techila.cleanup(handle, Support.CLEANUP_MODE_ALL);
// remove zip and download dir
techila.cleanup(handle, Support.CLEANUP_MODE_RESULT_FILE
| Support.CLEANUP_MODE_DOWNLOAD_DIR);
handle - mode - 1 = project.zip, 2 = job files,
4 = download dir, 8 = unzip dir, 16 = created bundle filesint cleanup(int handle)
handle - Handle getHandle(int handle)
handle - java.lang.String getTempDir()
boolean isInitialized()
Peach newPeach(java.lang.String name) throws TechilaException
name - The Peach name (funcname etc).TechilaExceptionPeach newPeach(java.lang.String stateDir, java.lang.String name) throws TechilaException
stateDir - the directory for state files.name - The Peach name (funcname etc).TechilaExceptionint peach(java.lang.String... args)
args - the argumentsPeachParserjava.lang.String peachNextFile(int peachhandle)
peachhandle - the peach handlevoid peachDone(int peachhandle)
peachhandle - the peach handlePeachWrapper getPeachWrapper()
newPeach(String)java.lang.Object getServerData(java.lang.String key)
key - the value to getjava.lang.String getSDKVersion()
java.lang.String getImplVersion()
TechilaManagerPlugin getPlugin(java.lang.String className)
className - the name of the plugin classjava.lang.String[] getPluginNames()
java.lang.String getPluginClassName(java.lang.String plugin)
plugin - OOFactory getOOFactory()
java.util.Hashtable<java.lang.String,java.lang.String> getPluginConf(java.lang.String plugin)
plugin - the name of the pluginjava.util.Hashtable<java.lang.String,java.lang.String> getConf(java.lang.String language)
language - the name of the languagejava.lang.String getConf(java.lang.String language,
java.lang.String key)
language - the name of the languagekey - key of the confjava.lang.String registerPlugin(java.lang.String className)
throws TechilaException
className - the name of the class or .jarTechilaExceptionjava.lang.String registerPlugin(java.lang.String className,
java.lang.String name)
throws TechilaException
className - the name of the class or .jarname - the name of the pluginTechilaExceptionvoid setStatusWindow(StatusWindow sw)
sw - the status window objectvoid registerStatusWindow(StatusWindow sw)
sw - the StatusWindow to registervoid unregisterStatusWindow(StatusWindow sw)
sw - The StatusWindow to unregisterStatusWindow getStatusWindow()
Configuration getConfiguration()
TechilaProxy registerProxy(java.lang.String service) throws java.lang.Exception
service - the name of the servicejava.lang.ExceptionTechilaProxy registerProxy(java.lang.String service, Control execControl) throws java.lang.Exception
service - the name of the serviceexecControl - Control objectjava.lang.Exception<T> T registerProxy(java.lang.String service,
java.lang.Class method)
throws java.lang.Exception
service - the name of the servicemethod - the interface of the methodjava.lang.Exception<T> T registerProxy(java.lang.String service,
java.lang.Class method,
Control execControl)
throws java.lang.Exception
service - the name of the servicemethod - the interface of the methodexecControl - Control objectjava.lang.Exceptionjava.lang.String getTechDump()
throws java.lang.Exception
java.lang.Exception