Class V1CloudNotice

java.lang.Object
com.ultikits.ultitools.manager.V1CloudNotice

final class V1CloudNotice extends Object
The one INFO line per run that a kept protocol v1 entry point of a manager writes when it is called (plan 22-25, S-04 option b).

As of 6.3.1 the framework never calls these entry points (the setWebSocketClient setters, the initialize methods that take a v1 client, the v1 transmitter constructor): its own UltiCloud session speaks protocol 2.0.0. They still accept the client a caller hands in, because the v1 senders behind them stay until 6.4.0 (S-67); the line makes that state explicit instead of letting the call look as if it connected anything. Each line goes to the owning class's logger.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Set<String>
    Owner#member keys that already logged their line in this run.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    once(Class<?> owner, String member)
    Logs the line for member of owner, unless this run already did.
    (package private) static void
    Test-only: forgets every line this run already logged.

    Methods inherited from class java.lang.Object

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

    • LOGGED

      private static final Set<String> LOGGED
      Owner#member keys that already logged their line in this run.
  • Constructor Details

    • V1CloudNotice

      private V1CloudNotice()
  • Method Details

    • once

      static void once(Class<?> owner, String member)
      Logs the line for member of owner, unless this run already did.
      Parameters:
      owner - the class that declares the entry point
      member - the entry point as it should read in the line, for example "setWebSocketClient"
    • resetForTesting

      static void resetForTesting()
      Test-only: forgets every line this run already logged.