public class LXC
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.nio.file.Path |
CONTAINER_ABSOLUTE_CAPSULE_HOME |
static java.nio.file.Path |
CONTAINER_ABSOLUTE_DEP_HOME |
static java.nio.file.Path |
CONTAINER_ABSOLUTE_JAR_HOME |
static java.nio.file.Path |
CONTAINER_ABSOLUTE_JAVA_HOME |
static java.nio.file.Path |
CONTAINER_ABSOLUTE_WRAPPER_HOME |
static java.lang.String |
CONTAINER_NAME |
static java.lang.String |
HOST_RELATIVE_CONTAINER_DIR_PARENT |
| Constructor and Description |
|---|
LXC(ShieldedCapsuleAPI shield) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map.Entry<java.lang.String,java.nio.file.Path> |
chooseJavaHome(java.util.Map.Entry<java.lang.String,java.nio.file.Path> initialJavaHome) |
void |
cleanup() |
java.util.Collection<? extends java.lang.String> |
commandPrefix() |
void |
createContainer() |
void |
destroyContainer() |
java.nio.file.Path |
getContainerDir(java.lang.String shieldID) |
java.nio.file.Path |
getContainerParentDir() |
java.nio.file.Path |
getContainerParentDir(java.lang.String shieldID) |
java.lang.String |
getRunningInet(java.lang.String shieldID) |
java.nio.file.Path |
getShieldContainersAppDir() |
java.lang.String |
getShieldID() |
boolean |
isBuildNeeded() |
static boolean |
isLinux() |
boolean |
isLXCInstalled() |
java.lang.String |
lxcLogLevel(java.lang.String loglevel) |
void |
setupDefaultGW() |
public static final java.lang.String HOST_RELATIVE_CONTAINER_DIR_PARENT
public static final java.lang.String CONTAINER_NAME
public static final java.nio.file.Path CONTAINER_ABSOLUTE_JAVA_HOME
public static final java.nio.file.Path CONTAINER_ABSOLUTE_JAR_HOME
public static final java.nio.file.Path CONTAINER_ABSOLUTE_WRAPPER_HOME
public static final java.nio.file.Path CONTAINER_ABSOLUTE_CAPSULE_HOME
public static final java.nio.file.Path CONTAINER_ABSOLUTE_DEP_HOME
public LXC(ShieldedCapsuleAPI shield)
public void setupDefaultGW()
public java.lang.String getRunningInet(java.lang.String shieldID)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Collection<? extends java.lang.String> commandPrefix()
throws java.io.IOException
java.io.IOExceptionpublic boolean isBuildNeeded()
throws java.io.IOException
java.io.IOExceptionpublic void cleanup()
throws java.io.IOException
java.io.IOExceptionpublic void createContainer()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void destroyContainer()
public java.util.Map.Entry<java.lang.String,java.nio.file.Path> chooseJavaHome(java.util.Map.Entry<java.lang.String,java.nio.file.Path> initialJavaHome)
public java.nio.file.Path getContainerParentDir()
throws java.io.IOException
java.io.IOExceptionpublic java.nio.file.Path getContainerDir(java.lang.String shieldID)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getShieldID()
public java.nio.file.Path getShieldContainersAppDir()
throws java.io.IOException
java.io.IOExceptionpublic java.nio.file.Path getContainerParentDir(java.lang.String shieldID)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String lxcLogLevel(java.lang.String loglevel)
public boolean isLXCInstalled()
public static boolean isLinux()