@ManagedObject("Deployment Manager")
public class DeploymentManager
extends org.eclipse.jetty.util.component.ContainerLifeCycle
Responsibilities:

| Modifier and Type | Class | Description |
|---|---|---|
class |
DeploymentManager.AppEntry |
Represents a single tracked app within the deployment manager.
|
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor | Description |
|---|---|
DeploymentManager() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addApp(App app) |
Receive an app for processing.
|
void |
addAppProvider(AppProvider provider) |
|
void |
addLifeCycleBinding(AppLifeCycle.Binding binding) |
|
protected void |
doStart() |
|
protected void |
doStop() |
|
App |
getAppByOriginId(java.lang.String originId) |
|
java.util.Collection<DeploymentManager.AppEntry> |
getAppEntries() |
|
java.util.Collection<AppProvider> |
getAppProviders() |
|
java.util.Collection<App> |
getApps() |
|
java.util.Collection<App> |
getApps(java.lang.String nodeName) |
|
java.util.Collection<App> |
getApps(Node node) |
|
java.util.List<App> |
getAppsWithSameContext(App app) |
|
java.lang.Object |
getContextAttribute(java.lang.String name) |
Get a contextAttribute that will be set for every Context deployed by this provider.
|
org.eclipse.jetty.util.AttributesMap |
getContextAttributes() |
|
org.eclipse.jetty.server.handler.ContextHandlerCollection |
getContexts() |
|
java.lang.String |
getDefaultLifeCycleGoal() |
|
AppLifeCycle |
getLifeCycle() |
|
java.util.Collection<AppLifeCycle.Binding> |
getLifeCycleBindings() |
|
java.util.Collection<Node> |
getNodes() |
|
org.eclipse.jetty.server.Server |
getServer() |
|
void |
insertLifeCycleNode(java.lang.String existingFromNodeName,
java.lang.String existingToNodeName,
java.lang.String insertedNodeName) |
Convenience method to allow for insertion of nodes into the lifecycle.
|
boolean |
isUseStandardBindings() |
|
void |
removeApp(App app) |
Remove the app from the tracking of the DeploymentManager
|
void |
removeAppProvider(AppProvider provider) |
|
void |
removeContextAttribute(java.lang.String name) |
Remove a contextAttribute that will be set for every Context deployed by this provider.
|
void |
requestAppGoal(java.lang.String appId,
java.lang.String nodeName) |
Move an
App through the AppLifeCycle to the desired Node, executing each lifecycle step
in the process to reach the desired state. |
void |
requestAppGoal(App app,
java.lang.String nodeName) |
Move an
App through the AppLifeCycle to the desired Node, executing each lifecycle step
in the process to reach the desired state. |
void |
scope(org.eclipse.jetty.xml.XmlConfiguration xmlc,
org.eclipse.jetty.util.resource.Resource webapp) |
|
void |
setAppProviders(java.util.Collection<AppProvider> providers) |
Set the AppProviders.
|
void |
setContextAttribute(java.lang.String name,
java.lang.Object value) |
Set a contextAttribute that will be set for every Context deployed by this provider.
|
void |
setContextAttributes(org.eclipse.jetty.util.AttributesMap contextAttributes) |
|
void |
setContexts(org.eclipse.jetty.server.handler.ContextHandlerCollection contexts) |
|
void |
setDefaultLifeCycleGoal(java.lang.String defaultLifeCycleState) |
|
void |
setLifeCycleBindings(java.util.Collection<AppLifeCycle.Binding> bindings) |
|
void |
setUseStandardBindings(boolean useStandardBindings) |
|
void |
undeployAll() |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeanspublic void addApp(App app)
AppProvider implementations.app - the apppublic void setAppProviders(java.util.Collection<AppProvider> providers)
ContainerLifeCycle.addBean(Object) so that
their lifecycles may be managed as a ContainerLifeCycle.providers - the app provider list@ManagedAttribute("Application Providers")
public java.util.Collection<AppProvider> getAppProviders()
public void addAppProvider(AppProvider provider)
public void setLifeCycleBindings(java.util.Collection<AppLifeCycle.Binding> bindings)
public java.util.Collection<AppLifeCycle.Binding> getLifeCycleBindings()
public void addLifeCycleBinding(AppLifeCycle.Binding binding)
public void insertLifeCycleNode(java.lang.String existingFromNodeName,
java.lang.String existingToNodeName,
java.lang.String insertedNodeName)
existingFromNodeName - the existing node startexistingToNodeName - the existing node endinsertedNodeName - the new node to create between the existing nodesprotected void doStart()
throws java.lang.Exception
doStart in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.lang.Exceptionpublic App getAppByOriginId(java.lang.String originId)
public java.util.Collection<DeploymentManager.AppEntry> getAppEntries()
@ManagedAttribute("Deployed Apps")
public java.util.Collection<App> getApps()
public java.util.Collection<App> getApps(Node node)
node - the node to look for.public java.lang.Object getContextAttribute(java.lang.String name)
name - context attribute namepublic org.eclipse.jetty.util.AttributesMap getContextAttributes()
@ManagedAttribute("Deployed Contexts")
public org.eclipse.jetty.server.handler.ContextHandlerCollection getContexts()
public java.lang.String getDefaultLifeCycleGoal()
public AppLifeCycle getLifeCycle()
public org.eclipse.jetty.server.Server getServer()
public void removeApp(App app)
app - if the app is Unavailable remove it from the deployment manager.public void removeAppProvider(AppProvider provider)
public void removeContextAttribute(java.lang.String name)
name - the context attribute namepublic void requestAppGoal(App app, java.lang.String nodeName)
App through the AppLifeCycle to the desired Node, executing each lifecycle step
in the process to reach the desired state.app - the app to move through the processnodeName - the name of the node to attain@ManagedOperation(value="request the app to be moved to the specified lifecycle node",
impact="ACTION")
public void requestAppGoal(@Name("appId")
java.lang.String appId,
@Name("nodeName")
java.lang.String nodeName)
App through the AppLifeCycle to the desired Node, executing each lifecycle step
in the process to reach the desired state.appId - the id of the app to move through the processnodeName - the name of the node to attainpublic void setContextAttribute(java.lang.String name,
java.lang.Object value)
name - the context attribute namevalue - the context attribute valuepublic void setContextAttributes(org.eclipse.jetty.util.AttributesMap contextAttributes)
public void setContexts(org.eclipse.jetty.server.handler.ContextHandlerCollection contexts)
public void setDefaultLifeCycleGoal(java.lang.String defaultLifeCycleState)
public void undeployAll()
public boolean isUseStandardBindings()
public void setUseStandardBindings(boolean useStandardBindings)
public java.util.Collection<Node> getNodes()
public java.util.Collection<App> getApps(java.lang.String nodeName)
public void scope(org.eclipse.jetty.xml.XmlConfiguration xmlc,
org.eclipse.jetty.util.resource.Resource webapp)
throws java.io.IOException
java.io.IOExceptionCopyright © 1995–2018 Webtide. All rights reserved.