Class AcrossApplicationInfoImpl

java.lang.Object
com.foreach.across.modules.applicationinfo.business.AcrossApplicationInfoImpl
All Implemented Interfaces:
AcrossApplicationInfo, com.foreach.common.spring.context.ApplicationInfo, com.foreach.common.spring.context.MutableApplicationInfo

public class AcrossApplicationInfoImpl extends Object implements com.foreach.common.spring.context.MutableApplicationInfo, AcrossApplicationInfo
  • Constructor Details

    • AcrossApplicationInfoImpl

      public AcrossApplicationInfoImpl()
  • Method Details

    • getApplicationId

      public String getApplicationId()
      Specified by:
      getApplicationId in interface com.foreach.common.spring.context.ApplicationInfo
    • setApplicationId

      public void setApplicationId(String applicationId)
      Specified by:
      setApplicationId in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getApplicationName

      public String getApplicationName()
      Specified by:
      getApplicationName in interface com.foreach.common.spring.context.ApplicationInfo
    • setApplicationName

      public void setApplicationName(String applicationName)
      Specified by:
      setApplicationName in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getEnvironmentId

      public String getEnvironmentId()
      Specified by:
      getEnvironmentId in interface com.foreach.common.spring.context.ApplicationInfo
    • setEnvironmentId

      public void setEnvironmentId(String environmentId)
      Specified by:
      setEnvironmentId in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getEnvironmentName

      public String getEnvironmentName()
      Specified by:
      getEnvironmentName in interface com.foreach.common.spring.context.ApplicationInfo
    • setEnvironmentName

      public void setEnvironmentName(String environmentName)
      Specified by:
      setEnvironmentName in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getBuildId

      public String getBuildId()
      Specified by:
      getBuildId in interface com.foreach.common.spring.context.ApplicationInfo
    • setBuildId

      public void setBuildId(String buildId)
      Specified by:
      setBuildId in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getBuildDate

      public Date getBuildDate()
      Specified by:
      getBuildDate in interface com.foreach.common.spring.context.ApplicationInfo
    • setBuildDate

      public void setBuildDate(Date buildDate)
      Specified by:
      setBuildDate in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getHostName

      public String getHostName()
      Specified by:
      getHostName in interface com.foreach.common.spring.context.ApplicationInfo
    • setHostName

      public void setHostName(String hostName)
      Specified by:
      setHostName in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface com.foreach.common.spring.context.ApplicationInfo
    • setInstanceId

      public void setInstanceId(String instanceId)
      Specified by:
      setInstanceId in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getStartupDate

      public Date getStartupDate()
      Specified by:
      getStartupDate in interface com.foreach.common.spring.context.ApplicationInfo
    • setStartupDate

      public void setStartupDate(Date startupDate)
      Specified by:
      setStartupDate in interface com.foreach.common.spring.context.MutableApplicationInfo
    • getBootstrapStartDate

      public Date getBootstrapStartDate()
      Specified by:
      getBootstrapStartDate in interface AcrossApplicationInfo
    • setBootstrapStartDate

      public void setBootstrapStartDate(Date bootstrapStartDate)
    • getBootstrapEndDate

      public Date getBootstrapEndDate()
      Specified by:
      getBootstrapEndDate in interface AcrossApplicationInfo
    • setBootstrapEndDate

      public void setBootstrapEndDate(Date bootstrapEndDate)
    • getUptime

      public long getUptime()
      Specified by:
      getUptime in interface AcrossApplicationInfo
    • getBootstrapDuration

      public long getBootstrapDuration()
      Specified by:
      getBootstrapDuration in interface AcrossApplicationInfo
    • isRunningIn

      public boolean isRunningIn(String environmentId)
      Specified by:
      isRunningIn in interface com.foreach.common.spring.context.ApplicationInfo
      Parameters:
      environmentId - Id of the environment to check against.
      Returns:
      True if the application is running in that environment.
    • toString

      public String toString()
      Overrides:
      toString in class Object