Package org.smooks.management.mbean
Class ManagedVisitor
- java.lang.Object
-
- org.smooks.management.mbean.AbstractMBean
-
- org.smooks.management.mbean.ManagedVisitor
-
- All Implemented Interfaces:
MBean
@ManagedResource @ManagedNotification(name="org.smooks.api.resource.visitor", notificationTypes="javax.management.Notification") public class ManagedVisitor extends AbstractMBean
-
-
Field Summary
-
Fields inherited from class org.smooks.management.mbean.AbstractMBean
hostName
-
-
Constructor Summary
Constructors Constructor Description ManagedVisitor(InstrumentationResource instrumentationResource, ResourceConfig visitorResourceConfig, Visitor visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTotalProcessingTime(long visitProcessingTime)
protected String
getContext()
long
getFailedVisitCount()
protected String
getName()
String
getSelector()
long
getTotalProcessingTime()
protected String
getType()
long
getVisitAfterCount()
long
getVisitBeforeCount()
long
getVisitChildElementCount()
long
getVisitChildTextCount()
void
incrementFailedVisitCounter()
void
incrementVisitAfterCounter()
void
incrementVisitBeforeCounter()
void
incrementVisitChildElementCounter()
void
incrementVisitChildTextCounter()
void
sendNotification(Node node, long visitProcessingTime)
protected String
toPath(Node node)
-
Methods inherited from class org.smooks.management.mbean.AbstractMBean
getLocalHostName, getObjectName
-
-
-
-
Constructor Detail
-
ManagedVisitor
public ManagedVisitor(InstrumentationResource instrumentationResource, ResourceConfig visitorResourceConfig, Visitor visitor)
-
-
Method Detail
-
getSelector
@ManagedAttribute(description="Selector") public String getSelector()
-
getVisitBeforeCount
@ManagedAttribute(description="Number of visited start events") public long getVisitBeforeCount()
-
getVisitChildElementCount
@ManagedAttribute(description="Number of visited child events") public long getVisitChildElementCount()
-
getVisitChildTextCount
@ManagedAttribute(description="Number of visited text events") public long getVisitChildTextCount()
-
getVisitAfterCount
@ManagedAttribute(description="Number of visited end events") public long getVisitAfterCount()
-
getTotalProcessingTime
@ManagedAttribute(description="Total visit processing time (in milliseconds)") public long getTotalProcessingTime()
-
getFailedVisitCount
@ManagedAttribute(description="Number of failed visits") public long getFailedVisitCount()
-
incrementVisitBeforeCounter
public void incrementVisitBeforeCounter()
-
incrementVisitAfterCounter
public void incrementVisitAfterCounter()
-
incrementVisitChildElementCounter
public void incrementVisitChildElementCounter()
-
incrementVisitChildTextCounter
public void incrementVisitChildTextCounter()
-
incrementFailedVisitCounter
public void incrementFailedVisitCounter()
-
addTotalProcessingTime
public void addTotalProcessingTime(long visitProcessingTime)
-
sendNotification
public void sendNotification(Node node, long visitProcessingTime)
-
getName
protected String getName()
- Specified by:
getName
in classAbstractMBean
-
getType
protected String getType()
- Specified by:
getType
in classAbstractMBean
-
getContext
protected String getContext()
- Overrides:
getContext
in classAbstractMBean
-
-