Class LocalUpdatesProvider
java.lang.Object
pro.gravit.launchserver.auth.updates.UpdatesProvider
pro.gravit.launchserver.auth.updates.LocalUpdatesProvider
-
Field Summary
FieldsFields inherited from class pro.gravit.launchserver.auth.updates.UpdatesProvider
providers, server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidpro.gravit.launcher.core.hasher.HashedDirgetUpdatesDir(String updateName) voidinit(LaunchServer server) voidvoidvoidsync(Collection<String> dirs) voidvoidMethods inherited from class pro.gravit.launchserver.auth.updates.UpdatesProvider
close, registerProviders, sync
-
Field Details
-
cacheFile
-
updatesDir
-
cacheUpdates
public boolean cacheUpdates
-
-
Constructor Details
-
LocalUpdatesProvider
public LocalUpdatesProvider()
-
-
Method Details
-
readUpdatesFromCache
- Throws:
IOException
-
readUpdatesDir
- Throws:
IOException
-
init
- Overrides:
initin classUpdatesProvider
-
syncInitially
- Specified by:
syncInitiallyin classUpdatesProvider- Throws:
IOException
-
sync
- Specified by:
syncin classUpdatesProvider- Throws:
IOException
-
getUpdatesDir
- Specified by:
getUpdatesDirin classUpdatesProvider
-
upload
public void upload(String updateName, Map<String, Path> files, boolean deleteAfterUpload) throws IOException- Specified by:
uploadin classUpdatesProvider- Throws:
IOException
-
download
- Specified by:
downloadin classUpdatesProvider
-
delete
- Specified by:
deletein classUpdatesProvider- Throws:
IOException
-
delete
- Specified by:
deletein classUpdatesProvider- Throws:
IOException
-
create
- Specified by:
createin classUpdatesProvider- Throws:
IOException
-