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 DataDao
public void removeEntityListener()
removeEntityListener
in interface DataDao
public boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public boolean updateDataTarget(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataTarget
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public void clear() throws DaoException
clear
in interface AccessStatDao
DaoException
public void deleteAccessStat(String userGridId, String userId, String serviceGridId, String serviceId, Calendar baseDateTime, Period period) throws DaoException
deleteAccessStat
in interface AccessStatDao
DaoException
public void deleteAccessStatOfGrid(String gridId) throws DaoException
deleteAccessStatOfGrid
in interface AccessStatDao
DaoException
public void deleteAccessStatOfService(String serviceGridId, String serviceId) throws DaoException
deleteAccessStatOfService
in interface AccessStatDao
DaoException
public void deleteAccessStatOfUser(String userGridId, String userId) throws DaoException
deleteAccessStatOfUser
in interface AccessStatDao
DaoException
public AccessStat getAccessStat(String userGridId, String userId, String serviceAndNodeGridId, String serviceId, String nodeId, Calendar baseDateTime, Period period) throws DaoException
getAccessStat
in interface AccessStatDao
DaoException
public List<AccessStat> getAccessStats(String userGridId, String userId, String serviceGridId, String serviceId, Calendar baseDateTime) throws DaoException
getAccessStats
in interface AccessStatDao
DaoException
public void increment(String userGridId, String userId, String serviceAndNodeGridId, String serviceId, String nodeId, int requestBytes, int responseBytes, int responseMillis) throws DaoException
increment
in interface AccessStatDao
DaoException
public 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 AccessStatDao
DaoException
public List<AccessStat> listAccessStats(String serviceGridId) throws DaoException
listAccessStats
in interface AccessStatDao
DaoException
public List<AccessStat> listAccessStatsNewerThanOrEqualsTo(String serviceGridId, Calendar dateTime) throws DaoException
listAccessStatsNewerThanOrEqualsTo
in interface AccessStatDao
DaoException
public 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 AccessStatDao
DaoException
public 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 AccessStatDao
DaoException