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 class
CommandLogMessage.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, 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 String
getApplicationName()
String
getConnectorBindingName()
Deprecated.in 7.7 seegetTranslatorName()
Long
getCpuTime()
the cpu time in nanoseconds.ExecutionContext
getExecutionContext()
Only available for source commandsString
getModelName()
PlanNode
getPlan()
Only available for user commands after the NEW eventString
getPrincipal()
String
getRequestID()
Long
getRowCount()
Returns the command.String
getSessionID()
Object[]
getSourceCommand()
The source command issued.Long
getSourceCommandID()
String
getSql()
Returns the command.CommandLogMessage.Event
getStatus()
long
getTimestamp()
String
getTransactionID()
String
getTranslatorName()
String
getVdbName()
String
getVdbVersion()
boolean
isSource()
void
setSourceCommand(Object[] sourceCommand)
String
toString()
-
-
-
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, 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 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
-
-