Class UpdatesProvider
java.lang.Object
pro.gravit.launchserver.auth.updates.UpdatesProvider
- Direct Known Subclasses:
LocalUpdatesProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final pro.gravit.utils.ProviderMap<UpdatesProvider> protected LaunchServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()abstract voidabstract voidabstract voidabstract pro.gravit.launcher.core.hasher.HashedDirgetUpdatesDir(String updateName) voidinit(LaunchServer server) static voidvoidsync()abstract voidsync(Collection<String> updateNames) abstract voidabstract void
-
Field Details
-
providers
-
server
-
-
Constructor Details
-
UpdatesProvider
public UpdatesProvider()
-
-
Method Details
-
registerProviders
public static void registerProviders() -
init
-
sync
- Throws:
IOException
-
syncInitially
- Throws:
IOException
-
sync
- Throws:
IOException
-
getUpdatesDir
-
upload
public abstract void upload(String updateName, Map<String, Path> files, boolean deleteAfterUpload) throws IOException- Throws:
IOException
-
download
-
delete
- Throws:
IOException
-
delete
- Throws:
IOException
-
create
- Throws:
IOException
-
close
public void close()
-