Package 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 Description voidaddFilter(RecordFilter filter)Adds aRecordFilterto the processorObjectclone()RecordFilters must override Object.clone()List<RecordFilter>getFilters()Gets the currently configuredRecordFilterinstancesStringgetName()Returns the current RecordProcessor namebooleanisProcessDate()Return whether the date data are being processedbooleanisProcessDestinationHost()Return whether the destination host data are being processedbooleanisProcessEnvelope()Return whether the envelope data are being processedbooleanisProcessHeaders()Return whether the headers data are being processedbooleanisProcessMessageType()Return whether the message type data are being processedbooleanisProcessOperation()Return whether the operation data are being processedbooleanisProcessSourceHost()Return whether the source host data are being processedbooleanisRecording()Return true when the record processor is configured for actively recording data; false otherwisevoidprocessRecord(Record record)Processes aRecordinstancevoidsetFilters(List<RecordFilter> filters)Sets theRecordFilterinstances for the current processorvoidsetName(String name)Sets the record processor namevoidsetProcessDate(boolean value)Enable / disable processing of datevoidsetProcessDestinationHost(boolean value)Enable / disable processing of destination hostvoidsetProcessEnvelope(boolean value)Enable / disable processing of envelopevoidsetProcessHeaders(boolean value)Enable / disable processing of headersvoidsetProcessMessageType(boolean value)Enable / disable processing of message typevoidsetProcessOperation(boolean value)Enable / disable processing of operationvoidsetProcessSourceHost(boolean value)Enable / disable processing of source hostvoidsetRecording(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 aRecordinstance- Parameters:
record- theRecordto process
-
getFilters
List<RecordFilter> getFilters()
Gets the currently configuredRecordFilterinstances- Returns:
- the currently configured
RecordFilterinstances
-
addFilter
void addFilter(RecordFilter filter)
Adds aRecordFilterto the processor- Parameters:
filter- theRecordFilterinstance to add
-
setFilters
void setFilters(List<RecordFilter> filters)
Sets theRecordFilterinstances for the current processor- Parameters:
filters- theRecordFilterinstances 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
-
-