YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.client.SnapcastClientRuntime Class Reference

What the status screen of the client reads: the latest status of the running session (or of the last one) and a phase text of the service. More...

Collaboration diagram for de.yaacc.snapcast.client.SnapcastClientRuntime:
Collaboration graph

Classes

enum  Ending
 Why a session ended on the connection side (typed, no server text). More...
 
enum  Phase
 The phase of the service around the engine. More...
 
class  View
 An immutable view for the screen.
 

Static Public Member Functions

static void clientId (String id)
 The service built the Hello of the session that starts: its client id.
 
static String clientId ()
 The client id of the session that runs or starts; null when it is not known yet, and after the session ended.
 
static View get ()
 
static void phase (Phase phase, Ending ending, long startedAtMillis)
 
static void phaseWhileActive (Phase phase, Ending ending, long startedAtMillis)
 As phase but only while a session is still on, decided in the same atomic step: a late "connected" or "lost" from another thread can not bring a finished session back to life (check-then-act would).
 
static void engine (EngineStatus status)
 
static void server (ServerSays says)
 The newest answer of the server about this client.
 
static void serviceCreated ()
 The service instance was created (its onCreate).
 
static void serviceDestroyed ()
 The service instance was destroyed: it has torn its session down (its onDestroy).
 
static boolean isServiceAlive ()
 A service instance exists.
 
static boolean isActive ()
 True while a session is starting or running.
 

Detailed Description

What the status screen of the client reads: the latest status of the running session (or of the last one) and a phase text of the service.

A process-wide holder, because the screen and the service live apart. Thread safe.

Member Function Documentation

◆ isServiceAlive()

static boolean de.yaacc.snapcast.client.SnapcastClientRuntime.isServiceAlive ( )
static

A service instance exists.

It outlives the phase of its session by the teardown (a few seconds at most), and it answers a start with "busy" until it is gone: a restart on another server waits for this too (task 12.10).


The documentation for this class was generated from the following file: