@Mojo(name="history") public class GetHistoryMojo extends AbstractSingleReleaseMojo
Constructor and Description |
---|
GetHistoryMojo()
Creates a new
GetHistoryMojo . |
getReleaseName, setReleaseName, validateReleaseName
createClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespace
getLog, getPluginContext, setLog, setPluginContext
public GetHistoryMojo()
GetHistoryMojo
.protected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable
.
This implementation retrieves the history for a given release and notifies registered ReleaseHistoryListener
s.
execute
in class AbstractReleaseMojo
releaseManagerCallable
- the Callable
that will
provide a ReleaseManager
; must not be null
Exception
- if an error occurspublic int getMax()
setMax(int)
public void setMax(int max)
max
- the maximum number of history entries to retrievegetMax()
public void addReleaseHistoryListener(ReleaseHistoryListener listener)
ReleaseHistoryListener
that will be notified when a release history is retrievedlistener
- the ReleaseHistoryListener
to add; may be
null
in which case no action will be takenremoveReleaseHistoryListener(ReleaseHistoryListener)
,
getReleaseHistoryListenersList()
public void removeReleaseHistoryListener(ReleaseHistoryListener listener)
ReleaseHistoryListener
from this GetHistoryMojo
.listener
- the ReleaseHistoryListener
to remove; may
be null
in which case no action will be takenaddReleaseHistoryListener(ReleaseHistoryListener)
,
getReleaseHistoryListenersList()
public ReleaseHistoryListener[] getReleaseHistoryListeners()
getReleaseHistoryListenersList()
method and
converts its return
value to an array.
This method never returns null
.
Overrides of this method must not return null
.
null
array of ReleaseHistoryListener
sgetReleaseHistoryListenersList()
public List<ReleaseHistoryListener> getReleaseHistoryListenersList()
List
of ReleaseHistoryListener
s whose
elements will be notified when a release history is retrieved.
This method may return null
.
Overrides of this method are permitted to return null
.
public void setReleaseHistoryListenersList(List<ReleaseHistoryListener> releaseHistoryListeners)
List
of ReleaseHistoryListener
s
whose elements will be notified when a release history is retrieved.releaseHistoryListeners
- the List
of ReleaseHistoryListener
s whose elements will be notified when a release history is retrieved; may be null
getReleaseHistoryListenersList()
,
addReleaseHistoryListener(ReleaseHistoryListener)
,
removeReleaseHistoryListener(ReleaseHistoryListener)
Copyright © 2017–2018, microBean. All rights reserved.