Immutable, XML-persisted registry of all currently active debug sessions across every tenant on this server instance. DebugSessionsHelper loads and saves this to a single file, and DebugService applies updates by deriving a new DebugSessions with withNewSession, withoutSession or withoutExpiredSessions rather than mutating an instance in place. Serialised to XML as a debug-sessions element holding one child per active session.

Group: Debugging


Properties

PropertyReturnsDescription
sessionsList<DebugSession>All active debug sessions currently held by this registry, across every tenant.

Methods

getSessions()

Returns: List<DebugSession>

All active debug sessions currently held by this registry, across every tenant.

withNewSession(DebugSession session)

Returns: DebugSessions

Returns a new registry containing this registry's sessions plus the given session appended.

ParameterDescription
sessionthe session to add

withoutExpiredSessions(Date now)

Returns: DebugSessions

Returns a new registry containing only this registry's sessions that have not yet expired as of the given time.

ParameterDescription
nowthe time to check expiry against

withoutSession(String sessionId)

Returns: DebugSessions

Returns a new registry with the session matching the given id removed, if present.

ParameterDescription
sessionIdthe id of the session to remove

withoutSession(String sessionId, Consumer<DebugSession> onRemoveSession)

Returns: DebugSessions

Returns a new registry with the session matching the given id removed, if present, invoking the given callback with the removed session.

ParameterDescription
sessionIdthe id of the session to remove
onRemoveSessioncallback invoked with the removed session, or null to skip the callback

findDebugSession(String sessionId)

Returns: DebugSession

Looks up a session in this registry by its id.

ParameterDescription
sessionIdthe id of the session to find
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.