Examples of CustomMeteringAgent


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

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

     * @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

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

     * @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

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

     * @throws UsageException
     */

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

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

     * @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

Examples of org.wso2.carbon.usage.agent.api.CustomMeteringAgent

     * @return  duration array
     * @throws Exception
     */

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

Examples of org.wso2.carbon.usage.agent.api.CustomMeteringAgent

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

Examples of org.wso2.carbon.usage.agent.api.CustomMeteringAgent

     * @param value   value of measurement
     * @throws Exception
     */
    public void persistUsage(String userName, String duration, String measurement, String value)
            throws Exception {
        new CustomMeteringAgent(getGovernanceRegistry()).persistUsage(duration, measurement, value);
    }
View Full Code Here

Examples of org.wso2.carbon.usage.agent.api.CustomMeteringAgent

     * @throws UsageException
     */

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

Examples of org.wso2.carbon.usage.agent.api.CustomMeteringAgent

     * @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
Copyright © 2018 www.massapi.com. 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.