public class FileSystemDeleteWorker extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CRON_MINUTES |
Constructor and Description |
---|
FileSystemDeleteWorker() |
FileSystemDeleteWorker(IOService ioService,
OrganizationalUnitService organizationalUnitService,
RepositoryService repositoryService,
FileSystem systemFS,
SpaceConfigStorageRegistry registry,
javax.enterprise.event.Event<RemoveOrganizationalUnitEvent> removeOrganizationalUnitEvent,
ConfigurationService configurationService) |
Modifier and Type | Method and Description |
---|---|
protected FileSystemLock |
createLock(File file) |
protected void |
delete(File path) |
void |
doRemove() |
protected File |
getSpacePath(Path configPath) |
protected boolean |
isDeleteWorkerEnabled() |
protected void |
removeAllDeletedRepositories() |
protected void |
removeAllDeletedSpaces() |
protected void |
removeRepository(Repository repo) |
protected void |
removeSpaceDirectory(Space space) |
public static final String CRON_MINUTES
public FileSystemDeleteWorker()
@Inject public FileSystemDeleteWorker(@Named(value="ioStrategy") IOService ioService, OrganizationalUnitService organizationalUnitService, RepositoryService repositoryService, @Named(value="systemFS") FileSystem systemFS, SpaceConfigStorageRegistry registry, javax.enterprise.event.Event<RemoveOrganizationalUnitEvent> removeOrganizationalUnitEvent, ConfigurationService configurationService)
public void doRemove()
protected boolean isDeleteWorkerEnabled()
protected void removeAllDeletedRepositories()
protected void removeAllDeletedSpaces()
protected void removeSpaceDirectory(Space space)
protected void delete(File path) throws IOException
IOException
protected void removeRepository(Repository repo)
protected FileSystemLock createLock(File file)
Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.