Class AbstractEvent
- java.lang.Object
-
- io.jenkins.plugins.maplelabs.Events.Data.AbstractEvent
-
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
AbstractBuildEvent
,ComputerEventCollectorImpl
,SecurityEventCollectorImpl
public abstract class AbstractEvent extends Object implements IEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.jenkins.plugins.maplelabs.Events.interfaces.IEvent
IEvent.AlertType, IEvent.Priority
-
-
Constructor Summary
Constructors Constructor Description AbstractEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IEvent.AlertType
getAlert()
IEvent.AlertType
getAlertType()
Long
getDate()
String
getEventType()
String
getHost()
String
getNodeName()
protected static String
getNodeName(Computer computer)
Get given computers nameIEvent.Priority
getPriority()
String
getText()
String
getTitle()
void
setAlert(IEvent.AlertType alert)
void
setDate(Long date)
void
setEventType(String event)
void
setHost(String host)
void
setNodeName(String nodeName)
void
setPriority(IEvent.Priority priority)
void
setText(String text)
void
setTitle(String title)
-
-
-
Method Detail
-
setDate
public void setDate(Long date)
-
setHost
public void setHost(String host)
-
setText
public void setText(String text)
-
setTitle
public void setTitle(String title)
-
getAlert
public IEvent.AlertType getAlert()
-
setAlert
public void setAlert(IEvent.AlertType alert)
-
setNodeName
public void setNodeName(String nodeName)
-
setPriority
public void setPriority(IEvent.Priority priority)
-
setEventType
public void setEventType(String event)
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceIEvent
-
getPriority
public IEvent.Priority getPriority()
- Specified by:
getPriority
in interfaceIEvent
-
getAlertType
public IEvent.AlertType getAlertType()
- Specified by:
getAlertType
in interfaceIEvent
-
getEventType
public String getEventType()
- Specified by:
getEventType
in interfaceIEvent
-
-