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

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

public class NodeAccountingQuery
extends AccountingQuery

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

Nested Class Summary
 class NodeAccountingQuery.InvocationInfo
           
 
Field Summary
static java.lang.String DATE_FORMAT
           
static java.text.SimpleDateFormat format
           
 
Constructor Summary
NodeAccountingQuery()
           
 
Method Summary
 NodeAccountingQuery.InvocationInfo getAverageHourlyInvocationInfo(java.lang.String ServiceClass, java.lang.String ServiceName, java.lang.String[] dateLimits, GCUBEScope... callerScope)
          Deprecated. 
 java.lang.Long getAverageHourlyInvocations(java.lang.String ServiceClass, java.lang.String ServiceName, java.lang.String[] dateLimits, GCUBEScope... callerScope)
          Deprecated. 
 NodeAccountingQuery.InvocationInfo getDailyInvocations(java.lang.String ServiceClass, java.lang.String ServiceName, java.lang.String GHNName, java.lang.String date, GCUBEScope... callerScope)
          Deprecated. 
 java.util.ArrayList<NodeAccountingQuery.InvocationInfo> getDailyInvocationsGroupByIp(java.lang.String ServiceClass, java.lang.String ServiceName, java.lang.String GHNName, java.lang.String date, GCUBEScope... callerScope)
          Deprecated. 
 java.util.Map<java.lang.String,java.util.ArrayList<java.lang.String>> getGHNs()
           
 NodeAccountingQuery.InvocationInfo getHourlyInvocations(java.lang.String ServiceClass, java.lang.String ServiceName, java.lang.String GHNName, java.lang.String date, java.lang.String hourInterval, GCUBEScope... callerScope)
          Deprecated. 
 NodeAccountingQuery.InvocationInfo getInvocationPerHour(java.lang.String startDate, java.lang.String endDate, GCUBEScope... callerScope)
          getInvocationPerHour
 NodeAccountingQuery.InvocationInfo getInvocationPerInterval(java.lang.String serviceClass, java.lang.String serviceName, java.lang.String startDate, java.lang.String endDate, GCUBEScope... callerScope)
           
 NodeAccountingQuery.InvocationInfo getInvocationPerInterval(java.lang.String serviceClass, java.lang.String serviceName, java.lang.String GHNName, java.lang.String startDate, java.lang.String endDate, GCUBEScope... callerScope)
          getInvocationPerInterval
 java.lang.String getInvocationPerInterval(java.lang.String serviceClass, java.lang.String serviceName, java.lang.String GHNName, java.lang.String startDate, java.lang.String endDate, java.lang.String callerScope, java.lang.String groupBy)
           
 java.util.ArrayList<java.util.ArrayList<java.lang.String>> getScopes()
           
 java.util.Map<java.lang.String,java.util.ArrayList<java.lang.String>> getServices()
           
 java.lang.Integer getSumInvocations(java.lang.String ServiceClass, java.lang.String ServiceName, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final java.lang.String DATE_FORMAT
See Also:
Constant Field Values

format

public static java.text.SimpleDateFormat format
Constructor Detail

NodeAccountingQuery

public NodeAccountingQuery()
Method Detail

getInvocationPerInterval

public NodeAccountingQuery.InvocationInfo getInvocationPerInterval(java.lang.String serviceClass,
                                                                   java.lang.String serviceName,
                                                                   java.lang.String GHNName,
                                                                   java.lang.String startDate,
                                                                   java.lang.String endDate,
                                                                   GCUBEScope... callerScope)
                                                            throws java.lang.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:
java.lang.Exception - callerScope

getInvocationPerInterval

public NodeAccountingQuery.InvocationInfo getInvocationPerInterval(java.lang.String serviceClass,
                                                                   java.lang.String serviceName,
                                                                   java.lang.String startDate,
                                                                   java.lang.String endDate,
                                                                   GCUBEScope... callerScope)
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

getInvocationPerInterval

public java.lang.String getInvocationPerInterval(java.lang.String serviceClass,
                                                 java.lang.String serviceName,
                                                 java.lang.String GHNName,
                                                 java.lang.String startDate,
                                                 java.lang.String endDate,
                                                 java.lang.String callerScope,
                                                 java.lang.String groupBy)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getInvocationPerHour

public NodeAccountingQuery.InvocationInfo getInvocationPerHour(java.lang.String startDate,
                                                               java.lang.String endDate,
                                                               GCUBEScope... callerScope)
                                                        throws java.lang.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:
java.lang.Exception

getHourlyInvocations

@Deprecated
public NodeAccountingQuery.InvocationInfo getHourlyInvocations(java.lang.String ServiceClass,
                                                                          java.lang.String ServiceName,
                                                                          java.lang.String GHNName,
                                                                          java.lang.String date,
                                                                          java.lang.String hourInterval,
                                                                          GCUBEScope... callerScope)
                                                        throws java.lang.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:
java.lang.Exception - Exception
EmptyResultException - Exception

getSumInvocations

@Deprecated
public java.lang.Integer getSumInvocations(java.lang.String ServiceClass,
                                                      java.lang.String ServiceName,
                                                      GCUBEScope... callerScope)
                                    throws java.lang.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:
java.lang.Exception - Exception
EmptyResultException - Exception

getAverageHourlyInvocationInfo

@Deprecated
public NodeAccountingQuery.InvocationInfo getAverageHourlyInvocationInfo(java.lang.String ServiceClass,
                                                                                    java.lang.String ServiceName,
                                                                                    java.lang.String[] dateLimits,
                                                                                    GCUBEScope... callerScope)
                                                                  throws java.lang.Exception,
                                                                         EmptyResultException
Deprecated. 

getAverageHourlyInvocations

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

getAverageHourlyInvocations

@Deprecated
public java.lang.Long getAverageHourlyInvocations(java.lang.String ServiceClass,
                                                             java.lang.String ServiceName,
                                                             java.lang.String[] dateLimits,
                                                             GCUBEScope... callerScope)
                                           throws java.lang.Exception,
                                                  EmptyResultException
Deprecated. 

getAverageHourlyInvocations

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

getDailyInvocations

@Deprecated
public NodeAccountingQuery.InvocationInfo getDailyInvocations(java.lang.String ServiceClass,
                                                                         java.lang.String ServiceName,
                                                                         java.lang.String GHNName,
                                                                         java.lang.String date,
                                                                         GCUBEScope... callerScope)
                                                       throws java.lang.Exception,
                                                              EmptyResultException
Deprecated. 

/** getDailyInvocations

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

getDailyInvocationsGroupByIp

@Deprecated
public java.util.ArrayList<NodeAccountingQuery.InvocationInfo> getDailyInvocationsGroupByIp(java.lang.String ServiceClass,
                                                                                                       java.lang.String ServiceName,
                                                                                                       java.lang.String GHNName,
                                                                                                       java.lang.String date,
                                                                                                       GCUBEScope... callerScope)
                                                                                     throws java.lang.Exception,
                                                                                            EmptyResultException
Deprecated. 

getDailyInvocations

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

getServices

public java.util.Map<java.lang.String,java.util.ArrayList<java.lang.String>> getServices()
                                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getGHNs

public java.util.Map<java.lang.String,java.util.ArrayList<java.lang.String>> getGHNs()
                                                                              throws java.lang.Exception
Throws:
java.lang.Exception

getScopes

public java.util.ArrayList<java.util.ArrayList<java.lang.String>> getScopes()
                                                                     throws java.lang.Exception
Throws:
java.lang.Exception