Class AgentscopeShutdownEndpoint
java.lang.Object
io.agentscope.spring.boot.admin.endpoint.AgentscopeShutdownEndpoint
POST /actuator/agentscope-shutdown: drain, then schedule a JVM-level shutdown.
Distinct from Spring Boot's own /actuator/shutdown in that it first calls
GracefulShutdownManager.performGracefulShutdown() so any in-flight reasoning gets a
chance to checkpoint its AgentState, only then closing the
Spring ConfigurableApplicationContext.
The actual System.exit or container teardown is left to the container — this method
closes the Spring context on a background thread and returns immediately.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentscopeShutdownEndpoint(AdminProperties properties, AdminAuditLogger audit, org.springframework.context.ApplicationContext appContext) -
Method Summary
-
Constructor Details
-
AgentscopeShutdownEndpoint
public AgentscopeShutdownEndpoint(AdminProperties properties, AdminAuditLogger audit, org.springframework.context.ApplicationContext appContext)
-
-
Method Details
-
shutdown
-