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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
boolean
isRunningIn
(String environmentId) void
setApplicationId
(String applicationId) void
setApplicationName
(String applicationName) void
setBootstrapEndDate
(Date bootstrapEndDate) void
setBootstrapStartDate
(Date bootstrapStartDate) void
setBuildDate
(Date buildDate) void
setBuildId
(String buildId) void
setEnvironmentId
(String environmentId) void
setEnvironmentName
(String environmentName) void
setHostName
(String hostName) void
setInstanceId
(String instanceId) void
setStartupDate
(Date startupDate) toString()
-
Constructor Details
-
AcrossApplicationInfoImpl
public AcrossApplicationInfoImpl()
-
-
Method Details
-
getApplicationId
- Specified by:
getApplicationId
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setApplicationId
- Specified by:
setApplicationId
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getApplicationName
- Specified by:
getApplicationName
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setApplicationName
- Specified by:
setApplicationName
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getEnvironmentId
- Specified by:
getEnvironmentId
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setEnvironmentId
- Specified by:
setEnvironmentId
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getEnvironmentName
- Specified by:
getEnvironmentName
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setEnvironmentName
- Specified by:
setEnvironmentName
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getBuildId
- Specified by:
getBuildId
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setBuildId
- Specified by:
setBuildId
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getBuildDate
- Specified by:
getBuildDate
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setBuildDate
- Specified by:
setBuildDate
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getHostName
- Specified by:
getHostName
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setHostName
- Specified by:
setHostName
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getInstanceId
- Specified by:
getInstanceId
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setInstanceId
- Specified by:
setInstanceId
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getStartupDate
- Specified by:
getStartupDate
in interfacecom.foreach.common.spring.context.ApplicationInfo
-
setStartupDate
- Specified by:
setStartupDate
in interfacecom.foreach.common.spring.context.MutableApplicationInfo
-
getBootstrapStartDate
- Specified by:
getBootstrapStartDate
in interfaceAcrossApplicationInfo
-
setBootstrapStartDate
-
getBootstrapEndDate
- Specified by:
getBootstrapEndDate
in interfaceAcrossApplicationInfo
-
setBootstrapEndDate
-
getUptime
public long getUptime()- Specified by:
getUptime
in interfaceAcrossApplicationInfo
-
getBootstrapDuration
public long getBootstrapDuration()- Specified by:
getBootstrapDuration
in interfaceAcrossApplicationInfo
-
isRunningIn
- Specified by:
isRunningIn
in interfacecom.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
-