java.lang.Object
com.sshtools.volman.core.DefaultSpaceManager
- All Implemented Interfaces:
Component,SpaceManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSpace(long size, Optional<UUID> uuid, Optional<String> name, Optional<FileSystemType> fileSystemType, com.sshtools.sequins.Progress progress) protected voiddelay()voiddeleteSpace(UUID uuid, com.sshtools.sequins.Progress progress) voidincreaseSpace(UUID uuid, long amount, com.sshtools.sequins.Progress progress) voidincreaseSpaceTo(UUID uuid, long size, com.sshtools.sequins.Progress progress) voidinit(ManagerContext context, javax.json.JsonObject configuration) voidsetFileSystemType(FileSystemType fileSystemType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.volman.core.SpaceManager
createSpace, deleteSpace, getSpace, increaseSpace, increaseSpaceTo, matchUuids
-
Constructor Details
-
DefaultSpaceManager
public DefaultSpaceManager()
-
-
Method Details
-
createSpace
public Space createSpace(long size, Optional<UUID> uuid, Optional<String> name, Optional<FileSystemType> fileSystemType, com.sshtools.sequins.Progress progress) throws IOException - Specified by:
createSpacein interfaceSpaceManager- Throws:
IOException
-
init
-
getSpaces
- Specified by:
getSpacesin interfaceSpaceManager- Throws:
IOException
-
deleteSpace
- Specified by:
deleteSpacein interfaceSpaceManager- Throws:
IOException
-
increaseSpace
public void increaseSpace(UUID uuid, long amount, com.sshtools.sequins.Progress progress) throws IOException - Specified by:
increaseSpacein interfaceSpaceManager- Throws:
IOException
-
increaseSpaceTo
public void increaseSpaceTo(UUID uuid, long size, com.sshtools.sequins.Progress progress) throws IOException - Specified by:
increaseSpaceToin interfaceSpaceManager- Throws:
IOException
-
getFileSystemType
-
setFileSystemType
-
delay
protected void delay()
-