public class SituationsQuery extends Object
Constructor and Description |
---|
SituationsQuery()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
long |
getFromTimestamp()
This method returns the from timestamp.
|
Properties |
getProperties() |
String |
getResolutionState()
This method returns the resolution state.
|
Situation.Severity |
getSeverity()
This method returns the severity.
|
String |
getSubject()
This method returns the subject.
|
long |
getToTimestamp()
This method returns the to timestamp.
|
String |
getType()
This method returns the type.
|
boolean |
matches(Situation situation)
This method determines if the supplied situation matches
the query criteria.
|
void |
setDescription(String description) |
void |
setFromTimestamp(long fromTimestamp)
This method sets the from timestamp.
|
void |
setProperties(Properties properties) |
void |
setProperties(String propertiesString) |
void |
setResolutionState(String resolutionState)
This method sets the resolution state.
|
void |
setSeverity(Situation.Severity severity)
This method sets the severity.
|
void |
setSubject(String subject)
This method sets the subject.
|
void |
setToTimestamp(long toTimestamp)
This method sets the to timestamp.
|
void |
setType(String type)
This method sets the type.
|
public String getType()
public void setType(String type)
type
- The typepublic String getSubject()
public void setSubject(String subject)
subject
- The subjectpublic Situation.Severity getSeverity()
public void setSeverity(Situation.Severity severity)
severity
- The severitypublic long getFromTimestamp()
public void setFromTimestamp(long fromTimestamp)
fromTimestamp
- The from timestamppublic long getToTimestamp()
public void setToTimestamp(long toTimestamp)
toTimestamp
- The to timestamppublic String getResolutionState()
public void setResolutionState(String resolutionState)
resolutionState
- The resolution statepublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic Properties getProperties()
public void setProperties(String propertiesString) throws IOException
propertiesString
- the properties to setIOException
public void setProperties(Properties properties)
properties
- the properties to setpublic boolean matches(Situation situation)
situation
- The situationCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.