public class InstanceServiceImpl extends Object implements InstanceService
| Constructor and Description |
|---|
InstanceServiceImpl() |
public BaltoroInstance get(String uuid) throws ServiceException
get in interface InstanceServiceServiceExceptionpublic List<BaltoroInstance> find(String appUuid)
find in interface InstanceServicepublic BaltoroInstance insert(BaltoroInstance obj) throws ServiceException
insert in interface InstanceServiceServiceExceptionpublic BaltoroInstance update(String uuid, String state, int cpuPercent, int memGB) throws ServiceException
update in interface InstanceServiceServiceExceptionpublic void updateInstanceStartedOn(String uuid, String clusterPath, String remoteAddress, int threads) throws ServiceException
updateInstanceStartedOn in interface InstanceServiceServiceExceptionpublic void closeDeadInstances()
closeDeadInstances in interface InstanceServicepublic void deleteInstance(String uuid)
deleteInstance in interface InstanceServicepublic List<BaltoroAppAPI> getAppAPI(String appUuid)
getAppAPI in interface InstanceServicepublic List<BaltoroAppAPI> registerAppAPI(String instanceUuid, String appUuid, List<PathTO> paths) throws ServiceException
registerAppAPI in interface InstanceServiceServiceExceptionpublic BaltoroInstanceRequest insert(BaltoroInstanceRequest obj) throws ServiceException
insert in interface InstanceServiceServiceExceptionpublic void updateRequestTime(String uuid, int millis, int sizeKB, String error) throws ServiceException
updateRequestTime in interface InstanceServiceServiceExceptionpublic void createUserSession(AppUserSession session)
createUserSession in interface InstanceServicepublic void touchAppUserSession(String uuid) throws ServiceException
touchAppUserSession in interface InstanceServiceServiceExceptionpublic void updateAppUserSessionAtt(String uuid, String userName, String json)
updateAppUserSessionAtt in interface InstanceServicepublic void closeAppUserSession(String uuid)
closeAppUserSession in interface InstanceServicepublic AppUserSession getUserSessionByUuid(String uuid)
getUserSessionByUuid in interface InstanceServicepublic List<AppUserSession> getUserSessionByAppUuid(String appUuid) throws ServiceException
getUserSessionByAppUuid in interface InstanceServiceServiceExceptionpublic void insert(String appUuuid, String instUuid, ReplicationContext ctx)
insert in interface InstanceServicepublic List<ReplicationContext> getReplication(ReplicationTO to)
getReplication in interface InstanceServiceCopyright © 2017. All rights reserved.