Package cz.xtf.core.bm
Class BinaryBuild
- java.lang.Object
-
- cz.xtf.core.bm.BinaryBuild
-
- All Implemented Interfaces:
ManagedBuild
- Direct Known Subclasses:
BinaryBuildFromFile,BinaryBuildFromSources
public abstract class BinaryBuild extends Object implements ManagedBuild
-
-
Field Summary
Fields Modifier and Type Field Description protected io.fabric8.openshift.api.model.BuildConfigbcprotected StringcontentHashprotected io.fabric8.openshift.api.model.ImageStreamis
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidconfigureBuildStrategy(io.fabric8.openshift.api.model.BuildConfigSpecBuilder builder, String builderImage, List<io.fabric8.kubernetes.api.model.EnvVar> envs)voiddelete(OpenShift openShift)protected abstract StringgetContentHash()protected abstract List<io.fabric8.kubernetes.api.model.EnvVar>getEnv(io.fabric8.openshift.api.model.BuildConfig bc)protected abstract StringgetImage(io.fabric8.openshift.api.model.BuildConfig bc)WaiterhasCompleted(OpenShift openShift)protected booleanisCached()booleanisPresent(OpenShift openShift)booleanneedsUpdate(OpenShift openShift)voidupdate(OpenShift openShift)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.xtf.core.bm.ManagedBuild
build, getId
-
-
-
-
Field Detail
-
is
protected final io.fabric8.openshift.api.model.ImageStream is
-
bc
protected final io.fabric8.openshift.api.model.BuildConfig bc
-
contentHash
protected String contentHash
-
-
Method Detail
-
update
public void update(OpenShift openShift)
- Specified by:
updatein interfaceManagedBuild
-
delete
public void delete(OpenShift openShift)
- Specified by:
deletein interfaceManagedBuild
-
isPresent
public boolean isPresent(OpenShift openShift)
- Specified by:
isPresentin interfaceManagedBuild
-
getEnv
protected abstract List<io.fabric8.kubernetes.api.model.EnvVar> getEnv(io.fabric8.openshift.api.model.BuildConfig bc)
-
configureBuildStrategy
protected abstract void configureBuildStrategy(io.fabric8.openshift.api.model.BuildConfigSpecBuilder builder, String builderImage, List<io.fabric8.kubernetes.api.model.EnvVar> envs)
-
getImage
protected abstract String getImage(io.fabric8.openshift.api.model.BuildConfig bc)
-
getContentHash
protected abstract String getContentHash()
-
isCached
protected boolean isCached()
-
needsUpdate
public boolean needsUpdate(OpenShift openShift)
- Specified by:
needsUpdatein interfaceManagedBuild
-
hasCompleted
public Waiter hasCompleted(OpenShift openShift)
- Specified by:
hasCompletedin interfaceManagedBuild
-
-