it.eng.spagobi.engines.talend.client
Class SpagoBITalendEngineClient

java.lang.Object
  extended by it.eng.spagobi.engines.talend.client.SpagoBITalendEngineClient

public class SpagoBITalendEngineClient
extends java.lang.Object

Author:
Andrea Gioia

Constructor Summary
SpagoBITalendEngineClient(java.lang.String usr, java.lang.String pwd, java.lang.String host, java.lang.String port, java.lang.String appContext)
          Instantiates a new spago bi talend engine client.
 
Method Summary
 boolean deployJob(JobDeploymentDescriptor jobDeploymentDescriptor, java.io.File executableJobFiles)
          Deploy job.
 java.lang.String getEngineName()
          Gets the engine name.
 java.lang.String getEngineVersion()
          Gets the engine version.
 boolean isEngineAvailible()
          Checks if is engine availible.
static void main(java.lang.String[] args)
          The main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpagoBITalendEngineClient

public SpagoBITalendEngineClient(java.lang.String usr,
                                 java.lang.String pwd,
                                 java.lang.String host,
                                 java.lang.String port,
                                 java.lang.String appContext)
                          throws AuthenticationFailedException
Instantiates a new spago bi talend engine client.

Parameters:
usr - the usr
pwd - the pwd
host - the host
port - the port
appContext - the app context
Throws:
AuthenticationFailedException - the authentication failed exception
Method Detail

getEngineVersion

public java.lang.String getEngineVersion()
Gets the engine version.

Returns:
the engine version

getEngineName

public java.lang.String getEngineName()
Gets the engine name.

Returns:
the engine name

isEngineAvailible

public boolean isEngineAvailible()
Checks if is engine availible.

Returns:
true, if is engine availible

deployJob

public boolean deployJob(JobDeploymentDescriptor jobDeploymentDescriptor,
                         java.io.File executableJobFiles)
Deploy job.

Parameters:
jobDeploymentDescriptor - the job deployment descriptor
executableJobFiles - the executable job files
Returns:
true, if successful

main

public static void main(java.lang.String[] args)
                 throws java.util.zip.ZipException,
                        java.io.IOException
The main method.

Parameters:
args - the arguments
Throws:
java.util.zip.ZipException - the zip exception
java.io.IOException - Signals that an I/O exception has occurred.