Package ch.mobi.mobitor.domain.screen
Class DefaultScreen
- java.lang.Object
-
- ch.mobi.mobitor.domain.screen.DefaultScreen
-
- All Implemented Interfaces:
ch.mobi.mobitor.domain.screen.Screen
public class DefaultScreen extends java.lang.Object implements ch.mobi.mobitor.domain.screen.Screen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultScreen.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEnvironments(java.util.List<java.lang.String> environments)voidaddInformation(java.lang.String serverName, java.lang.String applicationName, java.lang.String environment, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation information)voidaddPipeline(DefaultPipeline pipeline)java.lang.StringgetConfigKey()java.util.List<java.lang.String>getEnvironments()java.lang.StringgetLabel()<T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation>
java.util.List<T>getMatchingInformation(java.lang.String type)<T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation>
java.util.List<T>getMatchingInformation(java.lang.String type, java.lang.String environment, java.lang.String serverName, java.lang.String applicationName)ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfiggetOnDuty()java.util.List<ch.mobi.mobitor.domain.screen.Pipeline>getPipelines()java.util.DategetRefreshDate(java.lang.String type)java.util.Map<java.lang.String,java.util.Date>getRefreshDates()intgetRefreshInterval()voidsetConfigKey(java.lang.String configKey)voidsetLabel(java.lang.String label)voidsetOnDuty(ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfig onDuty)voidsetRefreshDate(java.lang.String type, java.util.Date refreshDate)voidsetRefreshInterval(int refreshInterval)
-
-
-
Method Detail
-
addInformation
public void addInformation(java.lang.String serverName, java.lang.String applicationName, java.lang.String environment, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation information)- Specified by:
addInformationin interfacech.mobi.mobitor.domain.screen.Screen
-
getOnDuty
public ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfig getOnDuty()
-
setOnDuty
public void setOnDuty(ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfig onDuty)
-
getConfigKey
public java.lang.String getConfigKey()
- Specified by:
getConfigKeyin interfacech.mobi.mobitor.domain.screen.Screen
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabelin interfacech.mobi.mobitor.domain.screen.Screen
-
getRefreshInterval
public int getRefreshInterval()
- Specified by:
getRefreshIntervalin interfacech.mobi.mobitor.domain.screen.Screen
-
addEnvironments
public void addEnvironments(java.util.List<java.lang.String> environments)
-
getPipelines
public java.util.List<ch.mobi.mobitor.domain.screen.Pipeline> getPipelines()
- Specified by:
getPipelinesin interfacech.mobi.mobitor.domain.screen.Screen
-
getEnvironments
public java.util.List<java.lang.String> getEnvironments()
- Specified by:
getEnvironmentsin interfacech.mobi.mobitor.domain.screen.Screen
-
getMatchingInformation
public <T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation> java.util.List<T> getMatchingInformation(java.lang.String type, java.lang.String environment, java.lang.String serverName, java.lang.String applicationName)- Specified by:
getMatchingInformationin interfacech.mobi.mobitor.domain.screen.Screen
-
getMatchingInformation
public <T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation> java.util.List<T> getMatchingInformation(java.lang.String type)
- Specified by:
getMatchingInformationin interfacech.mobi.mobitor.domain.screen.Screen
-
setConfigKey
public void setConfigKey(java.lang.String configKey)
-
setLabel
public void setLabel(java.lang.String label)
-
setRefreshInterval
public void setRefreshInterval(int refreshInterval)
-
addPipeline
public void addPipeline(DefaultPipeline pipeline)
-
setRefreshDate
public void setRefreshDate(java.lang.String type, java.util.Date refreshDate)- Specified by:
setRefreshDatein interfacech.mobi.mobitor.domain.screen.Screen
-
getRefreshDate
public java.util.Date getRefreshDate(java.lang.String type)
-
getRefreshDates
public java.util.Map<java.lang.String,java.util.Date> getRefreshDates()
-
-