Class ApplicationInstanceInfo
public class ApplicationInstanceInfo : AbstractOptions, IApplicationInstanceInfo
- Inheritance
-
ApplicationInstanceInfo
- Implements
- Derived
- Inherited Members
Constructors
ApplicationInstanceInfo()
public ApplicationInstanceInfo()
ApplicationInstanceInfo(IConfiguration)
public ApplicationInstanceInfo(IConfiguration configuration)
Parameters
configuration
IConfiguration
ApplicationInstanceInfo(IConfiguration, bool)
public ApplicationInstanceInfo(IConfiguration configuration, bool noPrefix)
Parameters
configuration
IConfigurationnoPrefix
bool
ApplicationInstanceInfo(IConfiguration, string)
public ApplicationInstanceInfo(IConfiguration configuration, string configPrefix)
Parameters
configuration
IConfigurationconfigPrefix
string
Fields
ApplicationRoot
public static readonly string ApplicationRoot
Field Value
ConfigServerRoot
public readonly string ConfigServerRoot
Field Value
ConsulRoot
public readonly string ConsulRoot
Field Value
EurekaRoot
public readonly string EurekaRoot
Field Value
KubernetesRoot
public readonly string KubernetesRoot
Field Value
ManagementRoot
public readonly string ManagementRoot
Field Value
ServicesRoot
public readonly string ServicesRoot
Field Value
SpringApplicationRoot
public readonly string SpringApplicationRoot
Field Value
configuration
protected IConfiguration configuration
Field Value
Properties
AppInstanceIdKey
public string AppInstanceIdKey { get; }
Property Value
AppNameKey
public string AppNameKey { get; }
Property Value
ApplicationId
Gets a GUID identifying the application
public virtual string ApplicationId { get; set; }
Property Value
ApplicationName
Gets the name of the application, as known to the hosting platform
public virtual string ApplicationName { get; }
Property Value
ApplicationVersion
public virtual string ApplicationVersion { get; set; }
Property Value
Application_Id
public string Application_Id { get; set; }
Property Value
ConfigServerNameKey
public string ConfigServerNameKey { get; }
Property Value
ConsulInstanceNameKey
public string ConsulInstanceNameKey { get; }
Property Value
DefaultAppName
public string DefaultAppName { get; }
Property Value
DiskLimit
Gets the maximum amount of disk available for the app instance
public virtual int DiskLimit { get; set; }
Property Value
EnvironmentName
public virtual string EnvironmentName { get; set; }
Property Value
EurekaInstanceNameKey
public string EurekaInstanceNameKey { get; }
Property Value
FileDescriptorLimit
Gets the maximum amount of file descriptors available to the app instance
public virtual int FileDescriptorLimit { get; set; }
Property Value
InstanceIP
Gets the external IP address of the host running the app instance
public virtual string InstanceIP { get; set; }
Property Value
InstanceId
public virtual string InstanceId { get; set; }
Property Value
InstanceIndex
Gets the index number of the app instance
public virtual int InstanceIndex { get; set; }
Property Value
Instance_Id
public string Instance_Id { get; set; }
Property Value
InternalIP
Gets the internal IP address of the container running the app instance instance
public virtual string InternalIP { get; set; }
Property Value
KubernetesNameKey
public string KubernetesNameKey { get; }
Property Value
ManagementNameKey
public string ManagementNameKey { get; }
Property Value
MemoryLimit
Gets the maximum amount of memory available for the app instance
public virtual int MemoryLimit { get; set; }
Property Value
Name
public virtual string Name { get; set; }
Property Value
PlatformNameKey
public string PlatformNameKey { get; }
Property Value
PlatformRoot
protected virtual string PlatformRoot { get; }
Property Value
Port
Gets the port assigned to the app instance, on which it should listen
public int Port { get; set; }
Property Value
Uris
Gets the URIs assigned to the app
public virtual IEnumerable<string> Uris { get; set; }
Property Value
Version
Gets a GUID identifying the application instance
public string Version { get; set; }
Property Value
Methods
ApplicationNameInContext(SteeltoeComponent, string)
Gets the name to use to represent the app instance in the context of a given Steeltoe component
public string ApplicationNameInContext(SteeltoeComponent steeltoeComponent, string additionalSearchPath = null)
Parameters
steeltoeComponent
SteeltoeComponentThe Steeltoe component requesting the app's name
additionalSearchPath
stringOne additional config key to consider, used as top priority in search
Returns
- string
The name of the application
SecondChanceSetIdProperties(IConfiguration)
protected void SecondChanceSetIdProperties(IConfiguration config = null)
Parameters
config
IConfiguration