public class P2PGridBasisAccessStateDao extends Object implements DataDao, AccessStatDao
| Constructor and Description |
|---|
P2PGridBasisAccessStateDao(AccessStatDao dao,
DaoContext context)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
deleteAccessStat(String userGridId,
String userId,
String serviceGridId,
String serviceId,
Calendar baseDateTime,
Period period) |
void |
deleteAccessStatOfGrid(String gridId) |
void |
deleteAccessStatOfService(String serviceGridId,
String serviceId) |
void |
deleteAccessStatOfUser(String userGridId,
String userId) |
AccessStat |
getAccessStat(String userGridId,
String userId,
String serviceAndNodeGridId,
String serviceId,
String nodeId,
Calendar baseDateTime,
Period period) |
List<AccessStat> |
getAccessStats(String userGridId,
String userId,
String serviceGridId,
String serviceId,
Calendar baseDateTime) |
void |
increment(String userGridId,
String userId,
String serviceAndNodeGridId,
String serviceId,
String nodeId,
int requestBytes,
int responseBytes,
int responseMillis) |
void |
increment(String userGridId,
String userId,
String serviceAndNodeGridId,
String serviceId,
String nodeId,
int requestBytes,
int responseBytes,
int responseMillis,
Calendar accessDateTime) |
List<AccessStat> |
listAccessStats(String serviceGridId) |
List<AccessStat> |
listAccessStatsNewerThanOrEqualsTo(String serviceGridId,
Calendar dateTime) |
void |
publish() |
void |
removeEntityListener() |
AccessRankingEntrySearchResult |
searchServiceAccessRanking(int startIndex,
int maxCount,
String serviceGridId,
String userId,
Calendar startDateTime,
Calendar endDateTime,
Period period,
Order[] orders) |
AccessRankingEntrySearchResult |
searchUserAccessRanking(int startIndex,
int maxCount,
String serviceGridId,
String serviceId,
String userGridId,
Calendar startDateTime,
Calendar endDateTime,
Period period,
Order[] orders) |
void |
setEntityListener() |
void |
updateCountCheck(Serializable id) |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisAccessStateDao(AccessStatDao dao, DaoContext context)
dao - context - public void setEntityListener()
setEntityListener in interface DataDaopublic void removeEntityListener()
removeEntityListener in interface DataDaopublic boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource in interface DataDaoDataDaoExceptionUnmatchedDataTypeExceptionpublic boolean updateDataTarget(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataTarget in interface DataDaoDataDaoExceptionUnmatchedDataTypeExceptionpublic void clear()
throws DaoException
clear in interface AccessStatDaoDaoExceptionpublic void deleteAccessStat(String userGridId, String userId, String serviceGridId, String serviceId, Calendar baseDateTime, Period period) throws DaoException
deleteAccessStat in interface AccessStatDaoDaoExceptionpublic void deleteAccessStatOfGrid(String gridId) throws DaoException
deleteAccessStatOfGrid in interface AccessStatDaoDaoExceptionpublic void deleteAccessStatOfService(String serviceGridId, String serviceId) throws DaoException
deleteAccessStatOfService in interface AccessStatDaoDaoExceptionpublic void deleteAccessStatOfUser(String userGridId, String userId) throws DaoException
deleteAccessStatOfUser in interface AccessStatDaoDaoExceptionpublic AccessStat getAccessStat(String userGridId, String userId, String serviceAndNodeGridId, String serviceId, String nodeId, Calendar baseDateTime, Period period) throws DaoException
getAccessStat in interface AccessStatDaoDaoExceptionpublic List<AccessStat> getAccessStats(String userGridId, String userId, String serviceGridId, String serviceId, Calendar baseDateTime) throws DaoException
getAccessStats in interface AccessStatDaoDaoExceptionpublic void increment(String userGridId, String userId, String serviceAndNodeGridId, String serviceId, String nodeId, int requestBytes, int responseBytes, int responseMillis) throws DaoException
increment in interface AccessStatDaoDaoExceptionpublic void increment(String userGridId, String userId, String serviceAndNodeGridId, String serviceId, String nodeId, int requestBytes, int responseBytes, int responseMillis, Calendar accessDateTime) throws DaoException
increment in interface AccessStatDaoDaoExceptionpublic List<AccessStat> listAccessStats(String serviceGridId) throws DaoException
listAccessStats in interface AccessStatDaoDaoExceptionpublic List<AccessStat> listAccessStatsNewerThanOrEqualsTo(String serviceGridId, Calendar dateTime) throws DaoException
listAccessStatsNewerThanOrEqualsTo in interface AccessStatDaoDaoExceptionpublic AccessRankingEntrySearchResult searchUserAccessRanking(int startIndex, int maxCount, String serviceGridId, String serviceId, String userGridId, Calendar startDateTime, Calendar endDateTime, Period period, Order[] orders) throws DaoException
searchUserAccessRanking in interface AccessStatDaoDaoExceptionpublic void updateCountCheck(Serializable id)
public void publish()
public AccessRankingEntrySearchResult searchServiceAccessRanking(int startIndex, int maxCount, String serviceGridId, String userId, Calendar startDateTime, Calendar endDateTime, Period period, Order[] orders) throws DaoException
searchServiceAccessRanking in interface AccessStatDaoDaoException