Package org.teiid.runtime.jmx
Interface TeiidBean
-
@MXBean public interface TeiidBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelRequest(String sessionId, long executionId)
Cancel Requestint
getActiveEngineThreadCount()
Get the current number of threads processing engine work, which is typically plan, source, and transaction work.EngineStatisticsBean
getEngineStatisticsBean()
Get the engine statistics related to memory and plans.int
getLongRunningRequestCount()
Get the number of currently long running requests.double
getPercentBufferDiskSpaceInUse()
Get the current percentage of disk space in usage by the buffer managerString
getQueryPlan(String sessionId, long executionId)
Get the Query Plan for the given session with provided execution id.int
getQueuedEngineWorkItems()
Get the current number of queued engine work items.List<RequestBean>
getRequests()
Get the all Requests that are currently in processList<SessionBean>
getSessions()
Get all the current Sessions.int
getTotalOutOfDiskErrors()
Get the out of disk error countlong
getTotalRequestsProcessed()
Get the number of requests processed.int
getWaitingRequestsCount()
Get the current number of requests waiting on execution at the engine level.WorkerPoolStatisticsBean
getWorkerPoolStatisticsBean()
Get the statistics for the engine thread pool.void
terminateSession(String sessionId)
Terminate the Sessionvoid
terminateTransaction(String transactionId)
Mark the given global transaction as rollback only.
-
-
-
Method Detail
-
getQueryPlan
String getQueryPlan(String sessionId, long executionId)
Get the Query Plan for the given session with provided execution id.- Parameters:
sessionId
-executionId
-- Returns:
-
getRequests
List<RequestBean> getRequests() throws AdminException
Get the all Requests that are currently in process- Returns:
- Collection of
RequestBean
- Throws:
AdminException
-
getSessions
List<SessionBean> getSessions() throws AdminException
Get all the current Sessions.- Returns:
- Collection of
Session
- Throws:
AdminException
-
terminateSession
void terminateSession(String sessionId) throws AdminException
Terminate the Session- Parameters:
sessionId
- Session IdentifierSession
. No wild cards currently supported, must be explicit- Throws:
AdminException
-
cancelRequest
void cancelRequest(String sessionId, long executionId) throws AdminException
Cancel Request- Parameters:
sessionId
- session Identifier for the request.executionId
- request Identifier- Throws:
AdminException
-
terminateTransaction
void terminateTransaction(String transactionId) throws AdminException
Mark the given global transaction as rollback only.- Parameters:
transactionId
-- Throws:
AdminException
-
getTotalRequestsProcessed
long getTotalRequestsProcessed()
Get the number of requests processed. This includes all queries regardless of whether they completed successfully.- Returns:
-
getWaitingRequestsCount
int getWaitingRequestsCount()
Get the current number of requests waiting on execution at the engine level. These are plans restricted by their output buffer and max active plans.- Returns:
-
getActiveEngineThreadCount
int getActiveEngineThreadCount()
Get the current number of threads processing engine work, which is typically plan, source, and transaction work.- Returns:
-
getQueuedEngineWorkItems
int getQueuedEngineWorkItems()
Get the current number of queued engine work items.- Returns:
-
getLongRunningRequestCount
int getLongRunningRequestCount()
Get the number of currently long running requests.- Returns:
-
getPercentBufferDiskSpaceInUse
double getPercentBufferDiskSpaceInUse()
Get the current percentage of disk space in usage by the buffer manager- Returns:
-
getTotalOutOfDiskErrors
int getTotalOutOfDiskErrors()
Get the out of disk error count- Returns:
-
getWorkerPoolStatisticsBean
WorkerPoolStatisticsBean getWorkerPoolStatisticsBean()
Get the statistics for the engine thread pool.- Returns:
-
getEngineStatisticsBean
EngineStatisticsBean getEngineStatisticsBean()
Get the engine statistics related to memory and plans.- Returns:
-
-