34353637383940
* @return duration array * @throws Exception */ public String[] getRecordedDurations(String measurement) throws Exception { return new CustomMeteringAgent(getGovernanceRegistry()).getRecordedDurations(measurement); }
4647484950515253
* @return true if usage entry exist * @throws Exception */ public boolean isUsageEntryExists( String duration, String measurement) throws Exception { return new CustomMeteringAgent(getGovernanceRegistry()).isUsageEntryExists(duration, measurement); }
59606162636465
* @param value value of measurement * @throws Exception */ public void persistUsage( String duration, String measurement, String value) throws Exception { new CustomMeteringAgent(getGovernanceRegistry()).persistUsage(duration, measurement, value); }
7273747576777879
* @throws UsageException */ public String retrieveUsage( String duration, String measurement) throws UsageException { return new CustomMeteringAgent(getGovernanceRegistry()) .retrieveUsage(duration, measurement); }
8788899091929394
* @return usage value * @throws Exception */ public long addUsage(String userName, String duration, String measurement, long value) throws Exception { return new CustomMeteringAgent(getGovernanceRegistry()).addUsage(duration, measurement, value); }