@ManagedResource(description="Statistics about jadice server\'s performance") public class ServerStatistics extends Object implements org.springframework.context.Lifecycle, org.springframework.jmx.export.naming.SelfNaming, org.springframework.jmx.export.notification.NotificationPublisherAware
Constructor and Description |
---|
ServerStatistics() |
Modifier and Type | Method and Description |
---|---|
void |
clearEfficiency() |
void |
clearExecutionTimes() |
void |
clearJobRates() |
void |
dumpStatistics() |
long |
getAverageExecutionTime() |
long |
getCompletedTaskCount() |
float |
getEfficiency10Min() |
float |
getEfficiency1Day() |
float |
getEfficiency1Hour() |
ObjectName |
getObjectName() |
float |
getRecentAbortRate() |
long |
getRecentAverageExecutionTime() |
float |
getRecentFailureRate() |
long |
getRecentMaximumExecutionTime() |
long |
getRecentMinimumExecutionTime() |
float |
getTotalAbortRate() |
float |
getTotalFailureRate() |
long |
getUptime() |
boolean |
isRunning() |
void |
notifyStateChanged(ServerJob serverJob,
Job.State state) |
void |
reset() |
void |
setConcurrendJobs(int size) |
void |
setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notificationPublisher) |
static List<String> |
sortByDominators(SortedMap<String,JobStateRecorder> jobStatistics) |
void |
start() |
void |
stop() |
public void setConcurrendJobs(int size)
@ManagedAttribute public float getRecentAbortRate()
@ManagedAttribute(description="The average execution time for the last 10 jobs") public long getRecentAverageExecutionTime()
@ManagedAttribute public float getRecentFailureRate()
@ManagedAttribute(description="The maximum execution time for the last 10 jobs") public long getRecentMaximumExecutionTime()
@ManagedAttribute(description="The minimum execution time for the last 10 jobs") public long getRecentMinimumExecutionTime()
@ManagedAttribute public float getTotalAbortRate()
@ManagedAttribute public float getTotalFailureRate()
@ManagedOperation(description="Clear all statistical data about effiency") public void clearEfficiency()
@ManagedOperation(description="Clear all statistical data about execution times") public void clearExecutionTimes()
@ManagedOperation(description="Clear all statistical data about job finish states") public void clearJobRates()
@ManagedAttribute(description="Efficiency of the server within last ten minutes (Unit: Erlang)") public float getEfficiency10Min()
@ManagedAttribute(description="Efficiency of the server within 24 hours (Unit: Erlang)") public float getEfficiency1Day()
@ManagedAttribute(description="Efficiency of the server within last hour (Unit: Erlang)") public float getEfficiency1Hour()
public void setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notificationPublisher)
setNotificationPublisher
in interface org.springframework.jmx.export.notification.NotificationPublisherAware
@ManagedAttribute(description="The average execution time for jobs") public long getAverageExecutionTime()
public void reset()
@ManagedAttribute(description="Number of completed jobs") public long getCompletedTaskCount()
@ManagedAttribute(description="Uptime [ms]") public long getUptime()
@ManagedOperation(description="Dump current statistics into server log") public void dumpStatistics()
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public ObjectName getObjectName() throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.SelfNaming
MalformedObjectNameException
public static List<String> sortByDominators(SortedMap<String,JobStateRecorder> jobStatistics)
Copyright © 2017 levigo holding gmbh. All rights reserved.