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.WebSocketServlet
javax.servlet.ServletException
public void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
configure
in class org.eclipse.jetty.websocket.servlet.WebSocketServlet
public void uncaughtException(Thread t, Throwable throwable)
uncaughtException
in interface Thread.UncaughtExceptionHandler
public 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.TeaAgentUnregistrationException
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 © 2022 Cloud Software Group, Inc.. All Rights Reserved.