public class AppLifeCycle extends Graph
DeploymentManager
.
Setups a the default Graph
, and manages the bindings to the life cycle via the AppLifeCycle.Binding
annotation.
Modifier and Type | Class and Description |
---|---|
static interface |
AppLifeCycle.Binding |
Modifier and Type | Field and Description |
---|---|
static String |
DEPLOYED |
static String |
DEPLOYING |
static String |
STARTED |
static String |
STARTING |
static String |
STOPPING |
static String |
UNDEPLOYED |
static String |
UNDEPLOYING |
Constructor and Description |
---|
AppLifeCycle() |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(AppLifeCycle.Binding binding) |
Set<AppLifeCycle.Binding> |
getBindings()
Get all
Node bound objects. |
Set<AppLifeCycle.Binding> |
getBindings(Node node)
Get all objects bound to a specific
Node |
Set<AppLifeCycle.Binding> |
getBindings(String nodeName)
Get all objects bound to a specific
Node |
void |
removeBinding(AppLifeCycle.Binding binding) |
void |
runBindings(Node node,
App app,
DeploymentManager deploymentManager) |
addEdge, addEdge, addNode, findEdges, findEdgesFrom, getEdges, getNodeByName, getNodes, getPath, getPath, insertNode, insertNode, removeEdge, removeEdge, removeNode, setEdges, setNodes
public static final String UNDEPLOYED
public static final String DEPLOYING
public static final String DEPLOYED
public static final String STARTING
public static final String STARTED
public static final String STOPPING
public static final String UNDEPLOYING
public void addBinding(AppLifeCycle.Binding binding)
public void removeBinding(AppLifeCycle.Binding binding)
public Set<AppLifeCycle.Binding> getBindings()
Node
bound objects.public Set<AppLifeCycle.Binding> getBindings(Node node)
Node
public Set<AppLifeCycle.Binding> getBindings(String nodeName)
Node
public void runBindings(Node node, App app, DeploymentManager deploymentManager) throws Throwable
Throwable
Copyright © 1995-2015 Webtide. All Rights Reserved.