@Entity public class SLARegistrationBean extends Object implements JsonBean
Constructor and Description |
---|
SLARegistrationBean() |
SLARegistrationBean(org.json.simple.JSONObject obj) |
public SLARegistrationBean()
public SLARegistrationBean(org.json.simple.JSONObject obj)
public String getParentId()
public void setParentId(String parentId)
public String getAppName()
public void setAppName(String appName)
public AppType getAppType()
public void setAppType(AppType appType)
public Timestamp getCreatedTimestamp()
public void setCreatedTimestamp(Timestamp createdTime)
public Date getCreatedTime()
public void setCreatedTime(Date createdTime)
public Date getNominalTime()
public Timestamp getNominalTimestamp()
public void setNominalTime(Date nominalTime)
public Date getExpectedStart()
public Timestamp getExpectedStartTimestamp()
public void setExpectedStart(Date expectedStart)
public Date getExpectedEnd()
public Timestamp getExpectedEndTimestamp()
public void setExpectedEnd(Date expectedEnd)
public long getExpectedDuration()
public void setExpectedDuration(long expectedDuration)
public String getUpstreamApps()
public void setUpstreamApps(String upstreamApps)
public String getJobData()
public void setJobData(String jobData)
public String getSlaConfig()
public void setSlaConfig(String configStr)
public String getNotificationMsg()
public void setNotificationMsg(String notificationMsg)
public String getAlertEvents()
public void setAlertEvents(String alertEvents)
public String getAlertContact()
public void setAlertContact(String alertContact)
public Map<String,String> getSLAConfigMap()
public void addToSLAConfigMap(String key, String value)
public void removeFromSLAConfigMap(String key)
public String slaConfigMapToString()
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBean
toJSONObject
in interface JsonBean
timeZoneId
- the time zone to usepublic static org.json.simple.JSONArray toJSONArray(List<? extends SLARegistrationBean> events, String timeZoneId)
events
- SLARegistrationBean list.timeZoneId
- time zone to use for dates in the JSON array.public static List<SLARegistrationBean> fromJSONArray(org.json.simple.JSONArray array)
array
- JSON array.public Event.MessageType getMsgType()
public void setMsgType(Event.MessageType msgType)
Copyright © 2018 Apache Software Foundation. All rights reserved.