Package ome.services.sessions.stats
Class CounterFactory
- java.lang.Object
-
- ome.services.sessions.stats.CounterFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
public class CounterFactory extends java.lang.Object implements org.springframework.context.ApplicationEventPublisherAware
Factory for creating counter objects. Passed to other Spring beans to prevent constant context lookups.- Since:
- Beta4
-
-
Field Summary
Fields Modifier and Type Field Description protected int
methodHardLimit
protected int
objectsReadHardLimit
protected int
objectsWrittenHardLimit
protected org.springframework.context.ApplicationEventPublisher
publisher
-
Constructor Summary
Constructors Constructor Description CounterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionStats
createStats()
void
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
void
setMethodHardLimit(int methodHardLimit)
void
setObjectsReadHardLimit(int objectsReadHardLimit)
void
setObjectsWrittenHardLimit(int objectsWrittenHardLimit)
-
-
-
Method Detail
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher
in interfaceorg.springframework.context.ApplicationEventPublisherAware
-
setObjectsReadHardLimit
public void setObjectsReadHardLimit(int objectsReadHardLimit)
-
setObjectsWrittenHardLimit
public void setObjectsWrittenHardLimit(int objectsWrittenHardLimit)
-
setMethodHardLimit
public void setMethodHardLimit(int methodHardLimit)
-
createStats
public SessionStats createStats()
-
-