public class InstanceDAOImpl extends Object implements InstanceDAO
| Modifier and Type | Method and Description |
|---|---|
void |
closeAppUserSession(String uuid) |
void |
closeDeadInstances() |
void |
createUserSession(AppUserSession obj) |
List<BaltoroInstance> |
find(String appUuid) |
List<BaltoroAppAPI> |
getAppAPI(String appUuid) |
BaltoroInstance |
getInstance(String uuid) |
List<AppUserSession> |
getUserSessionByAppUuid(String appUuid) |
AppUserSession |
getUserSessionByUuid(String uuid) |
BaltoroAppAPI |
insert(BaltoroAppAPI obj) |
BaltoroInstanceRequest |
insert(BaltoroInstanceRequest obj) |
BaltoroInstance |
insertInstance(BaltoroInstance obj) |
void |
touchAppUserSession(String uuid) |
void |
update(String uuid,
BaltoroAppAPI obj) |
void |
updateAppUserSessionAtt(String uuid,
String userName,
String json) |
void |
updateInstance(String uuid,
String state,
int cpuPercent,
int memGB) |
void |
updateInstanceStartedOn(String uuid,
String clusterPath,
String remoteAddress,
int threads) |
void |
updateRequest(String uuid,
int millis,
int sizeKB,
String error) |
public BaltoroInstance getInstance(String uuid) throws ServiceException
getInstance in interface InstanceDAOServiceExceptionpublic List<BaltoroInstance> find(String appUuid) throws ServiceException
find in interface InstanceDAOServiceExceptionpublic BaltoroInstance insertInstance(BaltoroInstance obj) throws ServiceException
insertInstance in interface InstanceDAOServiceExceptionpublic void updateInstanceStartedOn(String uuid, String clusterPath, String remoteAddress, int threads) throws ServiceException
updateInstanceStartedOn in interface InstanceDAOServiceExceptionpublic void updateInstance(String uuid, String state, int cpuPercent, int memGB) throws ServiceException
updateInstance in interface InstanceDAOServiceExceptionpublic void closeDeadInstances()
throws ServiceException
closeDeadInstances in interface InstanceDAOServiceExceptionpublic BaltoroAppAPI insert(BaltoroAppAPI obj) throws ServiceException
insert in interface InstanceDAOServiceExceptionpublic List<BaltoroAppAPI> getAppAPI(String appUuid) throws ServiceException
getAppAPI in interface InstanceDAOServiceExceptionpublic void update(String uuid, BaltoroAppAPI obj) throws ServiceException
update in interface InstanceDAOServiceExceptionpublic BaltoroInstanceRequest insert(BaltoroInstanceRequest obj) throws ServiceException
insert in interface InstanceDAOServiceExceptionpublic void updateRequest(String uuid, int millis, int sizeKB, String error) throws ServiceException
updateRequest in interface InstanceDAOServiceExceptionpublic void createUserSession(AppUserSession obj) throws ServiceException
createUserSession in interface InstanceDAOServiceExceptionpublic void touchAppUserSession(String uuid) throws ServiceException
touchAppUserSession in interface InstanceDAOServiceExceptionpublic void updateAppUserSessionAtt(String uuid, String userName, String json) throws ServiceException
updateAppUserSessionAtt in interface InstanceDAOServiceExceptionpublic void closeAppUserSession(String uuid) throws ServiceException
closeAppUserSession in interface InstanceDAOServiceExceptionpublic List<AppUserSession> getUserSessionByAppUuid(String appUuid) throws ServiceException
getUserSessionByAppUuid in interface InstanceDAOServiceExceptionpublic AppUserSession getUserSessionByUuid(String uuid) throws ServiceException
getUserSessionByUuid in interface InstanceDAOServiceExceptionCopyright © 2017. All rights reserved.