Class ManagedOwnershipPolicy
java.lang.Object
org.j7m.middleware.application.distributed.ManagedOwnershipPolicy
- All Implemented Interfaces:
AutoCloseable, org.j7m.middleware.application.components.ManagedInvocationPolicy
public final class ManagedOwnershipPolicy
extends Object
implements org.j7m.middleware.application.components.ManagedInvocationPolicy, AutoCloseable
General D05/D06 ownership interceptor with finite host tenant/profile inventory. It acquires a
real lease before body entry and supplies a per-claim provider context. Leadership is on-demand;
no scheduler or arbitrary-effect fencing is implied. Renewal workers never run application code.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSafe aggregate host diagnostics without keys, identities or application values.Nested classes/interfaces inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy
org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding, org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase, org.j7m.middleware.application.components.ManagedInvocationPolicy.Proceed -
Constructor Summary
ConstructorsConstructorDescriptionManagedOwnershipPolicy(Map<String, ManagedOwnershipProfile> profiles, Set<String> tenants, Function<org.j7m.middleware.application.api.InvocationContext, String> tenantResolver) Installs immutable trusted profiles with finite authenticated tenant mapping. -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends Annotation>> org.j7m.middleware.application.components.ManagedInvocationPolicy.Bindingbind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) voidclose()Stops new admission and closes executors only after actual invocation finalizers disposed all claims.org.j7m.middleware.application.components.ManagedInvocationPolicy.Phasephase()status()Returns finite aggregate maintenance state.voidvalidate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) voidvalidateComponent(Class<?> component, boolean exported) voidvalidateExposure(Class<?> component, Map<org.j7m.middleware.application.api.ManagedServiceContract, Class<?>> exports) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy
bindHosted, validateHosted, validateHostedExposure, validateHostedExposure
-
Constructor Details
-
ManagedOwnershipPolicy
public ManagedOwnershipPolicy(Map<String, ManagedOwnershipProfile> profiles, Set<String> tenants, Function<org.j7m.middleware.application.api.InvocationContext, String> tenantResolver) Installs immutable trusted profiles with finite authenticated tenant mapping.- Parameters:
profiles- at most64 host policy namestenants- at most64 known tenant identitiestenantResolver- maps the actual authenticated/host-bound context, never application arguments- Throws:
IllegalArgumentException- for invalid identities/capacitiesNullPointerException- for null configuration
-
-
Method Details
-
phase
public org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase phase()- Specified by:
phasein interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy
-
annotationTypes
- Specified by:
annotationTypesin interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy
-
validateComponent
- Specified by:
validateComponentin interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy
-
validateExposure
-
validate
-
bind
public org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) - Specified by:
bindin interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy
-
status
Returns finite aggregate maintenance state.- Returns:
- immutable redacted counters
-
close
public void close()Stops new admission and closes executors only after actual invocation finalizers disposed all claims. In-flight USER work is never declared physically complete by policy close.- Specified by:
closein interfaceAutoCloseable- Throws:
IllegalStateException- while actual claims still belong to invocations
-