Class ManagedExecutionBackend
java.lang.Object
org.j7m.middleware.application.distributed.ManagedExecutionBackend
Trusted scope-bound execution source separating dynamic discovery from pinned live claims.
Every new claim opens a session at the current authoritative group/epoch. That session never
retargets after MOVED/FROZEN, including a later handoff back to the original physical group.
Borrowed endpoints and topology are not closed by this adapter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classPinned host-only live execution capability. -
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.distributed.ExecutionClientclient()Returns a dynamic scope client for submission, listing and explicit administration only.org.j7m.middleware.distributed.ExecutionEventsReturns lazy paged discovery over the dynamic authoritative source, never claim authority.static ManagedExecutionBackendBorrows one fixed physical group; new sessions read its current committed ownership epoch.Opens fresh ownership before a new claim; does not itself acquire a job or saga lease.static ManagedExecutionBackendpartition(String partition, String scope, org.j7m.middleware.distributed.PartitionAdminClient topology, Map<String, org.j7m.middleware.distributed.PartitionEndpoint> groups) Resolves authoritative topology only for a new claim or dynamic discovery operation.toString()Omits scope, endpoint inventory and credentials.
-
Method Details
-
group
public static ManagedExecutionBackend group(String partition, String scope, org.j7m.middleware.distributed.PartitionEndpoint endpoint) Borrows one fixed physical group; new sessions read its current committed ownership epoch. Frozen old sources reject new claims; existing sessions retain their original epoch forever.- Parameters:
partition- stable partition identityscope- authenticated execution scopeendpoint- fixed physical group's authorized endpoint, never a silently retargeting facade- Returns:
- source without starting workers or acquiring authority
-
partition
public static ManagedExecutionBackend partition(String partition, String scope, org.j7m.middleware.distributed.PartitionAdminClient topology, Map<String, org.j7m.middleware.distributed.PartitionEndpoint> groups) Resolves authoritative topology only for a new claim or dynamic discovery operation.- Parameters:
partition- stable partition identityscope- authenticated execution scopetopology- borrowed authoritative topology clientgroups- finite fixed physical endpoints keyed by their actual group identity- Returns:
- bounded source with captured immutable endpoint inventory
-
open
Opens fresh ownership before a new claim; does not itself acquire a job or saga lease.- Parameters:
deadline- original route/verification deadline- Returns:
- session pinned to this exact physical group and ownership epoch
- Throws:
IOException- if no current authoritative source is available
-
client
public org.j7m.middleware.distributed.ExecutionClient client()Returns a dynamic scope client for submission, listing and explicit administration only. Live claim checkpoint/renew/complete/effects must use Session.client() instead.- Returns:
- borrowed discovery/submission client
-
discovery
public org.j7m.middleware.distributed.ExecutionEvents discovery()Returns lazy paged discovery over the dynamic authoritative source, never claim authority.- Returns:
- execution event/listing facade
-
toString
-