Interface HostingSupervisor

All Superinterfaces:
ManagedInvocation
All Known Implementing Classes:
ApplicationManagerHost

public interface HostingSupervisor extends ManagedInvocation
Physical hosting boundary. Implementations must inspect actual runtime state after uncertain completion; controller state alone never proves a replacement. ApplicationManagerHost is the built-in runtime implementation. Supervisors do not grant coordination authority themselves.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drain(Instant deadline)
    Closes admission and waits for admitted invocations before invoking the runtime drain hook.
    Reads actual application admission state.
    void
    replace(ReleaseDescriptor release, Instant deadline)
    Replaces a drained instance using a verified trusted release and reopens admission.

    Methods inherited from interface ManagedInvocation

    invoke, invokeRevision
  • Method Details

    • inspect

      NodeView inspect()
      Reads actual application admission state.
      Returns:
      hosted revision and admission counters
    • drain

      void drain(Instant deadline) throws IOException
      Closes admission and waits for admitted invocations before invoking the runtime drain hook.
      Parameters:
      deadline - absolute deadline
      Throws:
      IOException - on incomplete drain
    • replace

      void replace(ReleaseDescriptor release, Instant deadline) throws IOException
      Replaces a drained instance using a verified trusted release and reopens admission.
      Parameters:
      release - server-catalog release
      deadline - absolute deadline
      Throws:
      IOException - for verification or uncertain runtime replacement