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

sirius.biz.storage.vfs.VirtualFileSystem Maven / Gradle / Ivy

There is a newer version: 9.6
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.biz.storage.vfs;

import sirius.biz.storage.vfs.ftp.FTPBridge;
import sirius.kernel.Lifecycle;
import sirius.kernel.di.std.Part;
import sirius.kernel.di.std.Register;
import sirius.kernel.health.Log;

/**
 * Permits to provide a virtual file system for outside applications to access internal data.
 * 

* Mainly, this will start an internal FTP server to make the file system accessible, but other connectors might be * added in the future. */ @Register public class VirtualFileSystem implements Lifecycle { public static final Log LOG = Log.get("vfs"); @Part private FTPBridge ftpBridge; @Override public void started() { ftpBridge.createAndStartServer(); } @Override public void stopped() { ftpBridge.stop(); } @Override public void awaitTermination() { // Nothing to wait for } @Override public String getName() { return "Virtual File System"; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy