Class 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 class  DefaultScreen.Builder  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEnvironments​(java.util.List<java.lang.String> environments)  
      void addInformation​(java.lang.String serverName, java.lang.String applicationName, java.lang.String environment, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation information)  
      void addPipeline​(DefaultPipeline pipeline)  
      java.lang.String getConfigKey()  
      java.util.List<java.lang.String> getEnvironments()  
      java.lang.String getLabel()  
      <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.OnDutyConfig getOnDuty()  
      java.util.List<ch.mobi.mobitor.domain.screen.Pipeline> getPipelines()  
      java.util.Date getRefreshDate​(java.lang.String type)  
      java.util.Map<java.lang.String,​java.util.Date> getRefreshDates()  
      int getRefreshInterval()  
      void setConfigKey​(java.lang.String configKey)  
      void setLabel​(java.lang.String label)  
      void setOnDuty​(ch.mobi.mobitor.plugins.api.domain.config.OnDutyConfig onDuty)  
      void setRefreshDate​(java.lang.String type, java.util.Date refreshDate)  
      void setRefreshInterval​(int refreshInterval)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        addInformation in interface ch.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:
        getConfigKey in interface ch.mobi.mobitor.domain.screen.Screen
      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel in interface ch.mobi.mobitor.domain.screen.Screen
      • getRefreshInterval

        public int getRefreshInterval()
        Specified by:
        getRefreshInterval in interface ch.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:
        getPipelines in interface ch.mobi.mobitor.domain.screen.Screen
      • getEnvironments

        public java.util.List<java.lang.String> getEnvironments()
        Specified by:
        getEnvironments in interface ch.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:
        getMatchingInformation in interface ch.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:
        getMatchingInformation in interface ch.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)
      • setRefreshDate

        public void setRefreshDate​(java.lang.String type,
                                   java.util.Date refreshDate)
        Specified by:
        setRefreshDate in interface ch.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()