public class Criteria extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Criteria.FaultCriteria
This class represents the fault criteria.
|
static class |
Criteria.PropertyCriteria
This class represents the property criteria.
|
| Constructor and Description |
|---|
Criteria() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
String value,
boolean excluded)
This method adds a new property criteria.
|
long |
calculateEndTime()
This method returns an end time based on the configured
value.
|
long |
calculateStartTime()
This method calculates the start time to use.
|
Criteria |
deriveTransactionWide()
This method returns the transaction wide version of the current criteria.
|
String |
getBusinessTransaction() |
Set<CorrelationIdentifier> |
getCorrelationIds() |
long |
getEndTime() |
Set<Criteria.FaultCriteria> |
getFaults() |
String |
getHostName() |
long |
getLowerBound() |
int |
getMaxResponseSize() |
String |
getPrincipal() |
Set<Criteria.PropertyCriteria> |
getProperties() |
long |
getStartTime() |
long |
getTimeout() |
long |
getUpperBound() |
Map<String,String> |
parameters()
This method returns the criteria as a map of name/value pairs.
|
Criteria |
setBusinessTransaction(String name)
If a null name is used, then it will match any transaction whether it has
a name or not.
|
Criteria |
setCorrelationIds(Set<CorrelationIdentifier> correlationIds) |
Criteria |
setEndTime(long endTime) |
Criteria |
setFaults(Set<Criteria.FaultCriteria> faults) |
Criteria |
setHostName(String hostName) |
void |
setLowerBound(long lowerBound) |
void |
setMaxResponseSize(int maxResponseSize) |
Criteria |
setPrincipal(String principal) |
Criteria |
setProperties(Set<Criteria.PropertyCriteria> properties) |
Criteria |
setStartTime(long startTime) |
void |
setTimeout(long timeout) |
void |
setUpperBound(long upperBound) |
String |
toString() |
boolean |
transactionWide()
This method determines if the specified criteria are relevant to all fragments within
an end to end transaction.
|
public long getStartTime()
public Criteria setStartTime(long startTime)
startTime - the startTime to setpublic long calculateStartTime()
public long getEndTime()
public Criteria setEndTime(long endTime)
endTime - the endTime to setpublic long calculateEndTime()
public String getBusinessTransaction()
public Criteria setBusinessTransaction(String name)
name - the business transaction name to setpublic Set<Criteria.PropertyCriteria> getProperties()
public Criteria setProperties(Set<Criteria.PropertyCriteria> properties)
properties - the properties to setpublic void addProperty(String name, String value, boolean excluded)
name - The property namevalue - The property valueexcluded - Whether the specific property name/value should be excludedpublic Set<CorrelationIdentifier> getCorrelationIds()
public Criteria setCorrelationIds(Set<CorrelationIdentifier> correlationIds)
correlationIds - the correlationIds to setpublic String getHostName()
public Criteria setHostName(String hostName)
hostName - the hostName to setpublic long getUpperBound()
public void setUpperBound(long upperBound)
upperBound - the upperBound to setpublic long getLowerBound()
public void setLowerBound(long lowerBound)
lowerBound - the lowerBound to setpublic String getPrincipal()
public Criteria setPrincipal(String principal)
principal - the principal to setpublic Set<Criteria.FaultCriteria> getFaults()
public Criteria setFaults(Set<Criteria.FaultCriteria> faults)
fault - the fault to setpublic long getTimeout()
public void setTimeout(long timeout)
timeout - the timeout to setpublic int getMaxResponseSize()
public void setMaxResponseSize(int maxResponseSize)
maxResponseSize - the maxResponseSize to setpublic Map<String,String> parameters()
public boolean transactionWide()
public Criteria deriveTransactionWide()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.