Class MNWorkspace
java.lang.Object
com.io7m.montarre.nativepack.internal.MNWorkspace
- All Implemented Interfaces:
MNativeWorkspaceType, AutoCloseable
A workspace.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Flow.Publisher<com.io7m.streamtime.core.STTransferStatistics> static MNativeWorkspaceTypeopen(MNativeWorkspaceConfiguration configuration, MHTTPClientFactoryType httpClients, MPackageReaderType packageReader) Open a workspace.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MNativeWorkspaceType
matchesModule
-
Method Details
-
open
public static MNativeWorkspaceType open(MNativeWorkspaceConfiguration configuration, MHTTPClientFactoryType httpClients, MPackageReaderType packageReader) Open a workspace.- Parameters:
configuration- The configurationhttpClients- The HTTP clientspackageReader- The current package- Returns:
- A workspace
-
javaRuntimeDownload
- Specified by:
javaRuntimeDownloadin interfaceMNativeWorkspaceType- Returns:
- The transfer statistic for java runtime downloads
-
javaRuntime
- Specified by:
javaRuntimein interfaceMNativeWorkspaceType- Returns:
- The java runtime
-
createWorkDirectory
- Specified by:
createWorkDirectoryin interfaceMNativeWorkspaceType- Returns:
- A fresh working directory
- Throws:
MException- On errors
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMNativeWorkspaceType- Throws:
MException
-
operatingSystem
- Specified by:
operatingSystemin interfaceMNativeWorkspaceType- Returns:
- The operating system name
-
architecture
- Specified by:
architecturein interfaceMNativeWorkspaceType- Returns:
- The architecture name
-