Package org.eclipse.jetty.deploy
Class AppLifeCycle
- java.lang.Object
-
- org.eclipse.jetty.deploy.graph.Graph
-
- org.eclipse.jetty.deploy.AppLifeCycle
-
public class AppLifeCycle extends Graph
The lifecycle of an App in theDeploymentManager.Setups a the default
Graph, and manages the bindings to the life cycle via theAppLifeCycle.Bindingannotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAppLifeCycle.Binding
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEPLOYEDstatic java.lang.StringDEPLOYINGstatic java.lang.StringFAILEDstatic java.lang.StringSTARTEDstatic java.lang.StringSTARTINGstatic java.lang.StringSTOPPINGstatic java.lang.StringUNDEPLOYEDstatic java.lang.StringUNDEPLOYING
-
Constructor Summary
Constructors Constructor Description AppLifeCycle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinding(AppLifeCycle.Binding binding)java.util.Set<AppLifeCycle.Binding>getBindings()Get allNodebound objects.java.util.Set<AppLifeCycle.Binding>getBindings(java.lang.String nodeName)Get all objects bound to a specificNodejava.util.Set<AppLifeCycle.Binding>getBindings(Node node)Get all objects bound to a specificNodevoidremoveBinding(AppLifeCycle.Binding binding)voidrunBindings(Node node, App app, DeploymentManager deploymentManager)-
Methods inherited from class org.eclipse.jetty.deploy.graph.Graph
addEdge, addEdge, addNode, findEdges, findEdgesFrom, getEdges, getNodeByName, getNodes, getPath, getPath, insertNode, insertNode, removeEdge, removeEdge, removeNode, setEdges, setNodes
-
-
-
-
Field Detail
-
UNDEPLOYED
public static final java.lang.String UNDEPLOYED
- See Also:
- Constant Field Values
-
DEPLOYING
public static final java.lang.String DEPLOYING
- See Also:
- Constant Field Values
-
DEPLOYED
public static final java.lang.String DEPLOYED
- See Also:
- Constant Field Values
-
STARTING
public static final java.lang.String STARTING
- See Also:
- Constant Field Values
-
STARTED
public static final java.lang.String STARTED
- See Also:
- Constant Field Values
-
STOPPING
public static final java.lang.String STOPPING
- See Also:
- Constant Field Values
-
UNDEPLOYING
public static final java.lang.String UNDEPLOYING
- See Also:
- Constant Field Values
-
FAILED
public static final java.lang.String FAILED
- See Also:
- Constant Field Values
-
-
Method Detail
-
addBinding
public void addBinding(AppLifeCycle.Binding binding)
-
removeBinding
public void removeBinding(AppLifeCycle.Binding binding)
-
getBindings
public java.util.Set<AppLifeCycle.Binding> getBindings()
Get allNodebound objects.- Returns:
- Set of Object(s) for all lifecycle bindings. never null.
-
getBindings
public java.util.Set<AppLifeCycle.Binding> getBindings(Node node)
Get all objects bound to a specificNode- Parameters:
node- the deployment graph node- Returns:
- Set of Object(s) for specific lifecycle bindings. never null.
-
getBindings
public java.util.Set<AppLifeCycle.Binding> getBindings(java.lang.String nodeName)
Get all objects bound to a specificNode- Parameters:
nodeName- the node name- Returns:
- Set of Object(s) for specific lifecycle bindings. never null.
-
runBindings
public void runBindings(Node node, App app, DeploymentManager deploymentManager) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-