|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.opensymphony.xwork2.ActionSupport gboat2.admin.osgi.action.BundlesAction
public class BundlesAction
管理 Bundle 的 Action
字段摘要 | |
---|---|
static String |
BACKUP_BUNDLES_LOCATION
bundle备份目录 |
static String |
BUNDLE_LOCATION
bundle存放目录 |
static String |
BUSINESS_LEVEL
业务 Bundle 的级别 |
static String |
CLASS_LOCATION
class 文件存放目录 |
static String |
FIVE_PATH
|
static String |
FOUR_PATH
|
static String |
THREE_PATH
|
static String |
TWO_PATH
|
static String |
WEB_APP_ROOT
获得 webapp 的根目录 |
从类 com.opensymphony.xwork2.ActionSupport 继承的字段 |
---|
LOG |
从接口 com.opensymphony.xwork2.Action 继承的字段 |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
构造方法摘要 | |
---|---|
BundlesAction()
|
方法摘要 | |
---|---|
String |
displayProperty(Object obj)
|
org.osgi.framework.Bundle |
getBundle()
通过 Bundle 的 ID 获取对应的 Bundle 实例 |
String |
getBundleFlag()
|
String |
getBundlePath()
|
Collection<org.osgi.framework.Bundle> |
getBundles()
根据条件查询 bundle:全部,系统,业务 |
String |
getBundleState(org.osgi.framework.Bundle bundle)
获取 Bundle 的状态字符串 |
String |
getCurrentLevel()
|
String |
getFailureString()
|
ArrayList<String> |
getHeaderKeys()
|
String |
getId()
|
String |
getLevel()
|
String |
getMessage()
|
Object |
getModules()
获取指定 Bundle 下的所有 module |
String |
getNoData()
|
Object |
getOperations()
获取指定 Bundle 下的所有 operation |
String |
getOutput()
|
List<com.opensymphony.xwork2.config.entities.PackageConfig> |
getPackages()
获取指定 Bundle 下 Struts.xml 配置文件中的的所有 package |
javax.servlet.http.HttpServletRequest |
getRequest()
|
String |
index()
|
String |
install()
|
boolean |
isAllowedAction(org.osgi.framework.Bundle bundle,
String val)
判断 Bundle 是否可以执行指定的操作 |
boolean |
isFailure()
|
boolean |
isStrutsEnabled(org.osgi.framework.Bundle bundle)
检查 Bundle 是否为 Struts Bundle |
String |
refresh()
通过命令来实现更新操作,直接点击 bundle 进行刷新操作 |
String |
refreshWithPara(org.osgi.framework.Bundle bundle)
通过命令来实现更新操作 |
void |
setBundleAccessor(org.apache.struts2.osgi.BundleAccessor bundleAccessor)
|
void |
setBundleFlag(String bundleFlag)
|
void |
setBundlePath(String bundlePath)
|
void |
setConfiguration(com.opensymphony.xwork2.config.Configuration configuration)
|
void |
setCurrentLevel(String currentLevel)
|
void |
setFailure(boolean failure)
|
void |
setFailureString(String failureString)
|
void |
setId(String id)
|
void |
setLevel(String level)
|
void |
setMessage(String message)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
String |
start()
启动 Bundle |
String |
stop()
停止 Bundle |
String |
update()
更新 Bundle 的状态 |
String |
upload()
添加或者更新bundle前,上传 Bundle 的 jar 包 |
String |
view()
|
从类 com.opensymphony.xwork2.ActionSupport 继承的方法 |
---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate |
从类 java.lang.Object 继承的方法 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final String WEB_APP_ROOT
public static final String CLASS_LOCATION
public static final String BUNDLE_LOCATION
public static final String BACKUP_BUNDLES_LOCATION
public static final String BUSINESS_LEVEL
public static final String FIVE_PATH
public static final String FOUR_PATH
public static final String THREE_PATH
public static final String TWO_PATH
构造方法详细信息 |
---|
public BundlesAction()
方法详细信息 |
---|
public void setConfiguration(com.opensymphony.xwork2.config.Configuration configuration)
public void setBundleAccessor(org.apache.struts2.osgi.BundleAccessor bundleAccessor)
public void setServletContext(javax.servlet.ServletContext servletContext)
org.apache.struts2.util.ServletContextAware
中的 setServletContext
public String getFailureString()
public void setFailureString(String failureString)
public boolean isFailure()
public void setFailure(boolean failure)
public String getCurrentLevel()
public void setCurrentLevel(String currentLevel)
public String getLevel()
public void setLevel(String level)
public String getMessage()
public void setMessage(String message)
public javax.servlet.http.HttpServletRequest getRequest()
public void setRequest(javax.servlet.http.HttpServletRequest request)
public String getBundlePath()
public void setBundlePath(String bundlePath)
public String getOutput()
public String getBundleFlag()
public void setBundleFlag(String bundleFlag)
public String getId()
public void setId(String id)
public String index()
public String view()
public String install()
public String start() throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
- 启动失败时抛出此异常public String stop() throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
- 停止 Bundle 发生异常时,抛出此异常public String refresh() throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public String refreshWithPara(org.osgi.framework.Bundle bundle) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public String update() throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public boolean isStrutsEnabled(org.osgi.framework.Bundle bundle)
bundle
-
public org.osgi.framework.Bundle getBundle()
public List<com.opensymphony.xwork2.config.entities.PackageConfig> getPackages()
public String getNoData()
public Object getModules()
NoSuchMethodException
SecurityException
public Object getOperations()
public ArrayList<String> getHeaderKeys()
public Collection<org.osgi.framework.Bundle> getBundles()
public String upload()
public String displayProperty(Object obj)
public String getBundleState(org.osgi.framework.Bundle bundle)
bundle
-
public boolean isAllowedAction(org.osgi.framework.Bundle bundle, String val)
bundle
- 要进行操作的 Bundleval
- 要进行操作的命令,如:start、stop、update 等
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |