|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.exchangesimple.monitor.ActivationMonitor
public class ActivationMonitor
Activation monitor which provides useful informations about activation.
Constructor Summary | |
---|---|
ActivationMonitor(ModuleRegistry moduleRegistry)
|
Method Summary | |
---|---|
void |
addActivationTime(long time)
Adds time needed for activation to complete. |
void |
addCommitedTransaction()
Increase number of commited transactions by 1. |
void |
addRollbackedTransaction()
Increase number of rollbacked transactions by 1. |
void |
addSizeOfActivatedContent(long size)
Adds size of content that is being activated. |
Collection<ActivationLogEntry> |
getActivationErrorLog()
Gets collection of errors that occurred during activation. |
int |
getActivationErrors()
Gets number of activation errors since last restart. |
Collection<ActivationLogEntry> |
getActivationLog()
Gets activation log. |
int |
getActivations()
Gets number of activations since last restart. |
Collection<ActivationLogEntry> |
getActivationsMadeByUser(String user)
Gets activations made by a specified user. |
Map<String,Integer> |
getActivationsPerWorkspace()
Gets activations per workspace since last restart. |
long |
getActivationTime()
Gets time that was spent on activations. |
int |
getCommitedTransactions()
Gets number of commited transactions since last restart. |
int |
getDeactivations()
Gets number of deactivations since last restart. |
Date |
getLastRestartDate()
Gets date from last restart. |
int |
getRollbackedTransactions()
Gets number of rollbacked transactions since last restart. |
long |
getSizeOfActivatedContent()
Gets size of activated content since last restart (in kilobytes). |
Map<String,ResponseTimeEntry> |
getSubscriberResponseTimes()
Gets response times for subscribers. |
void |
logActivation(String path,
String user,
String workspaceName,
String subscriber,
boolean deactivation,
boolean success)
Logs activation request. |
void |
logError(String path,
String user,
String workspaceName,
String subscriber,
Throwable t,
boolean deactivation)
Logs error that occurred during activation. |
void |
setSubscriberResponseTime(String subscriber,
long time)
Logs subscriber response time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public ActivationMonitor(ModuleRegistry moduleRegistry)
Method Detail |
---|
public void logActivation(String path, String user, String workspaceName, String subscriber, boolean deactivation, boolean success)
ActivationStorage
logActivation
in interface ActivationStorage
user
- user that made activation requestdeactivation
- true if is deactivation, false if activationpublic int getActivations()
ActivationStorage
getActivations
in interface ActivationStorage
public int getDeactivations()
ActivationStorage
getDeactivations
in interface ActivationStorage
public int getActivationErrors()
ActivationStorage
getActivationErrors
in interface ActivationStorage
public long getSizeOfActivatedContent()
ActivationStorage
getSizeOfActivatedContent
in interface ActivationStorage
public Collection<ActivationLogEntry> getActivationLog()
ActivationStorage
getActivationLog
in interface ActivationStorage
public Collection<ActivationLogEntry> getActivationsMadeByUser(String user)
ActivationStorage
getActivationsMadeByUser
in interface ActivationStorage
user
- name of user
public Map<String,Integer> getActivationsPerWorkspace()
ActivationStorage
getActivationsPerWorkspace
in interface ActivationStorage
public Map<String,ResponseTimeEntry> getSubscriberResponseTimes()
ActivationStorage
getSubscriberResponseTimes
in interface ActivationStorage
public void logError(String path, String user, String workspaceName, String subscriber, Throwable t, boolean deactivation)
ActivationStorage
logError
in interface ActivationStorage
path
- node pathuser
- user's namet
- exception that occurred during activationdeactivation
- true if deactivation, false if activationpublic void setSubscriberResponseTime(String subscriber, long time)
ActivationStorage
setSubscriberResponseTime
in interface ActivationStorage
subscriber
- name of subscribertime
- time in milisecondspublic Collection<ActivationLogEntry> getActivationErrorLog()
ActivationStorage
getActivationErrorLog
in interface ActivationStorage
public int getCommitedTransactions()
ActivationStorage
getCommitedTransactions
in interface ActivationStorage
public int getRollbackedTransactions()
ActivationStorage
getRollbackedTransactions
in interface ActivationStorage
public void addSizeOfActivatedContent(long size)
ActivationStorage
addSizeOfActivatedContent
in interface ActivationStorage
public void addActivationTime(long time)
ActivationStorage
addActivationTime
in interface ActivationStorage
time
- time in millisecondspublic long getActivationTime()
ActivationStorage
getActivationTime
in interface ActivationStorage
public Date getLastRestartDate()
ActivationStorage
getLastRestartDate
in interface ActivationStorage
public void addCommitedTransaction()
ActivationStorage
addCommitedTransaction
in interface ActivationStorage
public void addRollbackedTransaction()
ActivationStorage
addRollbackedTransaction
in interface ActivationStorage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |