org.eclipse.jetty.deploy
类 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 the DeploymentManager. Setups a the default Graph, and manages the bindings to the life cycle via the AppLifeCycle.Binding annotation.


嵌套类摘要
static interface AppLifeCycle.Binding
           
 
字段摘要
static String DEPLOYED
           
static String DEPLOYING
           
static String STARTED
           
static String STARTING
           
static String STOPPING
           
static String UNDEPLOYED
           
static String UNDEPLOYING
           
 
构造方法摘要
AppLifeCycle()
           
 
方法摘要
 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)
           
 
从类 org.eclipse.jetty.deploy.graph.Graph 继承的方法
addEdge, addEdge, addNode, findEdges, findEdgesFrom, getEdges, getNodeByName, getNodes, getPath, getPath, insertNode, insertNode, removeEdge, removeEdge, removeNode, setEdges, setNodes
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

UNDEPLOYED

public static final String UNDEPLOYED
另请参见:
常量字段值

DEPLOYING

public static final String DEPLOYING
另请参见:
常量字段值

DEPLOYED

public static final String DEPLOYED
另请参见:
常量字段值

STARTING

public static final String STARTING
另请参见:
常量字段值

STARTED

public static final String STARTED
另请参见:
常量字段值

STOPPING

public static final String STOPPING
另请参见:
常量字段值

UNDEPLOYING

public static final String UNDEPLOYING
另请参见:
常量字段值
构造方法详细信息

AppLifeCycle

public AppLifeCycle()
方法详细信息

addBinding

public void addBinding(AppLifeCycle.Binding binding)

removeBinding

public void removeBinding(AppLifeCycle.Binding binding)

getBindings

public Set<AppLifeCycle.Binding> getBindings()
Get all Node bound objects.

返回:
Set of Object(s) for all lifecycle bindings. never null.

getBindings

public Set<AppLifeCycle.Binding> getBindings(Node node)
Get all objects bound to a specific Node

返回:
Set of Object(s) for specific lifecycle bindings. never null.

getBindings

public Set<AppLifeCycle.Binding> getBindings(String nodeName)
Get all objects bound to a specific Node

返回:
Set of Object(s) for specific lifecycle bindings. never null.

runBindings

public void runBindings(Node node,
                        App app,
                        DeploymentManager deploymentManager)
                 throws Throwable
抛出:
Throwable


Copyright © 2013. All Rights Reserved.