@Endpoint(id="restart",
enableByDefault=false)
public class RestartEndpoint
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
RestartListener with the SpringApplication that starts the context.
Those two components communicate via an ApplicationEvent and set up the state
needed to doRestart the context.| Modifier and Type | Class and Description |
|---|---|
class |
RestartEndpoint.PauseEndpoint |
class |
RestartEndpoint.ResumeEndpoint |
| Constructor and Description |
|---|
RestartEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPause() |
org.springframework.context.ConfigurableApplicationContext |
doRestart() |
void |
doResume() |
RestartEndpoint.PauseEndpoint |
getPauseEndpoint() |
RestartEndpoint.ResumeEndpoint |
getResumeEndpoint() |
long |
getTimeout() |
boolean |
isRunning() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent input) |
Object |
restart() |
void |
setIntegrationMBeanExporter(Object exporter) |
void |
setTimeout(long timeout) |
public long getTimeout()
public void setTimeout(long timeout)
public void setIntegrationMBeanExporter(Object exporter)
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent input)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>@WriteOperation public Object restart()
public RestartEndpoint.PauseEndpoint getPauseEndpoint()
public RestartEndpoint.ResumeEndpoint getResumeEndpoint()
public org.springframework.context.ConfigurableApplicationContext doRestart()
public boolean isRunning()
public void doPause()
public void doResume()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.