public class Project extends Object implements XProject
| Constructor and Description |
|---|
Project(org.springframework.context.ApplicationContext projectContext,
ClassLoader classLoader,
File artifactPath,
ServerConfig serverConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransportListener(TransportListener transportListener) |
void |
addTransportSender(TransportSender transportSender) |
void |
destroy() |
void |
environmentChanged(XEnvironment environment)
XEnvironment's tag changes will be notified through this method. |
ClassLoader |
getClassLoader() |
<T> T |
getFeature(Class<T> clazz) |
List<XIntegrationFlow> |
getIntegrationFlows() |
XMetricsEngine |
getMetricsEngine() |
ProjectConfig |
getProjectConfig() |
XServerConfig |
getServerConfig() |
Status |
getStatus()
Returns the current status of this Project
|
List<TransportListener> |
getTransportListeners() |
List<TransportSender> |
getTransportSenders() |
void |
init(org.springframework.context.ApplicationContext context) |
void |
pauseProject()
This method can be used to pause the project.
|
CompletableFuture<Boolean> |
readyForShutdown()
This method can be used to instruct the project to get ready for a shutdown operation.
|
void |
resumeProject()
This method can be used to resume the project from a paused state
|
void |
start() |
void |
stop() |
protected volatile Status status
public Project(org.springframework.context.ApplicationContext projectContext,
ClassLoader classLoader,
File artifactPath,
ServerConfig serverConfig)
public void init(org.springframework.context.ApplicationContext context)
init in interface Initializablepublic void destroy()
destroy in interface Initializablepublic ProjectConfig getProjectConfig()
getProjectConfig in interface XProjectpublic XServerConfig getServerConfig()
getServerConfig in interface XProjectpublic List<TransportListener> getTransportListeners()
getTransportListeners in interface XProjectpublic List<TransportSender> getTransportSenders()
getTransportSenders in interface XProjectpublic void addTransportListener(TransportListener transportListener)
addTransportListener in interface XProjectpublic void addTransportSender(TransportSender transportSender)
addTransportSender in interface XProjectpublic List<XIntegrationFlow> getIntegrationFlows()
getIntegrationFlows in interface XProjectpublic XMetricsEngine getMetricsEngine()
getMetricsEngine in interface XProjectpublic <T> T getFeature(Class<T> clazz)
getFeature in interface XProjectpublic ClassLoader getClassLoader()
getClassLoader in interface XProjectpublic void environmentChanged(XEnvironment environment)
XEnvironmentListenerXEnvironment's tag changes will be notified through this method. The concrete classes implementing this
method should know that some tags has changed (may be added ot removed). Therefore, it is the implementing method's
responsibility to make sure it browse the tag container again to determine what should be done. This design is introduced
to make sure that the listeners of the XEnvironment can be configured to be acted upon multiple tags at the same
timeenvironmentChanged in interface XEnvironmentListenerenvironment - XEnvironment of this nodepublic Status getStatus()
XProjectpublic void resumeProject()
XProjectresumeProject in interface XProjectpublic void pauseProject()
XProjectpauseProject in interface XProjectpublic CompletableFuture<Boolean> readyForShutdown()
XProjectreadyForShutdown in interface XProjectCompletableFuture which will be completed when the project becomes idle and ready to
be shutdownCopyright © 2016–2019 AdroitLogic. All rights reserved.