public abstract class TeaAgentServlet extends org.eclipse.jetty.websocket.servlet.WebSocketServlet 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) |
void |
configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory) |
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 org.eclipse.jetty.websocket.servlet.WebSocketServletjavax.servlet.ServletExceptionpublic void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
configure in class org.eclipse.jetty.websocket.servlet.WebSocketServletpublic 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 com.tibco.tea.agent.internal.server.TeaAgentUnregistrationException
com.tibco.tea.agent.internal.server.TeaAgentUnregistrationExceptionpublic 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 © 2015 Cloud Software Group, Inc.. All Rights Reserved.