it.eng.spagobi.engines.weka
Class WekaServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
it.eng.spagobi.engines.weka.WekaServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class WekaServlet
- extends javax.servlet.http.HttpServlet
Process weka execution requests and returns bytes of the filled
reports
- See Also:
- Serialized Form
Method Summary |
java.sql.Connection |
getConnection(java.lang.String connectionName)
This method, based on the engine-config.xml configuration, gets a
database connection and return it |
void |
init(javax.servlet.ServletConfig config)
Initialize the engine |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
process weka execution requests |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLUSTERER
public static final java.lang.String CLUSTERER
- See Also:
- Constant Field Values
CLUSTERNUM
public static final java.lang.String CLUSTERNUM
- See Also:
- Constant Field Values
CR_MANAGER_URL
public static final java.lang.String CR_MANAGER_URL
- See Also:
- Constant Field Values
CONNECTION
public static final java.lang.String CONNECTION
- See Also:
- Constant Field Values
INPUT_CONNECTION
public static final java.lang.String INPUT_CONNECTION
- See Also:
- Constant Field Values
OUTPUT_CONNECTION
public static final java.lang.String OUTPUT_CONNECTION
- See Also:
- Constant Field Values
WRITE_MODE
public static final java.lang.String WRITE_MODE
- See Also:
- Constant Field Values
KEYS
public static final java.lang.String KEYS
- See Also:
- Constant Field Values
VERSIONING
public static final java.lang.String VERSIONING
- See Also:
- Constant Field Values
VERSION_COLUMN_NAME
public static final java.lang.String VERSION_COLUMN_NAME
- See Also:
- Constant Field Values
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
WEKA_ROLES_HANDLER_CLASS_NAME
public static final java.lang.String WEKA_ROLES_HANDLER_CLASS_NAME
- See Also:
- Constant Field Values
WEKA_PRESENTAION_HANDLER_CLASS_NAME
public static final java.lang.String WEKA_PRESENTAION_HANDLER_CLASS_NAME
- See Also:
- Constant Field Values
PROCESS_ACTIVATED_MSG
public static final java.lang.String PROCESS_ACTIVATED_MSG
- See Also:
- Constant Field Values
PROCESS_NOT_ACTIVATED_MSG
public static final java.lang.String PROCESS_NOT_ACTIVATED_MSG
- See Also:
- Constant Field Values
WekaServlet
public WekaServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Initialize the engine
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- process weka execution requests
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
javax.servlet.ServletException
getConnection
public java.sql.Connection getConnection(java.lang.String connectionName)
- This method, based on the engine-config.xml configuration, gets a
database connection and return it
- Parameters:
connectionName
- Logical name of the connection configuration (defined into
engine-config.xml)
- Returns:
- the database connection