Interface Mediator
-
- All Known Subinterfaces:
ListMediator
- All Known Implementing Classes:
AbstractListMediator
,AbstractMediator
,CommentMediator
,SequenceMediator
,UILessMediator
public interface Mediator
Defines a mediator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
build(org.apache.axiom.om.OMElement elem)
Populate this mediator from the Synapse mediator configuration.void
disableStatistics()
Disable statistics for mediatorvoid
enableStatistics()
Enable statistics for the mediatorString
getTagLocalName()
Get the name of the mediatorint
getTraceState()
Get the tracing stateboolean
isAuditConfigurable()
Is this mediator audit configurable.boolean
isStatisticsEnable()
Whether statistics has been enabledorg.apache.axiom.om.OMElement
serialize(org.apache.axiom.om.OMElement parent)
Serialize this mediator in to the corresponding Synapse mediator configuration.void
setTraceState(int traceState)
Set the tracing state
-
-
-
Method Detail
-
serialize
org.apache.axiom.om.OMElement serialize(org.apache.axiom.om.OMElement parent)
Serialize this mediator in to the corresponding Synapse mediator configuration.- Parameters:
parent
- if present the serialize node will be added to the parent- Returns:
- the Synapse mediator configuration XML
-
build
void build(org.apache.axiom.om.OMElement elem)
Populate this mediator from the Synapse mediator configuration.- Parameters:
elem
- synapse mediator configuration
-
getTraceState
int getTraceState()
Get the tracing state- Returns:
- tracing state
-
setTraceState
void setTraceState(int traceState)
Set the tracing state- Parameters:
traceState
- trace state to set
-
isAuditConfigurable
boolean isAuditConfigurable()
Is this mediator audit configurable. Synapse mediators which implements the AuditConfigurable should return true.- Returns:
- true if the mediator is audit configurable.
-
getTagLocalName
String getTagLocalName()
Get the name of the mediator- Returns:
- name of the mediator
-
isStatisticsEnable
boolean isStatisticsEnable()
Whether statistics has been enabled- Returns:
- True if enable , o.w , false
-
disableStatistics
void disableStatistics()
Disable statistics for mediator
-
enableStatistics
void enableStatistics()
Enable statistics for the mediator
-
-