|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.deploy.DeploymentManager
public class DeploymentManager
The Deployment Manager.
Responsibilities:
Nested Class Summary | |
---|---|
class |
DeploymentManager.AppEntry
Represents a single tracked app within the deployment manager. |
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
AbstractLifeCycle.AbstractLifeCycleListener |
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
---|
LifeCycle.Listener |
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
Constructor Summary | |
---|---|
DeploymentManager()
|
Method Summary | |
---|---|
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 |
getAppByContextId(java.lang.String contextId)
|
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(Node node)
Get Set of App s by 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. |
AttributesMap |
getContextAttributes()
|
ContextHandlerCollection |
getContexts()
|
java.lang.String |
getDefaultLifeCycleGoal()
|
AppLifeCycle |
getLifeCycle()
|
java.util.Collection<AppLifeCycle.Binding> |
getLifeCycleBindings()
|
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(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 |
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 |
setAppProviders(java.util.Collection<AppProvider> providers)
|
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(AttributesMap contextAttributes)
|
void |
setContexts(ContextHandlerCollection contexts)
|
void |
setDefaultLifeCycleGoal(java.lang.String defaultLifeCycleState)
|
void |
setLifeCycleBindings(java.util.Collection<AppLifeCycle.Binding> bindings)
|
void |
setUseStandardBindings(boolean useStandardBindings)
|
void |
undeployAll()
|
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
addLifeCycleListener, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeploymentManager()
Method Detail |
---|
public void addApp(App app)
AppProvider
implementations.
public void setAppProviders(java.util.Collection<AppProvider> 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
- existingToNodeName
- insertedNodeName
- protected void doStart() throws java.lang.Exception
doStart
in class AbstractLifeCycle
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class AbstractLifeCycle
java.lang.Exception
public App getAppByContextId(java.lang.String contextId)
public App getAppByOriginId(java.lang.String originId)
public java.util.Collection<DeploymentManager.AppEntry> getAppEntries()
public java.util.Collection<App> getApps()
public java.util.Collection<App> getApps(Node node)
App
s by Node
node
- the node to look for.
public java.util.List<App> getAppsWithSameContext(App app)
public java.lang.Object getContextAttribute(java.lang.String name)
name
-
public AttributesMap getContextAttributes()
public ContextHandlerCollection getContexts()
public java.lang.String getDefaultLifeCycleGoal()
public AppLifeCycle getLifeCycle()
public 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
- public 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 attainpublic void requestAppGoal(java.lang.String appId, 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
- value
- public void setContextAttributes(AttributesMap contextAttributes)
public void setContexts(ContextHandlerCollection contexts)
public void setDefaultLifeCycleGoal(java.lang.String defaultLifeCycleState)
public void undeployAll()
public boolean isUseStandardBindings()
public void setUseStandardBindings(boolean useStandardBindings)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |