|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.Plugin
com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl
public class PluginImpl
Main Plugin entrance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.Plugin |
---|
hudson.Plugin.DummyImpl |
Field Summary | |
---|---|
static java.lang.String |
DISPLAY_NAME
What to call this plug-in to humans. |
static hudson.security.Permission |
MANUAL_TRIGGER
The permission that allows users to perform the ManualTriggerAction . |
static hudson.security.PermissionGroup |
PERMISSION_GROUP
Any special permissions needed by this plugin are grouped into this. |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
PluginImpl()
Constructor. |
Method Summary | |
---|---|
boolean |
addListener(ConnectionListener listener)
Adds a Connection Listener to the manager. |
void |
addListener(GerritEventListener listener)
Adds a listener to the EventManager. |
protected static void |
doXStreamRegistrations()
Registers XStream alias and converters to handle backwards compatibility with old data. |
IGerritHudsonTriggerConfig |
getConfig()
Gets the global config. |
java.util.List<java.lang.String> |
getGerritProjects()
Returns a list of Gerrit projects. |
java.lang.String |
getGerritVersion()
Returns the current Gerrit version. |
static PluginImpl |
getInstance()
Returns this singleton instance. |
void |
removeListener(ConnectionListener listener)
Removes a connection listener from the manager. |
void |
removeListener(GerritEventListener listener)
Removes a listener from the manager. |
void |
restartConnection()
Restarts the connection to Gerrit stream of events. |
void |
start()
|
void |
startConnection()
Starts the connection to Gerrit stream of events. |
void |
stop()
|
void |
stopConnection()
Stops the connection to Gerrit stream of events. |
void |
triggerEvent(GerritEvent event)
Adds the given event to the stream of events. |
Methods inherited from class hudson.Plugin |
---|
configure, configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DISPLAY_NAME
public static final hudson.security.PermissionGroup PERMISSION_GROUP
public static final hudson.security.Permission MANUAL_TRIGGER
ManualTriggerAction
.
Constructor Detail |
---|
public PluginImpl()
Method Detail |
---|
public IGerritHudsonTriggerConfig getConfig()
public static PluginImpl getInstance()
public void start() throws java.lang.Exception
start
in class hudson.Plugin
java.lang.Exception
protected static void doXStreamRegistrations()
public void stop() throws java.lang.Exception
stop
in class hudson.Plugin
java.lang.Exception
public void addListener(GerritEventListener listener)
listener
- the listener.GerritHandler.addListener(com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritEventListener)
public void removeListener(GerritEventListener listener)
listener
- the listener to remove.GerritHandler.removeListener(com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritEventListener)
public void removeListener(ConnectionListener listener)
listener
- the listener to remove.public void startConnection() throws java.lang.Exception
java.lang.Exception
- if it is so unfortunate.public void stopConnection() throws java.lang.Exception
java.lang.Exception
- if it is so unfortunate.public void restartConnection() throws java.lang.Exception
java.lang.Exception
- if it is so unfortunate.public boolean addListener(ConnectionListener listener)
listener
- the listener.
public java.util.List<java.lang.String> getGerritProjects()
public void triggerEvent(GerritEvent event)
event
- the event.GerritHandler.triggerEvent(com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.GerritEvent)
public java.lang.String getGerritVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |