|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EZBStatisticComponent
Interface for the EasyBeans statistic component.
| Nested Class Summary | |
|---|---|
static class |
EZBStatisticComponent.STATISTIC_FACTORY_MODE
STATISTIC_FACTORY_MODE define how statistic factory state should be managed. INHERIT : The statistic factory state is inherited from its parent. MANUAL : The statistic factory state is define manually. |
static class |
EZBStatisticComponent.STATISTIC_MODE
STATISTIC_FACTORY_MODE define how statistic state should be managed. AUTO : The statistic state is the result of a logic AND between its provider state and its factory state. MANUAL : The statistic state is define manually. |
static class |
EZBStatisticComponent.STATISTIC_PROVIDER_MODE
STATISTIC_PROVIDER_MODE define how statistic provider state should be managed. INHERIT : The statistic provider state is inherited from its parent. MANUAL : The statistic provider state is define manually. |
| Method Summary | |
|---|---|
String |
getStatisticDescription(String statisticId)
Get the statistic description for the given statistic. |
List<String> |
getStatisticFactoryIds()
Get registered statistic factory ids. |
EZBStatisticComponent.STATISTIC_FACTORY_MODE |
getStatisticFactoryMode(String statisticFactoryId)
Get the statistic factory mode for the given statistic factory. |
boolean |
getStatisticFactoryState(String statisticFactoryId)
Get the statistic factory state for the given statistic factory. |
List<String> |
getStatisticIds()
Get all statistic ids. |
long |
getStatisticLastSampleTime(String statisticId)
Get the statistic last sample time for the given statistic. |
EZBStatisticComponent.STATISTIC_MODE |
getStatisticMode(String statisticId)
Get the statistic mode for the given statistic. |
String |
getStatisticName(String statisticId)
Get the statistic name for the given statistic. |
List<String> |
getStatisticProviderIds()
Get registered statistic provider ids. |
EZBStatisticComponent.STATISTIC_PROVIDER_MODE |
getStatisticProviderMode(String statisticProviderId)
Get the statistic provider mode for the given statistic provider. |
boolean |
getStatisticProviderState(String statisticProviderId)
Get the statistic provider state for the given statistic provider. |
long |
getStatisticStartTime(String statisticId)
Get the statistic start time for the given statistic. |
boolean |
getStatisticState(String statisticId)
Get the statistic state for the given statistic. |
String |
getStatisticValue(String statisticId)
Get the statistic value for the given statistic. |
void |
importStatisticFactory(URL url)
Import a new Statistic factory from the given URL. The factory is downloaded, then compiled, then instanciated and finally registered in the component. |
void |
registerJ2EEManagedObject(EZBJ2EEManagedObject object)
Register a new J2EE managed object. If a J2EE managed object with the same id is already registered, it will be unregistered first. |
void |
registerStatisticFactory(EZBStatisticFactory statisticFactory)
Register a new statistic factory. If a statistic factory with the same id is already registered, it will be unregistered first. |
void |
resetStatistic(String statisticId)
Reset the given statistic. |
void |
setStatisticFactoryMode(String statisticFactoryId,
EZBStatisticComponent.STATISTIC_FACTORY_MODE statisticFactoryMode)
Set the statistic factory mode for the given statistic factory. |
void |
setStatisticFactoryState(String statisticFactoryId,
boolean statisticFactoryState)
Set the statistic factory state for the given statistic factory. The statistic factory mode is automatically set to MANUAL. |
void |
setStatisticMode(String statisticId,
EZBStatisticComponent.STATISTIC_MODE statisticMode)
Set the statistic mode for the given statistic. |
void |
setStatisticProviderMode(String statisticProviderId,
EZBStatisticComponent.STATISTIC_PROVIDER_MODE statisticProviderMode)
Set the statistic provider mode for the given statistic provider. |
void |
setStatisticProviderState(String statisticProviderId,
boolean statisticProviderState)
Set the statistic provider state for the given statistic provider. The statistic provider mode is automatically set to MANUAL. |
void |
setStatisticState(String statisticId,
boolean statisticStateValue)
Set the statistic state for the given statistic. The statistic mode is automatically set to MANUAL. |
void |
unregisterJ2EEManagedObject(EZBJ2EEManagedObject object)
Unregister a J2EE managed object. |
void |
unregisterStatisticFactory(EZBStatisticFactory statisticFactory)
Unregister a statistic factory. |
| Methods inherited from interface org.ow2.easybeans.component.api.EZBComponent |
|---|
init, start, stop |
| Method Detail |
|---|
void registerStatisticFactory(EZBStatisticFactory statisticFactory)
statisticFactory - The statistic factory to register.void unregisterStatisticFactory(EZBStatisticFactory statisticFactory)
statisticFactory - The statistic factory to unregister.void registerJ2EEManagedObject(EZBJ2EEManagedObject object)
object - The J2EE managed object to register.void unregisterJ2EEManagedObject(EZBJ2EEManagedObject object)
object - The J2EE managed object to unregister.
void importStatisticFactory(URL url)
throws EZBComponentException
url - The file to download.
EZBComponentException - If an error occurs while downloading, compiling, instanciating, or registering the factory.
List<String> getStatisticFactoryIds()
throws EZBComponentException
EZBComponentException - If an error occurs.
EZBStatisticComponent.STATISTIC_FACTORY_MODE getStatisticFactoryMode(String statisticFactoryId)
throws EZBComponentException
statisticFactoryId - The statistic factory id.
EZBComponentException - If an error occurs.
void setStatisticFactoryMode(String statisticFactoryId,
EZBStatisticComponent.STATISTIC_FACTORY_MODE statisticFactoryMode)
throws EZBComponentException
statisticFactoryId - The statistic factory id.statisticFactoryMode - The statistic factory mode.
EZBComponentException - If an error occurs.
boolean getStatisticFactoryState(String statisticFactoryId)
throws EZBComponentException
statisticFactoryId - The statistic factory id.
EZBComponentException - If an error occurs.
void setStatisticFactoryState(String statisticFactoryId,
boolean statisticFactoryState)
throws EZBComponentException
statisticFactoryId - The statistic factory id.statisticFactoryState - The statistic factory state
EZBComponentException - If an error occurs.
List<String> getStatisticProviderIds()
throws EZBComponentException
EZBComponentException - If an error occurs.
EZBStatisticComponent.STATISTIC_PROVIDER_MODE getStatisticProviderMode(String statisticProviderId)
throws EZBComponentException
statisticProviderId - The statistic provider id.
EZBComponentException - If an error occurs.
void setStatisticProviderMode(String statisticProviderId,
EZBStatisticComponent.STATISTIC_PROVIDER_MODE statisticProviderMode)
throws EZBComponentException
statisticProviderId - The statistic provider id.statisticProviderMode - The statistic provider mode.
EZBComponentException - If an error occurs.
boolean getStatisticProviderState(String statisticProviderId)
throws EZBComponentException
statisticProviderId - The statistic provider id.
EZBComponentException - If an error occurs.
void setStatisticProviderState(String statisticProviderId,
boolean statisticProviderState)
throws EZBComponentException
statisticProviderId - The statistic provider id.statisticProviderState - The statistic provider state.
EZBComponentException - If an error occurs.
List<String> getStatisticIds()
throws EZBComponentException
EZBComponentException - If an error occurs.
EZBStatisticComponent.STATISTIC_MODE getStatisticMode(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
void setStatisticMode(String statisticId,
EZBStatisticComponent.STATISTIC_MODE statisticMode)
throws EZBComponentException
statisticId - The statistic id.statisticMode - The statistic mode.
EZBComponentException - If an error occurs.
boolean getStatisticState(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
void setStatisticState(String statisticId,
boolean statisticStateValue)
throws EZBComponentException
statisticId - The statistic id.statisticStateValue - The statistic state.
EZBComponentException - If an error occurs.
void resetStatistic(String statisticId)
throws EZBComponentException
statisticId - The statistic id to reset.
EZBComponentException - If an error occurs.
String getStatisticName(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
String getStatisticDescription(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
String getStatisticValue(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
long getStatisticStartTime(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
long getStatisticLastSampleTime(String statisticId)
throws EZBComponentException
statisticId - The statistic id.
EZBComponentException - If an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||