public abstract class TeaAgentServlet extends javax.servlet.http.HttpServlet implements Thread.UncaughtExceptionHandler
TeaAgent that can be registered in a Servlet container.
Servlets expects the following init parameters:
To control the instances that are registered to the agent must override the method getObjectInstances() to return an array of instances
that need to be registered.
| Constructor and Description |
|---|
TeaAgentServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
autoRegisterAgent(String serverURL,
String agentURL) |
void |
autoRegisterAgent(String agentName,
String serverURL,
String agentURL) |
TeaPersistence |
getPersistence()
Get the Tea Persistence
|
void |
init() |
void |
registerSolution(TeaSolution solution)
Register a solution into the coreAgentObjectType
|
void |
registerSolutions(TeaSolution... solution)
Register solutions into the coreAgentObjectType
|
void |
setExposePythonAPI(Boolean value) |
void |
uncaughtException(Thread t,
Throwable throwable) |
void |
unregisterAgent(String serverURL) |
void |
unregisterSolution(String solutionName)
Unregister a solution from the coreAgentObjectType
|
void |
unregisterSolutions(String... solutionNames)
Unregister solutions from the coreAgentObjectType
|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void uncaughtException(Thread t, Throwable throwable)
uncaughtException in interface Thread.UncaughtExceptionHandlerpublic void autoRegisterAgent(String agentName, String serverURL, String agentURL)
public void unregisterAgent(String serverURL) throws IOException, URISyntaxException, InterruptedException
public void registerSolution(TeaSolution solution)
solution - public void registerSolutions(TeaSolution... solution)
solution - public void unregisterSolution(String solutionName)
solutionName - solutionName to unregisterpublic void unregisterSolutions(String... solutionNames)
solutionNames - solutionnNames to unregisterpublic void setExposePythonAPI(Boolean value)
public TeaPersistence getPersistence()
Copyright © 2014 Cloud Software Group, Inc.. All Rights Reserved.