public class NodeAccountingQuery extends AccountingQuery
Modifier and Type | Class and Description |
---|---|
class |
NodeAccountingQuery.InvocationInfo |
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT |
static SimpleDateFormat |
format |
call, dateFormat, groupClause, limitClause, orderClause, query, results
Constructor and Description |
---|
NodeAccountingQuery() |
performQuery
getCall, getDimensions, getGroupClause, getLimitClause, getOrderClause, getQuery, getResults, getResultsAsArray, printQueryResults, query, setCall, setGroupClause, setLimitClause, setLimitClause, setOrderClause, setQuery, setResults, toJSON
public static final String DATE_FORMAT
public static SimpleDateFormat format
public NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass, String serviceName, String GHNName, String startDate, String endDate, String... callerScope) throws Exception
serviceClass
- serviceClassserviceName
- serviceNameGHNName
- GHNNamestartDate
- startDate ( in the form "yyyy-MM-dd HH:mm:ss")endDate
- endDate ( in the form "yyyy-MM-dd HH:mm:ss")callerScope
- callerScopeException
- callerScopepublic NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass, String serviceName, String startDate, String endDate, String... callerScope) throws Exception
Exception
public String getInvocationPerInterval(String serviceClass, String serviceName, String GHNName, String startDate, String endDate, String callerScope, String groupBy) throws Exception
Exception
public NodeAccountingQuery.InvocationInfo getInvocationPerHour(String startDate, String endDate, String... callerScope) throws Exception
startDate
- ( in the form "yyyy-MM-dd HH:mm:ss")endDate
- ( in the form "yyyy-MM-dd HH:mm:ss")callerScope
- callerScopeException
@Deprecated public NodeAccountingQuery.InvocationInfo getHourlyInvocations(String ServiceClass, String ServiceName, String GHNName, String date, String hourInterval, String... callerScope) throws Exception, EmptyResultException
ServiceClass
- ServiceClassServiceName
- ServiceNameGHNName
- ServiceNamedate
- datehourInterval
- String in the form (12-13)callerScope
- callerScope optionalException
- ExceptionEmptyResultException
- Exception@Deprecated public Integer getSumInvocations(String ServiceClass, String ServiceName, String... callerScope) throws Exception, EmptyResultException
ServiceClass
- ServiceClassServiceName
- ServiceNameGHNName
- ServiceNamedate
- datehourInterval
- String in the form (12-13)callerScope
- callerScope optionalException
- ExceptionEmptyResultException
- Exception@Deprecated public NodeAccountingQuery.InvocationInfo getAverageHourlyInvocationInfo(String ServiceClass, String ServiceName, String[] dateLimits, String... callerScope) throws Exception, EmptyResultException
dateLimits
- dateLimitscallerScope
- optionalException
EmptyResultException
@Deprecated public Long getAverageHourlyInvocations(String ServiceClass, String ServiceName, String[] dateLimits, String... callerScope) throws Exception, EmptyResultException
dateLimits
- dateLimitscallerScope
- optionalException
EmptyResultException
@Deprecated public NodeAccountingQuery.InvocationInfo getDailyInvocations(String ServiceClass, String ServiceName, String GHNName, String date, String... callerScope) throws Exception, EmptyResultException
ServiceClass
- ServiceClassServiceName
- ServiceNameGHNName
- GHNNamedate
- date stringcallerScope
- optionalException
- ExceptionEmptyResultException
- Exception@Deprecated public ArrayList<NodeAccountingQuery.InvocationInfo> getDailyInvocationsGroupByIp(String ServiceClass, String ServiceName, String GHNName, String date, String... callerScope) throws Exception, EmptyResultException
ServiceClass
- ServiceClassServiceName
- ServiceNameGHNName
- GHNNamedate
- date stringcallerScope
- optionalException
- ExceptionEmptyResultException
- ExceptionCopyright © 2015. All Rights Reserved.