private void initRepo(RepoTO repoTO) throws ConfigException { try { initRepoId(repoTO); initChunker(repoTO); initMultiChunker(repoTO); initTransformers(repoTO); } catch (Exception e) { throw new ConfigException("Unable to initialize repository information from config.", e); } }
public Config(File aLocalDir, ConfigTO configTO, RepoTO repoTO) throws ConfigException { if (aLocalDir == null || configTO == null || repoTO == null) { throw new ConfigException("Arguments aLocalDir, configTO and repoTO cannot be null."); } initNames(configTO); initMasterKey(configTO); initDirectories(aLocalDir); initCache(configTO); initIgnoredFile(); initRepo(repoTO); initConnection(configTO); }
public InternalWebSocketHandler(WebServer daemonWebServer, String certificateCommonName, RequestFormatType requestFormatType) { this.daemonWebServer = daemonWebServer; this.eventBus = LocalEventBus.getInstance(); this.certificateCommonName = certificateCommonName; this.requestFormatType = requestFormatType; this.eventBus.register(this); }
public static void init() { if (userConfigDir == null) { initUserAppDirs(); initUserConfig(); initUserTrustStore(); initUserKeyStore(); } }
public Downloader(Config config, TransferManager transferManager) { this.config = config; this.transferManager = transferManager; this.eventBus = LocalEventBus.getInstance(); }
@Override public File getMultiChunkFile(MultiChunkId multiChunkId) { return config.getCache().getEncryptedMultiChunkFile(multiChunkId); }
/** * Deletes files in the the cache directory using a LRU-strategy until <tt>keepBytes</tt> * bytes are left. This method calls {@link #clear(long)} using the <tt>keepBytes</tt> * property. * * <p>This method should not be run while an operation is executed. */ public void clear() { clear(keepBytes); }
private void handleEventResponse(WebSocketChannel clientSocket, EventResponse eventResponse) { eventBus.post(eventResponse); } }
/** * Returns a file path of a database remote file. */ public File getDatabaseFile(String name) { // TODO [low] This should be a database file or another key return getFileInCache(FILE_FORMAT_DATABASE_FILE_ENCRYPTED, name); }
@Override public void run() { renewActionFile(); if (UserConfig.isPreventStandby()) { preventStandby(); } } }, ACTION_RENEWAL_INTERVAL, ACTION_RENEWAL_INTERVAL);
public static LocalEventBus getInstance() { return InternalEventBus.getInstance(LocalEventBus.class); } }
public static void storeUserKeyStore() { storeKeyStore(userKeyStore, userKeyStoreFile); }
public Command() { this.eventBus = LocalEventBus.getInstance(); this.eventBus.register(this); }
public InternalRestHandler(WebServer daemonWebServer, RequestFormatType requestFormatType) { this.daemonWebServer = daemonWebServer; this.eventBus = LocalEventBus.getInstance(); this.requestFormatType = requestFormatType; }
private void initEventBus() { eventBus = LocalEventBus.getInstance(); eventBus.register(this); }
public RemoteTransaction(Config config, TransferManager transferManager, TransactionTO transactionTO) { this.config = config; this.transferManager = transferManager; this.transactionTO = transactionTO; this.eventBus = LocalEventBus.getInstance(); }
private void initEventBus() { eventBus = LocalEventBus.getInstance(); eventBus.register(this); }
public AbstractInitOperation(Config config, UserInteractionListener listener) { super(config); this.listener = listener; this.eventBus = LocalEventBus.getInstance(); }
public ManagementRequestHandler() { this.eventBus = LocalEventBus.getInstance(); }