|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.framework.sql.BaseDao
com.esri.gpt.server.usage.harvester.HarvesterStatisticsDao
public class HarvesterStatisticsDao
Harvester statistics data access object.
Constructor Summary | |
---|---|
HarvesterStatisticsDao(ResponseWriter writer)
Creates instance of the DAO. |
Method Summary | |
---|---|
protected HashMap<String,String> |
collectSitesByProtocolType(HashMap<String,Object> protocolMap)
Collect docuuid of sites on a schedule by protocol type |
protected String |
createCountCompletedSQL(int timePeriod)
Creates Select SQL to count completed jobs. |
protected String |
createCountOfApprovedSites()
Create sql to fetch count of approved sites |
protected String |
createCountOfApprovedSitesByProtocol()
Create sql to fetch count of approved sites by protocol |
protected String |
createCountOfApprovedSitesOnSchedule()
Create sql to fetch count of approved sites that are on a schedule |
protected String |
createCountOfApprovedSitesOnScheduleByProtocol()
Create sql to fetch count of approved sites on a schedule by protocol |
protected String |
createCountOfRegisteredSites()
Create sql to fetch count of registered sites |
protected String |
createCountOfRegisteredSitesByProtocol()
Create sql to fetch count of registered sites by protocol |
protected String |
createCountPendingSQL(int timePeriod)
Creates Select SQL to count jobs with 'Running' or 'submitted' statuses. |
protected String |
createCountPendingSQLByStatus()
Creates Select SQL to count jobs grouped by 'Running' or 'submitted' statuses. |
protected String |
createDocumentCount()
Create sql to fetch published document count for a site. |
protected String |
createHistoryCountsSQL(int timePeriod)
Creates Select SQL to count harvesting history table |
protected String |
createSelectCompletedSQL(String uuids,
String startDate,
String endDate)
Creates Select SQL to select complete jobs based on criteria. |
protected String |
createSelectHistorySQL(String uuids,
String startDate,
String endDate)
Creates Select SQL to fetch rows harvesting history table based on constraints. |
protected String |
createSelectPendingSQL(String uuids,
String startDate,
String endDate)
Creates Select SQL to select pending jobs based on criteria. |
protected void |
fetchCompleted(String sql,
String uuids,
String startDate,
String endDate)
Fetches information from harvesting complete table |
protected int |
fetchCountByTime(String sql,
int timePeriod)
Fetch count of records using given sql and timeperiod |
protected void |
fetchDocumentCountByProtocol(HashMap<String,Object> protocolMap,
HashMap<String,String> docuuidMap)
Fetches published document count grouped by protocol type |
protected int[] |
fetchHarvestCounts(int timePeriod)
This method is used to fetch harvest counts for given number of days from current date |
protected void |
fetchHistory(String sql,
String uuids,
String startDate,
String endDate)
Fetches harvesting history information |
protected void |
fetchPending(String sql,
String uuids,
String startDate,
String endDate)
Fetches information from pending table. |
protected HashMap<String,Object> |
fetchRepositoriesSummaryByProtocol()
Fetches repository summary information by protocol |
protected int[] |
fetchSummary()
Fetches Summary information for web harvester |
protected String |
getHarvestingDataTableName()
Gets the harvesting table name. |
protected String |
getHarvestingHistoryTableName()
Gets harvesting history table name. |
protected String |
getHarvestingJobsCompletedTableName()
Gets completed harvesting jobs table name. |
protected String |
getHarvestingJobTableName()
Gets harvesting job table name. |
protected String |
getHarvestingTableName()
Gets the harvesting table name. |
protected String |
getResourceTableName()
Gets completed harvesting jobs table name. |
protected void |
populateProtocolInfo(HashMap<String,Object> protocolMap,
String sql,
String propertyName)
Populates protocol info objects map using sql. |
protected String |
selectDistinctProtocols()
Create sql to select distinct registered site protocols |
Methods inherited from class com.esri.gpt.framework.sql.BaseDao |
---|
appendExpression, appendValueFilter, closeResultSet, closeStatement, getApplicationConfiguration, getIsDbCaseSensitive, getRequestContext, logExpression, returnConnection, setRequestContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HarvesterStatisticsDao(ResponseWriter writer)
writer
- response writerMethod Detail |
---|
protected String createHistoryCountsSQL(int timePeriod)
protected String createSelectHistorySQL(String uuids, String startDate, String endDate)
protected String createCountPendingSQLByStatus()
protected String createCountPendingSQL(int timePeriod)
protected String createCountCompletedSQL(int timePeriod)
protected String createSelectPendingSQL(String uuids, String startDate, String endDate)
protected String createSelectCompletedSQL(String uuids, String startDate, String endDate)
protected String createCountOfRegisteredSites()
protected String createCountOfApprovedSites()
protected String createCountOfApprovedSitesOnSchedule()
protected String createCountOfApprovedSitesByProtocol()
protected String createCountOfRegisteredSitesByProtocol()
protected String createCountOfApprovedSitesOnScheduleByProtocol()
protected String createDocumentCount()
protected HashMap<String,String> collectSitesByProtocolType(HashMap<String,Object> protocolMap) throws SQLException
protocolMap
- map of docuuid of sites on schedule and their
corresponding protocol type
SQLException
- if sql exception occursprotected int fetchCountByTime(String sql, int timePeriod) throws SQLException
sql
- the sql query to executetimePeriod
- the number of days from current date
SQLException
- if sql exception occursprotected void fetchCompleted(String sql, String uuids, String startDate, String endDate) throws Exception
sql
- the sql query to executeuuids
- the uuids constraintstartDate
- the start date constraintendDate
- the end date constraint
Exception
- if exception occursprotected void fetchDocumentCountByProtocol(HashMap<String,Object> protocolMap, HashMap<String,String> docuuidMap) throws SQLException
protocolMap
- the protocol type object mapdocuuidMap
- the docuuid map of sites on schedule
SQLException
- if sql exception occursprotected void fetchHistory(String sql, String uuids, String startDate, String endDate) throws Exception
sql
- the sql query to executeuuids
- the uuids constraintstartDate
- the start date constraintendDate
- the end date constraint
Exception
- if exception occursprotected void fetchPending(String sql, String uuids, String startDate, String endDate) throws Exception
sql
- the sql query to executeuuids
- the uuids constraintstartDate
- the start date constraintendDate
- the end date constraint
Exception
- if exception occursprotected int[] fetchHarvestCounts(int timePeriod) throws Exception
timePeriod
- the number days to aggregate for
Exception
- if exception occursprotected int[] fetchSummary() throws Exception
Exception
- if exception occursprotected HashMap<String,Object> fetchRepositoriesSummaryByProtocol() throws Exception
Exception
- if exception occursprotected String getHarvestingTableName()
protected String getHarvestingDataTableName()
protected String getHarvestingHistoryTableName()
protected String getHarvestingJobTableName()
protected String getHarvestingJobsCompletedTableName()
protected String getResourceTableName()
protected void populateProtocolInfo(HashMap<String,Object> protocolMap, String sql, String propertyName) throws SQLException
protocolMap
- the protocol map objectsql
- the sql stringpropertyName
- the property name of protocol info object to populate
count using sql
SQLException
- if sql exception occursprotected String selectDistinctProtocols()
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |