public class ECOMPLoggingContext extends Object
Modifier and Type | Field and Description |
---|---|
protected SharedLoggingContext |
context |
Constructor and Description |
---|
ECOMPLoggingContext()
Create a new ECOMPLoggingContext with no base context.
|
ECOMPLoggingContext(ECOMPLoggingContext baseContext)
Create a new ECOMPLoggingContext initially populated with the values
in the given base context.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassname()
Get the value for the data item with key "classname"
|
String |
getClientIPAddress()
Get the value for the data item with key "clientIp"
|
String |
getInstanceUUID()
Get the value for the data item with key "instanceUuid"
|
long |
getMetricBeginTimestamp()
Get the value for the data item with key "MetricBeginTimestamp"
|
long |
getMetricElapsedTime()
Get the value for the data item with key "MetricElapsedTime"
|
long |
getMetricEndTimestamp()
Get the value for the data item with key "MetricEndTimestamp"
|
String |
getPartnerName()
Get the value for the data item with key "partnerName"
|
String |
getRequestID()
Get the value for the data item with key "requestId"
|
String |
getServer()
Get the value for the data item with key "server"
|
String |
getServerIPAddress()
Get the value for the data item with key "serverIp"
|
String |
getServerName()
Get the value for the data item with key "serverName"
|
String |
getServiceInstanceID()
Get the value for the data item with key "serviceInstanceId"
|
String |
getServiceName()
Get the value for the data item with key "serviceName"
|
String |
getSeverity()
Get the value for the data item with key "severity"
|
String |
getStatusCode()
Get the value for the data item with key "statusCode"
|
String |
getTargetEntity()
Get the value for the data item with key "targetEntity"
|
String |
getTargetServiceName()
Get the value for the data item with key "targetServiceName"
|
String |
getThreadID()
Get the value for the data item with key "threadId"
|
long |
getTransactionBeginTimestamp()
Get the value for the data item with key "TransactionBeginTimestamp"
|
long |
getTransactionElapsedTime()
Get the value for the data item with key "TransactionElapsedTime"
|
long |
getTransactionEndTimestamp()
Get the value for the data item with key "TransactionEndTimestamp"
|
void |
metricEnded()
Indicate the end of metric processing.
|
void |
metricStarted()
Indicate the start of metric processing.
|
void |
setClassname(String classname)
Set the value for the data item with key "classname".
|
void |
setClientIPAddress(String clientIP)
Set the value for the data item with key "clientIp"
|
void |
setInstanceUUID(String uuid)
Set the value for the data item with key "instanceUuid"
|
void |
setMetricBeginTimestamp(Instant metricStartTime)
Set the value for the data item with key "MetricBeginTimestamp"
|
void |
setMetricElapsedTime(Instant metricEndTime)
Set the value for the data item with key "MetricElapsedTime".
|
void |
setMetricEndTimestamp(Instant metricEndTime)
Set the value for the data item with key "MetricEndTimestamp"
|
void |
setPartnerName(String name)
Set the value for the data item with key "partnerName"
|
void |
setRequestID(String id)
Set the value for the data item with key "requestId"
|
void |
setServer(String server)
Set the value for the data item with key "server"
|
void |
setServerIPAddress(String serverIP)
Set the value for the data item with key "serverIp"
|
void |
setServerName(String name)
Set the value for the data item with key "serverName"
|
void |
setServiceInstanceID(String id)
Set the value for the data item with key "serviceInstanceId"
|
void |
setServiceName(String name)
Set the value for the data item with key "serviceName"
|
void |
setSeverity(Long severity)
Set the value for the data item with key "severity"
|
void |
setStatusCode(String name)
Set the value for the data item with key "statusCode"
|
void |
setTargetEntity(String name)
Set the value for the data item with key "targetEntity"
|
void |
setTargetServiceName(String name)
Set the value for the data item with key "targetServiceName"
|
void |
setThreadID(String id)
Set the value for the data item with key "threadId".
|
void |
setTransactionBeginTimestamp(Instant transactionStartTime)
Set the value for the data item with key "TransactionBeginTimestamp"
|
void |
setTransactionElapsedTime(Instant transactionEndTime)
Set the value for the data item with key "TransactionElapsedTime".
|
void |
setTransactionEndTimestamp(Instant transactionEndTime)
Set the value for the data item with key "TransactionEndTimestamp"
|
void |
transactionEnded()
Indicate the end of transaction processing.
|
void |
transactionStarted()
Indicate the start of transaction processing.
|
protected SharedLoggingContext context
public ECOMPLoggingContext()
public ECOMPLoggingContext(ECOMPLoggingContext baseContext)
baseContext
- public void transactionStarted()
transactionEnded()
to calculate
the duration of the transaction.public void transactionEnded()
transactionStarted()
will be recorded in the data item with key "TransactionElapsedTime".public void metricStarted()
metricEnded()
to calculate
the duration of the metric.public void metricEnded()
metricStarted()
will be recorded in the data item with key "MetricElapsedTime".public void setRequestID(String id)
id
- public String getRequestID()
public void setServiceInstanceID(String id)
id
- public String getServiceInstanceID()
public void setThreadID(String id)
id
- public String getThreadID()
public void setServerName(String name)
id
- public String getServerName()
public void setServiceName(String name)
id
- public String getServiceName()
public void setPartnerName(String name)
id
- public String getPartnerName()
public void setStatusCode(String name)
id
- public String getStatusCode()
public void setTargetEntity(String name)
id
- public String getTargetEntity()
public void setTargetServiceName(String name)
id
- public String getTargetServiceName()
public void setInstanceUUID(String uuid)
id
- public String getInstanceUUID()
public void setSeverity(Long severity)
id
- public String getSeverity()
public void setServerIPAddress(String serverIP)
id
- public String getServerIPAddress()
public void setServer(String server)
id
- public String getServer()
public void setClientIPAddress(String clientIP)
id
- public String getClientIPAddress()
public void setClassname(String classname)
id
- public String getClassname()
public void setTransactionBeginTimestamp(Instant transactionStartTime)
id
- public long getTransactionBeginTimestamp()
public void setTransactionEndTimestamp(Instant transactionEndTime)
id
- public long getTransactionEndTimestamp()
public void setTransactionElapsedTime(Instant transactionEndTime)
transactionStarted()
at the start of transaction
processing and transactionEnded()
at the end,
which will compute the time difference in milliseconds
and store the result as the "ns" value.id
- public long getTransactionElapsedTime()
public void setMetricBeginTimestamp(Instant metricStartTime)
id
- public long getMetricBeginTimestamp()
public void setMetricEndTimestamp(Instant metricEndTime)
id
- public long getMetricEndTimestamp()
public void setMetricElapsedTime(Instant metricEndTime)
metricStarted()
at the start of metric
processing and metricEnded()
at the end,
which will compute the time difference in milliseconds
and store the result as the "ns" value.id
- public long getMetricElapsedTime()
Copyright © 2017. All rights reserved.