|
||||||||||
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 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. |
List<String> |
getGerritProjects()
Returns a list of Gerrit projects. |
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 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 Exception
start
in class hudson.Plugin
Exception
protected static void doXStreamRegistrations()
public void stop() throws Exception
stop
in class hudson.Plugin
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 Exception
Exception
- if it is so unfortunate.public void stopConnection() throws Exception
Exception
- if it is so unfortunate.public void restartConnection() throws Exception
Exception
- if it is so unfortunate.public boolean addListener(ConnectionListener listener)
listener
- the listener.
public List<String> getGerritProjects()
public void triggerEvent(GerritEvent event)
event
- the event.GerritHandler.triggerEvent(com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.GerritEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |