Class ImageIntrospectorImpl
java.lang.Object
org.aksw.commons.util.docker.ImageIntrospectorImpl
- All Implemented Interfaces:
ImageIntrospector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecSiteProbeResultsprotected List<LocatorCommand2> protected List<ShellCatalogEntry> -
Constructor Summary
ConstructorsConstructorDescriptionImageIntrospectorImpl(List<ShellCatalogEntry> shellCatalog, List<LocatorCommand2> locatorCatalog, ExecSiteProbeResults cmdAvailability) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanRunEntrypoint(String imageName, Argv ep, com.google.common.collect.Table<String, Argv, Boolean> imageToEntrypoints, ExecSiteProbeResults cmdAvailability) static SysRuntimeCoreDockerfindKeepAlive(String imageRef, boolean pullIfAbsent, List<ShellCatalogEntry> shellCatalog, com.google.common.collect.Table<String, Argv, Boolean> imageToEntrypoints, ExecSiteProbeResults probeResults) static SysRuntimeCoreDockerfindKeepAlive(String imageRef, Argv entrypoint, ExecSiteProbeResults probeResults) findShell(SysRuntimeCoreDocker runtime, ShellCatalogEntry shell) / return result.getModel().createResource().as(ShellSupport.class);getKnownEntryPoints(String imageName) Mutable set view over an image's entry points.static List<LocatorCommand2> static List<ShellCatalogEntry> static List<ShellCatalogEntry> getShellSubCatalog(List<ShellCatalogEntry> catalog, String shellName) booleanDeprecated.booleanhasCommand(SysRuntimeCoreDocker sysRuntime, String command) booleanhasCommand(SysRuntimeCore sysRuntime, String command, ExecSite execSite) booleanhasCommandRaw(SysRuntimeCore sysRuntime, String command) static ImageIntrospectorof()static SysRuntimeCoreDockerstartKeptAlive(String imageRef, List<Argv> candKeepAliveCmds, ExecSiteProbeResults probeResults) static SysRuntimeCoreDockerstartKeptAlive(String imageRef, Argv entrypoint, List<Argv> candKeepAliveCmds, ExecSiteProbeResults probeResults) Deprecated.
-
Field Details
-
shellCatalog
-
locatorCatalog
-
imageToEntrypoints
-
cmdAvailability
-
-
Constructor Details
-
ImageIntrospectorImpl
public ImageIntrospectorImpl(List<ShellCatalogEntry> shellCatalog, List<LocatorCommand2> locatorCatalog, ExecSiteProbeResults cmdAvailability)
-
-
Method Details
-
of
-
getKnownEntryPoints
-
canRunEntrypoint
-
hasCommandRaw
public boolean hasCommandRaw(SysRuntimeCore sysRuntime, String command) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
hasCommand
-
hasCommand
-
hasCommand
-
findShell
/ return result.getModel().createResource().as(ShellSupport.class);- Specified by:
findShellin interfaceImageIntrospector
-
findKeepAlive
public static SysRuntimeCoreDocker findKeepAlive(String imageRef, boolean pullIfAbsent, List<ShellCatalogEntry> shellCatalog, com.google.common.collect.Table<String, Argv, Boolean> imageToEntrypoints, ExecSiteProbeResults probeResults) -
findKeepAlive
public static SysRuntimeCoreDocker findKeepAlive(String imageRef, Argv entrypoint, ExecSiteProbeResults probeResults) -
startKeptAlive
public static SysRuntimeCoreDocker startKeptAlive(String imageRef, List<Argv> candKeepAliveCmds, ExecSiteProbeResults probeResults) -
startKeptAlive
@Deprecated public static SysRuntimeCoreDocker startKeptAlive(String imageRef, Argv entrypoint, List<Argv> candKeepAliveCmds, ExecSiteProbeResults probeResults) Deprecated.Note: Generally, an entry point may be needed to run a keep alive command. The options are:- Null entry point: does not override the image's entry point. The command is set as usual.
- Empty list entry point: The first element of the keep alive command becomes the entry point.
- Non-empty list entry point: The entry point is set as usual.
- Parameters:
imageRef-entrypoint- Any args of the entrypoint are prepended to the keep alive command.candKeepAliveCmds-probeResults-- Returns:
-
getKeepAliveCatalog
-
getShellSubCatalog
public static List<ShellCatalogEntry> getShellSubCatalog(List<ShellCatalogEntry> catalog, String shellName) -
getShellCatalog
-
getLocatorCatalog
-