All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.baltoro.service.InstanceService Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package io.baltoro.service;

import java.util.List;

import io.baltoro.domain.AppUserSession;
import io.baltoro.domain.BaltoroAppAPI;
import io.baltoro.domain.BaltoroInstance;
import io.baltoro.domain.BaltoroInstanceRequest;
import io.baltoro.exception.ServiceException;
import io.baltoro.to.PathTO;
import io.baltoro.to.ReplicationContext;
import io.baltoro.to.ReplicationTO;
import io.baltoro.to.RequestContext;

public interface InstanceService
{
	public BaltoroInstance get(String uuid) throws ServiceException;
	
	public List find(String appUuid);
	
	public BaltoroInstance insert(BaltoroInstance obj) throws ServiceException;
	
	public BaltoroInstance update(String uuid, String state, int cpuPercent, int freeMemGB) throws ServiceException;
	
	public void updateInstanceStartedOn(String uuid, String clusterPath, String remoteAddress, int threads) throws ServiceException;
	
	public void closeDeadInstances();
	
	public void deleteInstance(String uuid);
	
	public List getAppAPI(String appUuid);
	
	public List registerAppAPI(String instanceUuid, String appUuid, List paths) throws ServiceException;
	
	public BaltoroInstanceRequest insert(BaltoroInstanceRequest obj) throws ServiceException;
	
	public void updateRequestTime(String uuid, int millis, int sizeKB, String error) throws ServiceException;
	
	
	public void createUserSession(AppUserSession obj);
	
	public void touchAppUserSession(String uuid) throws ServiceException;
	
	public void updateAppUserSessionAtt(String uuid, String userName, String json);
	
	public void closeAppUserSession(String uuid);
	
	public AppUserSession getUserSessionByUuid(String uuid);
	
	public List getUserSessionByAppUuid(String appUuid) throws ServiceException;
	
	
	public void insert(String appUuuid, String instUuid, ReplicationContext ctx);
	
	public List getReplication(ReplicationTO to);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy