Package com.google.cloud.logging
Interface ResourceTypeEnvironmentGetter
-
public interface ResourceTypeEnvironmentGetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAttribute(String name)
Gets the value of the specified metadata server attribute.String
getEnv(String name)
Gets the value of the specified environment variable.
-
-
-
Method Detail
-
getEnv
String getEnv(String name)
Gets the value of the specified environment variable.- Parameters:
name
- the name of the environment variable- Returns:
- the string value of the variable, or
null
if the variable is not defined in the system environment - See Also:
System.getenv()
-
getAttribute
String getAttribute(String name)
Gets the value of the specified metadata server attribute.- Parameters:
name
- the name of the metadata server attribute.- Returns:
- the string value of the attribute, or
null
if the attribute is not defined in the metadata or the server is not available. - See Also:
MetadataConfig.getAttribute(String)
-
-