org.gcube.messaging.common.consumerlibrary.query
Class NodeAccountingQuery

java.lang.Object
  extended by org.gcube.messaging.common.consumerlibrary.query.Query<ConsumerCL>
      extended by org.gcube.messaging.common.consumerlibrary.query.AccountingQuery
          extended by org.gcube.messaging.common.consumerlibrary.query.NodeAccountingQuery
All Implemented Interfaces:
Serializable

public class NodeAccountingQuery
extends AccountingQuery

Author:
Andrea Manzi(CERN)
See Also:
Serialized Form

Nested Class Summary
 class NodeAccountingQuery.InvocationInfo
           
 
Field Summary
static String DATE_FORMAT
           
static SimpleDateFormat format
           
 
Fields inherited from class org.gcube.messaging.common.consumerlibrary.query.Query
call, dateFormat, groupClause, limitClause, orderClause, query, results
 
Constructor Summary
NodeAccountingQuery()
           
 
Method Summary
 NodeAccountingQuery.InvocationInfo getAverageHourlyInvocationInfo(String ServiceClass, String ServiceName, String[] dateLimits, org.gcube.common.core.scope.GCUBEScope... callerScope)
          Deprecated. 
 Long getAverageHourlyInvocations(String ServiceClass, String ServiceName, String[] dateLimits, org.gcube.common.core.scope.GCUBEScope... callerScope)
          Deprecated. 
 NodeAccountingQuery.InvocationInfo getDailyInvocations(String ServiceClass, String ServiceName, String GHNName, String date, org.gcube.common.core.scope.GCUBEScope... callerScope)
          Deprecated. 
 ArrayList<NodeAccountingQuery.InvocationInfo> getDailyInvocationsGroupByIp(String ServiceClass, String ServiceName, String GHNName, String date, org.gcube.common.core.scope.GCUBEScope... callerScope)
          Deprecated. 
 Map<String,ArrayList<String>> getGHNs()
           
 NodeAccountingQuery.InvocationInfo getHourlyInvocations(String ServiceClass, String ServiceName, String GHNName, String date, String hourInterval, org.gcube.common.core.scope.GCUBEScope... callerScope)
          Deprecated. 
 NodeAccountingQuery.InvocationInfo getInvocationPerHour(String startDate, String endDate, org.gcube.common.core.scope.GCUBEScope... callerScope)
          getInvocationPerHour
 NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass, String serviceName, String startDate, String endDate, org.gcube.common.core.scope.GCUBEScope... callerScope)
           
 NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass, String serviceName, String GHNName, String startDate, String endDate, org.gcube.common.core.scope.GCUBEScope... 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, org.gcube.common.core.scope.GCUBEScope... callerScope)
          Deprecated. 
 
Methods inherited from class org.gcube.messaging.common.consumerlibrary.query.AccountingQuery
performQuery
 
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
 

Field Detail

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values

format

public static SimpleDateFormat format
Constructor Detail

NodeAccountingQuery

public NodeAccountingQuery()
Method Detail

getInvocationPerInterval

public NodeAccountingQuery.InvocationInfo getInvocationPerInterval(String serviceClass,
                                                                   String serviceName,
                                                                   String GHNName,
                                                                   String startDate,
                                                                   String endDate,
                                                                   org.gcube.common.core.scope.GCUBEScope... callerScope)
                                                            throws Exception
getInvocationPerInterval

Parameters:
serviceClass - serviceClass
serviceName - serviceName
GHNName - GHNName
startDate - 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,
                                                                   org.gcube.common.core.scope.GCUBEScope... 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,
                                                               org.gcube.common.core.scope.GCUBEScope... 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,
                                                                          org.gcube.common.core.scope.GCUBEScope... callerScope)
                                                        throws Exception,
                                                               EmptyResultException
Deprecated. 

getHourlyInvocations

Parameters:
ServiceClass - ServiceClass
ServiceName - ServiceName
GHNName - ServiceName
date - date
hourInterval - String in the form (12-13)
callerScope - callerScope optional
Returns:
Throws:
Exception - Exception
EmptyResultException - Exception

getSumInvocations

@Deprecated
public Integer getSumInvocations(String ServiceClass,
                                            String ServiceName,
                                            org.gcube.common.core.scope.GCUBEScope... callerScope)
                          throws Exception,
                                 EmptyResultException
Deprecated. 

getSumInvocations

Parameters:
ServiceClass - ServiceClass
ServiceName - ServiceName
GHNName - ServiceName
date - date
hourInterval - 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,
                                                                                    org.gcube.common.core.scope.GCUBEScope... callerScope)
                                                                  throws Exception,
                                                                         EmptyResultException
Deprecated. 

getAverageHourlyInvocations

Parameters:
dateLimits - dateLimits
callerScope - optional
Returns:
the average number invocation per hour
Throws:
Exception
EmptyResultException

getAverageHourlyInvocations

@Deprecated
public Long getAverageHourlyInvocations(String ServiceClass,
                                                   String ServiceName,
                                                   String[] dateLimits,
                                                   org.gcube.common.core.scope.GCUBEScope... callerScope)
                                 throws Exception,
                                        EmptyResultException
Deprecated. 

getAverageHourlyInvocations

Parameters:
dateLimits - dateLimits
callerScope - 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,
                                                                         org.gcube.common.core.scope.GCUBEScope... callerScope)
                                                       throws Exception,
                                                              EmptyResultException
Deprecated. 

/** getDailyInvocations

Parameters:
ServiceClass - ServiceClass
ServiceName - ServiceName
GHNName - GHNName
date - date string
callerScope - optional
Returns:
InvocationInfo object
Throws:
Exception - Exception
EmptyResultException - Exception

getDailyInvocationsGroupByIp

@Deprecated
public ArrayList<NodeAccountingQuery.InvocationInfo> getDailyInvocationsGroupByIp(String ServiceClass,
                                                                                             String ServiceName,
                                                                                             String GHNName,
                                                                                             String date,
                                                                                             org.gcube.common.core.scope.GCUBEScope... callerScope)
                                                                           throws Exception,
                                                                                  EmptyResultException
Deprecated. 

getDailyInvocations

Parameters:
ServiceClass - ServiceClass
ServiceName - ServiceName
GHNName - GHNName
date - date string
callerScope - 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.