|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActivationStorage
Interface providing methods to store informations about activation.
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. |
Method Detail |
---|
void setSubscriberResponseTime(String subscriber, long time)
subscriber
- name of subscribertime
- time in milisecondsvoid logError(String path, String user, String workspaceName, String subscriber, Throwable t, boolean deactivation)
path
- node pathuser
- user's nameworkspaceName
- subscriber
- t
- exception that occurred during activationdeactivation
- true if deactivation, false if activationvoid addSizeOfActivatedContent(long size)
size
- void logActivation(String path, String user, String workspaceName, String subscriber, boolean deactivation, boolean success)
node
- node which is being activateduser
- user that made activation requestdeactivation
- true if is deactivation, false if activationvoid addActivationTime(long time)
time
- time in millisecondsvoid addCommitedTransaction()
void addRollbackedTransaction()
long getActivationTime()
int getActivations()
int getDeactivations()
int getActivationErrors()
int getCommitedTransactions()
int getRollbackedTransactions()
long getSizeOfActivatedContent()
Date getLastRestartDate()
Collection<ActivationLogEntry> getActivationLog()
Collection<ActivationLogEntry> getActivationErrorLog()
Collection<ActivationLogEntry> getActivationsMadeByUser(String user)
user
- name of user
Map<String,Integer> getActivationsPerWorkspace()
Map<String,ResponseTimeEntry> getSubscriberResponseTimes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |