org.gcube.messaging.common.consumerlibrary.query
Class NodeAccountingQuery
java.lang.Object
org.gcube.messaging.common.consumerlibrary.query.Query<ConsumerCL>
org.gcube.messaging.common.consumerlibrary.query.AccountingQuery
org.gcube.messaging.common.consumerlibrary.query.NodeAccountingQuery
- All Implemented Interfaces:
- Serializable
public class NodeAccountingQuery
- extends AccountingQuery
- Author:
- Andrea Manzi(CERN)
- See Also:
- Serialized Form
|
Method Summary |
NodeAccountingQuery.InvocationInfo |
getAverageHourlyInvocationInfo(String ServiceClass,
String ServiceName,
String[] dateLimits,
String... callerScope)
Deprecated. |
Long |
getAverageHourlyInvocations(String ServiceClass,
String ServiceName,
String[] dateLimits,
String... callerScope)
Deprecated. |
NodeAccountingQuery.InvocationInfo |
getDailyInvocations(String ServiceClass,
String ServiceName,
String GHNName,
String date,
String... callerScope)
Deprecated. |
ArrayList<NodeAccountingQuery.InvocationInfo> |
getDailyInvocationsGroupByIp(String ServiceClass,
String ServiceName,
String GHNName,
String date,
String... callerScope)
Deprecated. |
Map<String,ArrayList<String>> |
getGHNs()
|
NodeAccountingQuery.InvocationInfo |
getHourlyInvocations(String ServiceClass,
String ServiceName,
String GHNName,
String date,
String hourInterval,
String... callerScope)
Deprecated. |
NodeAccountingQuery.InvocationInfo |
getInvocationPerHour(String startDate,
String endDate,
String... callerScope)
getInvocationPerHour |
NodeAccountingQuery.InvocationInfo |
getInvocationPerInterval(String serviceClass,
String serviceName,
String startDate,
String endDate,
String... callerScope)
|
NodeAccountingQuery.InvocationInfo |
getInvocationPerInterval(String serviceClass,
String serviceName,
String GHNName,
String startDate,
String endDate,
String... callerScope)
getInvocationPerInterval |
String |
getInvocationPerInterval(String serviceClass,
String serviceName,
String GHNName,
String startDate,
String endDate,
String callerScope,
String groupBy)
|
ArrayList<ArrayList<String>> |
getScopes()
|
Map<String,ArrayList<String>> |
getServices()
|
Integer |
getSumInvocations(String ServiceClass,
String ServiceName,
String... callerScope)
Deprecated. |
| Methods inherited from class org.gcube.messaging.common.consumerlibrary.query.Query |
getCall, getDimensions, getGroupClause, getLimitClause, getOrderClause, getQuery, getResults, getResultsAsArray, printQueryResults, query, setCall, setGroupClause, setLimitClause, setLimitClause, setOrderClause, setQuery, setResults, toJSON |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
format
public static SimpleDateFormat format
NodeAccountingQuery
public NodeAccountingQuery()
getInvocationPerInterval
public NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass,
String serviceName,
String GHNName,
String startDate,
String endDate,
String... callerScope)
throws Exception
- getInvocationPerInterval
- Parameters:
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 - callerScope
- Returns:
- InvocationInfo
- Throws:
Exception - callerScope
getInvocationPerInterval
public NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass,
String serviceName,
String startDate,
String endDate,
String... callerScope)
throws Exception
- Throws:
Exception
getInvocationPerInterval
public String getInvocationPerInterval(String serviceClass,
String serviceName,
String GHNName,
String startDate,
String endDate,
String callerScope,
String groupBy)
throws Exception
- Throws:
Exception
getInvocationPerHour
public NodeAccountingQuery.InvocationInfo getInvocationPerHour(String startDate,
String endDate,
String... callerScope)
throws Exception
- getInvocationPerHour
- Parameters:
startDate - ( in the form "yyyy-MM-dd HH:mm:ss")endDate - ( in the form "yyyy-MM-dd HH:mm:ss")callerScope - callerScope
- Returns:
- InvocationInfo
- Throws:
Exception
getHourlyInvocations
@Deprecated
public NodeAccountingQuery.InvocationInfo getHourlyInvocations(String ServiceClass,
String ServiceName,
String GHNName,
String date,
String hourInterval,
String... callerScope)
throws Exception,
EmptyResultException
- Deprecated.
- getHourlyInvocations
- Parameters:
ServiceClass - ServiceClassServiceName - ServiceNameGHNName - ServiceNamedate - datehourInterval - String in the form (12-13)callerScope - callerScope optional
- Returns:
-
- Throws:
Exception - Exception
EmptyResultException - Exception
getSumInvocations
@Deprecated
public Integer getSumInvocations(String ServiceClass,
String ServiceName,
String... callerScope)
throws Exception,
EmptyResultException
- Deprecated.
- getSumInvocations
- Parameters:
ServiceClass - ServiceClassServiceName - ServiceNameGHNName - ServiceNamedate - datehourInterval - String in the form (12-13)callerScope - callerScope optional
- Returns:
-
- Throws:
Exception - Exception
EmptyResultException - Exception
getAverageHourlyInvocationInfo
@Deprecated
public NodeAccountingQuery.InvocationInfo getAverageHourlyInvocationInfo(String ServiceClass,
String ServiceName,
String[] dateLimits,
String... callerScope)
throws Exception,
EmptyResultException
- Deprecated.
- getAverageHourlyInvocations
- Parameters:
dateLimits - dateLimitscallerScope - optional
- Returns:
- the average number invocation per hour
- Throws:
Exception
EmptyResultException
getAverageHourlyInvocations
@Deprecated
public Long getAverageHourlyInvocations(String ServiceClass,
String ServiceName,
String[] dateLimits,
String... callerScope)
throws Exception,
EmptyResultException
- Deprecated.
- getAverageHourlyInvocations
- Parameters:
dateLimits - dateLimitscallerScope - optional
- Returns:
- the average number invocation per hour
- Throws:
Exception
EmptyResultException
getDailyInvocations
@Deprecated
public NodeAccountingQuery.InvocationInfo getDailyInvocations(String ServiceClass,
String ServiceName,
String GHNName,
String date,
String... callerScope)
throws Exception,
EmptyResultException
- Deprecated.
- /**
getDailyInvocations
- Parameters:
ServiceClass - ServiceClassServiceName - ServiceNameGHNName - GHNNamedate - date stringcallerScope - optional
- Returns:
- InvocationInfo object
- Throws:
Exception - Exception
EmptyResultException - Exception
getDailyInvocationsGroupByIp
@Deprecated
public ArrayList<NodeAccountingQuery.InvocationInfo> getDailyInvocationsGroupByIp(String ServiceClass,
String ServiceName,
String GHNName,
String date,
String... callerScope)
throws Exception,
EmptyResultException
- Deprecated.
- getDailyInvocations
- Parameters:
ServiceClass - ServiceClassServiceName - ServiceNameGHNName - GHNNamedate - date stringcallerScope - optional
- Returns:
- InvocationInfo object
- Throws:
Exception - Exception
EmptyResultException - Exception
getServices
public Map<String,ArrayList<String>> getServices()
throws Exception
- Throws:
Exception
getGHNs
public Map<String,ArrayList<String>> getGHNs()
throws Exception
- Throws:
Exception
getScopes
public ArrayList<ArrayList<String>> getScopes()
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.