package psoft.hsphere.resource; public interface HostDependentResource { /** * Method checks if a resource can be moved to the target server * @param newHostId * @return * @throws Exception */ public boolean canBeMovedTo(long newHostId) throws Exception; /** The method physically creates a physical implementation * of a resource on a logical serevr with the passed ID * @param targetHostId * @throws Exception */ public void physicalCreate(long targetHostId) throws Exception; /** * The metod deletes a physical implementation of a resource on * a logical server with the passed ID * @param targetHostId * @throws Exception */ public void physicalDelete(long targetHostId) throws Exception; /** * The method sets an ID of the logical server to * which this resource is linked * @param newHostId * @throws Exception */ public void setHostId(long newHostId) throws Exception; /** * The method returns an ID of a logical server * to which this resource is being linked * @return * @throws Exception */ public long getHostId() throws Exception; }