Class NoOpCloud

  • All Implemented Interfaces:
    CloudApi, com.newrelic.api.agent.Cloud

    public class NoOpCloud
    extends java.lang.Object
    implements CloudApi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static CloudApi INSTANCE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decodeAwsAccountId​(java.lang.String accessKey)
      Decode the account id from the given access key.
      java.lang.String getAccountInfo​(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)
      Return the general account information of the provided type.
      java.lang.String getAccountInfo​(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)
      Retrieves the account information for a cloud service SDK client.
      void setAccountInfo​(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo, java.lang.String value)  
      void setAccountInfo​(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final CloudApi INSTANCE
    • Method Detail

      • setAccountInfo

        public void setAccountInfo​(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo,
                                   java.lang.String value)
        Specified by:
        setAccountInfo in interface com.newrelic.api.agent.Cloud
      • setAccountInfo

        public void setAccountInfo​(java.lang.Object sdkClient,
                                   com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo,
                                   java.lang.String value)
        Specified by:
        setAccountInfo in interface com.newrelic.api.agent.Cloud
      • getAccountInfo

        public java.lang.String getAccountInfo​(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)
        Description copied from interface: CloudApi
        Return the general account information of the provided type. This data is either set by Cloud.setAccountInfo(CloudAccountInfo, String) or the agent config.
        Specified by:
        getAccountInfo in interface CloudApi
      • getAccountInfo

        public java.lang.String getAccountInfo​(java.lang.Object sdkClient,
                                               com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)
        Description copied from interface: CloudApi
        Retrieves the account information for a cloud service SDK client. If no data was recorded for the SDK client, the general account information will be returned.
        Specified by:
        getAccountInfo in interface CloudApi
      • decodeAwsAccountId

        public java.lang.String decodeAwsAccountId​(java.lang.String accessKey)
        Description copied from interface: CloudApi
        Decode the account id from the given access key. This method becomes a noop and always returns null if the config "cloud.aws.account_decoding" is set to false.
        Specified by:
        decodeAwsAccountId in interface CloudApi