Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class CountersManager

java.lang.Object
  extended by com.pcube.apps.engage.policy.CountersManager

public class CountersManager
extends java.lang.Object

Global and Subscriber scopes Counters Manager

Author:
rafis

Constructor Summary
CountersManager()
           
 
Method Summary
static java.util.List getCounterNames(Policy policy, AccountingScope scope)
          list of counter names ordered by counter index.
static java.util.List getCounterToProtocolFamilyMapping(Policy policy, AccountingScope scope)
          create and return a list that at location i has a list of protocol families that their aggregated volume/sessions/seconds is counted by counter i.
static java.util.List getCounterToServicesMapping(Policy policy, AccountingScope scope)
          create and return a list that at location i has a list of services that their aggregated volume/sessions/seconds is counted by counter i.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountersManager

public CountersManager()
Method Detail

getCounterNames

public static java.util.List getCounterNames(Policy policy,
                                             AccountingScope scope)
list of counter names ordered by counter index. if counter with index i does not exist the location i is null.

Parameters:
policy -
scope -
Returns:

getCounterToServicesMapping

public static java.util.List getCounterToServicesMapping(Policy policy,
                                                         AccountingScope scope)
create and return a list that at location i has a list of services that their aggregated volume/sessions/seconds is counted by counter i. if counter i does not exist the value at location i is null

Parameters:
policy -
Returns:

getCounterToProtocolFamilyMapping

public static java.util.List getCounterToProtocolFamilyMapping(Policy policy,
                                                               AccountingScope scope)
create and return a list that at location i has a list of protocol families that their aggregated volume/sessions/seconds is counted by counter i. if counter i does not exist the value at location i is null. Counter X is associated with protocol family Y if at least half of the trafiic accounted by X belong to protocols of family Y. Removed the above mentioned "atleast half" check , since its causing the erronic reports.

Parameters:
policy -
accounting - scope

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.