Class EdsClientSdkLogWrapper

    • Method Detail

      • logSdkBuildInfo

        public static void logSdkBuildInfo()
        Write SDK logging information to configured logger. Utility to write debug log messages containing SDK Build info.
      • logHostAppInfo

        public static void logHostAppInfo​(@NonNull
                                          android.content.Context context)
        Write host application information to configured logger. Utility to write host app information (package, version, signature). Logging is always performed even if debug logging is otherwise disabled.
        Parameters:
        context - context
      • getLogWrappedSdk

        public static IEdsClientSdk getLogWrappedSdk​(@NonNull
                                                     IEdsClientSdk sdk)
        Create Log-wrapped SDK instance
        Parameters:
        sdk - SDK instance
        Returns:
        log-wrapped SDK instance (or same sdk object if already log-wrapped)
      • getOriginalSdk

        public IEdsClientSdk getOriginalSdk()
        Allows access to original / unwrapped SDK instance supplied to constructor.
        Returns:
        original SDK instance supplied to constructor w/o log wrapper
      • discoverEdgeServices

        public IAsyncOpHandle discoverEdgeServices​(@NonNull
                                                   android.content.Context context,
                                                   @NonNull
                                                   IEdgeDiscoveryCallback callback,
                                                   @NonNull
                                                   java.lang.String svcEndpointsId,
                                                   @Nullable
                                                   android.net.Network targetNetwork,
                                                   @Nullable
                                                   IEdsSdkOptions options)
        Description copied from interface: IEdsClientSdk
        Perform Edge Service discovery using default targeting criteria (device IP for default data SIM) and operation options defaults from the SDK. This is an asynchronous operation, with callbacks guaranteed to the supplied callback handler.
        Specified by:
        discoverEdgeServices in interface IEdsClientSdk
        Parameters:
        context - context
        callback - operation callback
        svcEndpointsId - MEC service endpoints ID
        targetNetwork - cellular network used to obtain UE Identity. Likely also network used to communicate with with edge service endpoint. If default INTERNET network is used.
        options - SDK operation options. If NULL SDK default options will be used.
        Returns:
        operation handle for cancel
      • discoverEdgeServices

        public IAsyncOpHandle discoverEdgeServices​(@NonNull
                                                   android.content.Context context,
                                                   @NonNull
                                                   IEdgeDiscoveryCallback callback,
                                                   @NonNull
                                                   EdgeSvcsTargetingCriteria svcTargetCriteria,
                                                   @Nullable
                                                   IEdsSdkOptions operationOptions)
        Description copied from interface: IEdsClientSdk
        Perform Edge Service discovery using supplied targeting criteria. This is an asynchronous operation with callbacks guaranteed to the supplied callback handler.
        Specified by:
        discoverEdgeServices in interface IEdsClientSdk
        Parameters:
        context - context
        callback - callback handler
        svcTargetCriteria - edge service targeting criteria
        operationOptions - operation options. If null SDK default options will be used..
        Returns:
        operation handle for cancel
      • setAuthenticator

        public void setAuthenticator​(@NonNull
                                     MecAuthenticator authenticator)
        Description copied from interface: IEdsClientSdk
        Replace current Authenticator with new instance, to be used on all operations going forward. Note: MEC authenticator is a 'live' op
        Specified by:
        setAuthenticator in interface IEdsClientSdk
        Parameters:
        authenticator - MEC authenticator.
      • clearCache

        public void clearCache()
        Description copied from interface: IEdsClientSdk
        Clear SDK operation data cache, ensuring MEC server sync on next discovery operation.
        Specified by:
        clearCache in interface IEdsClientSdk