Cisco Systems, Inc.

com.pcube.apps.quota.api
Class QuotaBucketsProfileGy

java.lang.Object
  extended by com.pcube.apps.quota.api.QuotaBucketsProfile
      extended by com.pcube.apps.quota.api.QuotaBucketsProfileGy

public class QuotaBucketsProfileGy
extends QuotaBucketsProfile

Configuring Gy Quota Buckets. Allow configuring buckets defaults. Attaching Service to Bucket.

Author:
rbaryana

Constructor Summary
QuotaBucketsProfileGy(Policy p, java.lang.String name)
           
 
Method Summary
 void attachBucket(java.lang.String serviceName, int bucketId)
          Attach Service to be counted on bucket.
 void attachBucket(java.lang.String serviceName, int bucketId, int serviceFrameNum)
          Attach Service to be counted on bucket.
 void setFinalUnitAction(int bucketId, QuotaBucketDataGy.FinalUnitAction finalUnitAction)
          Set final unit action default.
 void setQuotaConsumptionTime(int bucketId, long quotaConsumptionTime)
          set quota consumption in seconds default.
 void setQuotaHoldingTime(int bucketId, long quotaHoldingTime)
          set quota holding time in seconds default.
 void setQuotaValidityTime(int bucketId, long quotaValidityTime)
          set quota validity time deafult
 void setReqQuotaUponLogin(int bucketId, boolean reqQuotaUponLogin)
          set is request quota upon login default
 
Methods inherited from class com.pcube.apps.quota.api.QuotaBucketsProfile
getMyName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotaBucketsProfileGy

public QuotaBucketsProfileGy(Policy p,
                             java.lang.String name)
Parameters:
p - - Policy
name - - profile name (must be unique).
Method Detail

setReqQuotaUponLogin

public void setReqQuotaUponLogin(int bucketId,
                                 boolean reqQuotaUponLogin)
set is request quota upon login default

Parameters:
reqQuotaUponLogin -

setQuotaConsumptionTime

public void setQuotaConsumptionTime(int bucketId,
                                    long quotaConsumptionTime)
set quota consumption in seconds default.

Parameters:
quotaConsumptionTime -

setQuotaHoldingTime

public void setQuotaHoldingTime(int bucketId,
                                long quotaHoldingTime)
set quota holding time in seconds default.

Parameters:
quotaHoldingTime -

setQuotaValidityTime

public void setQuotaValidityTime(int bucketId,
                                 long quotaValidityTime)
set quota validity time deafult

Parameters:
quotaValidityTime - - time in seconds

setFinalUnitAction

public void setFinalUnitAction(int bucketId,
                               QuotaBucketDataGy.FinalUnitAction finalUnitAction)
Set final unit action default.

Parameters:
bucketId -
finalUnitAction -

attachBucket

public void attachBucket(java.lang.String serviceName,
                         int bucketId)
                  throws QuotaDataException
Attach Service to be counted on bucket. Service must have service rule to be activated.

Parameters:
service -
bucketId -
Throws:
QuotaDataException

attachBucket

public void attachBucket(java.lang.String serviceName,
                         int bucketId,
                         int serviceFrameNum)
                  throws QuotaDataException
Attach Service to be counted on bucket. Service must have service rule to be activated.

Parameters:
serviceName - - service name
bucketId -
serviceFrameNum - - the time frame
Throws:
QuotaDataException

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.