Package org.apache.stratos.usage.agent.api

Examples of org.apache.stratos.usage.agent.api.CustomMeteringAgent


     * @return  duration array
     * @throws Exception
     */

    public String[] getRecordedDurations(String measurement) throws Exception {
        return new CustomMeteringAgent(getGovernanceRegistry()).getRecordedDurations(measurement);
    }
View Full Code Here


     * @return true if usage entry exist
     * @throws Exception
     */
    public boolean isUsageEntryExists( String duration, String measurement)
            throws Exception {
        return new CustomMeteringAgent(getGovernanceRegistry()).isUsageEntryExists(duration,
                measurement);
    }
View Full Code Here

     * @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);
    }
View Full Code Here

     * @throws UsageException
     */

    public String retrieveUsage( String duration, String measurement)
            throws UsageException {
        return new CustomMeteringAgent(getGovernanceRegistry())
                .retrieveUsage(duration, measurement);
    }
View Full Code Here

     * @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);
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.usage.agent.api.CustomMeteringAgent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.