@Mojo(name="history") public class GetHistoryMojo extends AbstractSingleReleaseMojo
| Constructor and Description |
|---|
GetHistoryMojo()
Creates a new
GetHistoryMojo. |
getReleaseName, setReleaseName, validateReleaseNamecreateClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespacegetLog, getPluginContext, setLog, setPluginContextpublic 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 ReleaseHistoryListeners.
execute in class AbstractReleaseMojoreleaseManagerCallable - the Callable that will
provide a ReleaseManager; must not be nullException - 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 ReleaseHistoryListenersgetReleaseHistoryListenersList()public List<ReleaseHistoryListener> getReleaseHistoryListenersList()
List of ReleaseHistoryListeners 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 ReleaseHistoryListeners
whose elements will be notified when a release history is retrieved.releaseHistoryListeners - the List of ReleaseHistoryListeners whose elements will be notified when a release history is retrieved; may be nullgetReleaseHistoryListenersList(),
addReleaseHistoryListener(ReleaseHistoryListener),
removeReleaseHistoryListener(ReleaseHistoryListener)Copyright © 2017–2018, microBean. All rights reserved.