Package io.fabric8.jenkins.openshiftsync
Class BuildConfigClusterInformer
- java.lang.Object
-
- io.fabric8.jenkins.openshiftsync.BuildConfigClusterInformer
-
- All Implemented Interfaces:
Lifecyclable
,io.fabric8.kubernetes.client.informers.ResourceEventHandler<io.fabric8.openshift.api.model.BuildConfig>
public class BuildConfigClusterInformer extends Object implements io.fabric8.kubernetes.client.informers.ResourceEventHandler<io.fabric8.openshift.api.model.BuildConfig>, Lifecyclable
WatchesBuildConfig
objects in OpenShift and for WorkflowJobs we ensure there is a suitable Jenkins Job object defined with the correct configuration
-
-
Constructor Summary
Constructors Constructor Description BuildConfigClusterInformer(String[] namespaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getListIntervalInSeconds()
void
onAdd(io.fabric8.openshift.api.model.BuildConfig obj)
void
onDelete(io.fabric8.openshift.api.model.BuildConfig obj, boolean deletedFinalStateUnknown)
void
onUpdate(io.fabric8.openshift.api.model.BuildConfig oldObj, io.fabric8.openshift.api.model.BuildConfig newObj)
void
start()
void
stop()
-
-
-
Constructor Detail
-
BuildConfigClusterInformer
public BuildConfigClusterInformer(String[] namespaces)
-
-
Method Detail
-
getListIntervalInSeconds
public int getListIntervalInSeconds()
-
start
public void start()
- Specified by:
start
in interfaceLifecyclable
-
stop
public void stop()
- Specified by:
stop
in interfaceLifecyclable
-
onAdd
public void onAdd(io.fabric8.openshift.api.model.BuildConfig obj)
- Specified by:
onAdd
in interfaceio.fabric8.kubernetes.client.informers.ResourceEventHandler<io.fabric8.openshift.api.model.BuildConfig>
-
onUpdate
public void onUpdate(io.fabric8.openshift.api.model.BuildConfig oldObj, io.fabric8.openshift.api.model.BuildConfig newObj)
- Specified by:
onUpdate
in interfaceio.fabric8.kubernetes.client.informers.ResourceEventHandler<io.fabric8.openshift.api.model.BuildConfig>
-
onDelete
public void onDelete(io.fabric8.openshift.api.model.BuildConfig obj, boolean deletedFinalStateUnknown)
- Specified by:
onDelete
in interfaceio.fabric8.kubernetes.client.informers.ResourceEventHandler<io.fabric8.openshift.api.model.BuildConfig>
-
-