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 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(List<String> environments)voidaddInformation(String serverName, String applicationName, String environment, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation information)voidaddPipeline(DefaultPipeline pipeline)StringgetConfigKey()List<String>getEnvironments()StringgetLabel()<T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation>
List<T>getMatchingInformation(String type)<T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation>
List<T>getMatchingInformation(String type, String environment, String serverName, String applicationName)ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfiggetOnDuty()List<ch.mobi.mobitor.domain.screen.Pipeline>getPipelines()DategetRefreshDate(String type)Map<String,Date>getRefreshDates()intgetRefreshInterval()voidsetConfigKey(String configKey)voidsetLabel(String label)voidsetOnDuty(ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfig onDuty)voidsetRefreshDate(String type, Date refreshDate)voidsetRefreshInterval(int refreshInterval)
-
-
-
Method Detail
-
addInformation
public void addInformation(String serverName, String applicationName, 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 String getConfigKey()
- Specified by:
getConfigKeyin interfacech.mobi.mobitor.domain.screen.Screen
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfacech.mobi.mobitor.domain.screen.Screen
-
getRefreshInterval
public int getRefreshInterval()
- Specified by:
getRefreshIntervalin interfacech.mobi.mobitor.domain.screen.Screen
-
getPipelines
public List<ch.mobi.mobitor.domain.screen.Pipeline> getPipelines()
- Specified by:
getPipelinesin interfacech.mobi.mobitor.domain.screen.Screen
-
getEnvironments
public List<String> getEnvironments()
- Specified by:
getEnvironmentsin interfacech.mobi.mobitor.domain.screen.Screen
-
getMatchingInformation
public <T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation> List<T> getMatchingInformation(String type, String environment, String serverName, String applicationName)
- Specified by:
getMatchingInformationin interfacech.mobi.mobitor.domain.screen.Screen
-
getMatchingInformation
public <T extends ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation> List<T> getMatchingInformation(String type)
- Specified by:
getMatchingInformationin interfacech.mobi.mobitor.domain.screen.Screen
-
setConfigKey
public void setConfigKey(String configKey)
-
setLabel
public void setLabel(String label)
-
setRefreshInterval
public void setRefreshInterval(int refreshInterval)
-
addPipeline
public void addPipeline(DefaultPipeline pipeline)
-
setRefreshDate
public void setRefreshDate(String type, Date refreshDate)
- Specified by:
setRefreshDatein interfacech.mobi.mobitor.domain.screen.Screen
-
-