org.jboss.ws.api.monitoring
Interface RecordProcessor
-
- All Superinterfaces:
- Cloneable, Serializable
public interface RecordProcessor extends Cloneable, Serializable
Processes a record. A RecordProcessor may have filters to allow processing of records matching given criteria. It also gives users fine management of record's attributes to be processed.- Since:
- 8-Dec-2007
- Author:
- Alessio Soldano
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
addFilter(RecordFilter filter)
Adds aRecordFilter
to the processorObject
clone()
RecordFilters must override Object.clone()List<RecordFilter>
getFilters()
Gets the currently configuredRecordFilter
instancesString
getName()
Returns the current RecordProcessor nameboolean
isProcessDate()
Return whether the date data are being processedboolean
isProcessDestinationHost()
Return whether the destination host data are being processedboolean
isProcessEnvelope()
Return whether the envelope data are being processedboolean
isProcessHeaders()
Return whether the headers data are being processedboolean
isProcessMessageType()
Return whether the message type data are being processedboolean
isProcessOperation()
Return whether the operation data are being processedboolean
isProcessSourceHost()
Return whether the source host data are being processedboolean
isRecording()
Return true when the record processor is configured for actively recording data; false otherwisevoid
processRecord(Record record)
Processes aRecord
instancevoid
setFilters(List<RecordFilter> filters)
Sets theRecordFilter
instances for the current processorvoid
setName(String name)
Sets the record processor namevoid
setProcessDate(boolean value)
Enable / disable processing of datevoid
setProcessDestinationHost(boolean value)
Enable / disable processing of destination hostvoid
setProcessEnvelope(boolean value)
Enable / disable processing of envelopevoid
setProcessHeaders(boolean value)
Enable / disable processing of headersvoid
setProcessMessageType(boolean value)
Enable / disable processing of message typevoid
setProcessOperation(boolean value)
Enable / disable processing of operationvoid
setProcessSourceHost(boolean value)
Enable / disable processing of source hostvoid
setRecording(boolean value)
Enable / disable actual data recording
-
-
-
Method Detail
-
getName
String getName()
Returns the current RecordProcessor name- Returns:
- the name
-
setName
void setName(String name)
Sets the record processor name- Parameters:
-
name
- the name to set
-
isRecording
boolean isRecording()
Return true when the record processor is configured for actively recording data; false otherwise- Returns:
- a boolean specifying if the recording is on
-
setRecording
void setRecording(boolean value)
Enable / disable actual data recording- Parameters:
-
value
- true to enable recording, false to disable it
-
processRecord
void processRecord(Record record)
Processes aRecord
instance- Parameters:
-
record
- theRecord
to process
-
getFilters
List<RecordFilter> getFilters()
Gets the currently configuredRecordFilter
instances- Returns:
-
the currently configured
RecordFilter
instances
-
addFilter
void addFilter(RecordFilter filter)
Adds aRecordFilter
to the processor- Parameters:
-
filter
- theRecordFilter
instance to add
-
setFilters
void setFilters(List<RecordFilter> filters)
Sets theRecordFilter
instances for the current processor- Parameters:
-
filters
- theRecordFilter
instances to set
-
isProcessSourceHost
boolean isProcessSourceHost()
Return whether the source host data are being processed- Returns:
- true if source host data are being processed, false otherwise
-
setProcessSourceHost
void setProcessSourceHost(boolean value)
Enable / disable processing of source host- Parameters:
-
value
- true to enable processing, false to disable it
-
isProcessDestinationHost
boolean isProcessDestinationHost()
Return whether the destination host data are being processed- Returns:
- true if destination host data are being processed, false otherwise
-
setProcessDestinationHost
void setProcessDestinationHost(boolean value)
Enable / disable processing of destination host- Parameters:
-
value
- true to enable processing, false to disable it
-
isProcessMessageType
boolean isProcessMessageType()
Return whether the message type data are being processed- Returns:
- true if message type data are being processed, false otherwise
-
setProcessMessageType
void setProcessMessageType(boolean value)
Enable / disable processing of message type- Parameters:
-
value
- true to enable processing, false to disable it
-
isProcessEnvelope
boolean isProcessEnvelope()
Return whether the envelope data are being processed- Returns:
- true if envelope data are being processed, false otherwise
-
setProcessEnvelope
void setProcessEnvelope(boolean value)
Enable / disable processing of envelope- Parameters:
-
value
- true to enable processing, false to disable it
-
isProcessHeaders
boolean isProcessHeaders()
Return whether the headers data are being processed- Returns:
- true if headers data are being processed, false otherwise
-
setProcessHeaders
void setProcessHeaders(boolean value)
Enable / disable processing of headers- Parameters:
-
value
- true to enable processing, false to disable it
-
isProcessOperation
boolean isProcessOperation()
Return whether the operation data are being processed- Returns:
- true if operation data are being processed, false otherwise
-
setProcessOperation
void setProcessOperation(boolean value)
Enable / disable processing of operation- Parameters:
-
value
- true to enable processing, false to disable it
-
isProcessDate
boolean isProcessDate()
Return whether the date data are being processed- Returns:
- true if date data are being processed, false otherwise
-
setProcessDate
void setProcessDate(boolean value)
Enable / disable processing of date- Parameters:
-
value
- true to enable processing, false to disable it
-
clone
Object clone() throws CloneNotSupportedException
RecordFilters must override Object.clone()- Returns:
- object
- Throws:
-
CloneNotSupportedException
- exception
-
-
Copyright © 2018 JBoss, by Red Hat. All rights reserved.