Package org.teiid.logging
Class CommandLogMessage
- java.lang.Object
-
- org.teiid.logging.CommandLogMessage
-
public class CommandLogMessage extends Object
Log Message for source and user command events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandLogMessage.Event
-
Constructor Summary
Constructors Constructor Description CommandLogMessage(long timestamp, String requestID, long sourceCommandID, String transactionID, String modelName, String translatorName, String sessionID, String principal, Long finalRowCount, CommandLogMessage.Event event, ExecutionContext context, Long cpuTime)CommandLogMessage(long timestamp, String requestID, long sourceCommandID, String transactionID, String modelName, String translatorName, String sessionID, String principal, String sql, ExecutionContext context)CommandLogMessage(long timestamp, String requestID, String transactionID, String sessionID, String principal, String vdbName, String vdbVersion, Long finalRowCount, CommandLogMessage.Event event, org.teiid.client.plan.PlanNode plan)CommandLogMessage(long timestamp, String requestID, String transactionID, String sessionID, String applicationName, String principal, String vdbName, String vdbVersion, String sql, Long cpuTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetApplicationName()StringgetConnectorBindingName()Deprecated.in 7.7 seegetTranslatorName()LonggetCpuTime()the cpu time in nanoseconds.ExecutionContextgetExecutionContext()Only available for source commandsStringgetModelName()org.teiid.client.plan.PlanNodegetPlan()Only available for user commands after the NEW eventStringgetPrincipal()StringgetRequestID()LonggetRowCount()Returns the command.StringgetSessionID()Object[]getSourceCommand()The source command issued.LonggetSourceCommandID()StringgetSql()Returns the command.CommandLogMessage.EventgetStatus()longgetTimestamp()StringgetTransactionID()StringgetTranslatorName()StringgetVdbName()StringgetVdbVersion()booleanisSource()voidsetSourceCommand(Object[] sourceCommand)StringtoString()
-
-
-
Constructor Detail
-
CommandLogMessage
public CommandLogMessage(long timestamp, String requestID, String transactionID, String sessionID, String applicationName, String principal, String vdbName, String vdbVersion, String sql, Long cpuTime)
-
CommandLogMessage
public CommandLogMessage(long timestamp, String requestID, String transactionID, String sessionID, String principal, String vdbName, String vdbVersion, Long finalRowCount, CommandLogMessage.Event event, org.teiid.client.plan.PlanNode plan)
-
CommandLogMessage
public CommandLogMessage(long timestamp, String requestID, long sourceCommandID, String transactionID, String modelName, String translatorName, String sessionID, String principal, String sql, ExecutionContext context)
-
CommandLogMessage
public CommandLogMessage(long timestamp, String requestID, long sourceCommandID, String transactionID, String modelName, String translatorName, String sessionID, String principal, Long finalRowCount, CommandLogMessage.Event event, ExecutionContext context, Long cpuTime)
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
-
getTransactionID
public String getTransactionID()
-
getSessionID
public String getSessionID()
-
getApplicationName
public String getApplicationName()
-
getPrincipal
public String getPrincipal()
-
getVdbName
public String getVdbName()
-
getVdbVersion
public String getVdbVersion()
-
getRequestID
public String getRequestID()
-
getSourceCommandID
public Long getSourceCommandID()
-
getSql
public String getSql()
Returns the command. Only valid forCommandLogMessage.Event.NEW- Returns:
-
getRowCount
public Long getRowCount()
Returns the command. Only valid forCommandLogMessage.Event.END- Returns:
-
getModelName
public String getModelName()
-
getConnectorBindingName
public String getConnectorBindingName()
Deprecated.in 7.7 seegetTranslatorName()
-
getTranslatorName
public String getTranslatorName()
-
getStatus
public CommandLogMessage.Event getStatus()
-
isSource
public boolean isSource()
-
getExecutionContext
public ExecutionContext getExecutionContext()
Only available for source commands- Returns:
-
getPlan
public org.teiid.client.plan.PlanNode getPlan()
Only available for user commands after the NEW event- Returns:
-
getCpuTime
public Long getCpuTime()
the cpu time in nanoseconds. Will be null for events that don't have a cpu time measurement. Will be -1 when the system is not able to determine a value.- Returns:
-
setSourceCommand
public void setSourceCommand(Object[] sourceCommand)
-
getSourceCommand
public Object[] getSourceCommand()
The source command issued. It's up to each source as to what the representation is. Only set for theCommandLogMessage.Event.SOURCE
-
-