Class GetRRdDataAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.runtime.plugins.admin.jvmstatus.monitoring.GetRRdDataAction
-
- All Implemented Interfaces:
MonitoringConstants
,Initializable
,Component
,LogEnabled
,Serviceable
,Action
public class GetRRdDataAction extends ServiceableAction implements Initializable, MonitoringConstants
Get the RRD sample data to JSON format
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
MonitoringConstants.Period
-
-
Field Summary
Fields Modifier and Type Field Description private String
_rrdStoragePath
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Fields inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY
-
-
Constructor Summary
Constructors Constructor Description GetRRdDataAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<Map<String,Object>>
_convertData(SortedMap<Long,Map<String,Object>> data)
private List<org.rrd4j.core.Archive>
_getRelevantArchives(org.rrd4j.core.RrdDb rrdDb)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
initialize()
-
Methods inherited from class org.apache.cocoon.acting.ServiceableAction
service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_rrdStoragePath
private String _rrdStoragePath
-
-
Constructor Detail
-
GetRRdDataAction
public GetRRdDataAction()
-
-
Method Detail
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
_getRelevantArchives
private List<org.rrd4j.core.Archive> _getRelevantArchives(org.rrd4j.core.RrdDb rrdDb)
-
-