Class ImageTagToManifestPlugin
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.runc.ImageTagToManifestPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,RuncImageTagToManifestPlugin
@Unstable
public class ImageTagToManifestPlugin
extends org.apache.hadoop.service.AbstractService
implements RuncImageTagToManifestPlugin
This class is a plugin for the
RuncContainerRuntime
to convert image tags into runC image manifests.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHashFromImageTag(String imageTag) protected BufferedReaderprotected BufferedReadergetManifestFromImageTag(String imageTag) booleanYou may specify multiple tags per hash all on the same line.protected voidserviceInit(org.apache.hadoop.conf.Configuration configuration) protected voidprotected voidMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
ImageTagToManifestPlugin
public ImageTagToManifestPlugin()
-
-
Method Details
-
getManifestFromImageTag
- Specified by:
getManifestFromImageTagin interfaceRuncImageTagToManifestPlugin- Throws:
IOException
-
getHashFromImageTag
- Specified by:
getHashFromImageTagin interfaceRuncImageTagToManifestPlugin
-
getLocalImageToHashReader
- Throws:
IOException
-
getHdfsImageToHashReader
- Throws:
IOException
-
readImageToHashFile
You may specify multiple tags per hash all on the same line. Comments are allowed using #. Anything after this character will not be read Example file: foo/bar:current,fizz/gig:latest:123456789 #this/line:wont,be:parsed:2378590895 This will map both foo/bar:current and fizz/gig:latest to 123456789- Throws:
IOException
-
loadImageToHashFiles
- Throws:
IOException
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-