public class PluginEngineContext
extends java.lang.Object
构造器和说明 |
---|
PluginEngineContext() |
限定符和类型 | 方法和说明 |
---|---|
static void |
backupPluginsTo(java.io.File backupFolder) |
static long |
calculateAllPluginsSize() |
static boolean |
copyLicenseFile(PluginMarker lowerMarker,
PluginMarker marker)
复制license文件
|
static void |
copyPluginConfigFromLastHome() |
static void |
copyPluginConfigToEnv()
将插件证书配置信息拷贝到Env中,方便远程时加载
|
static void |
deleteDependenceFile(java.lang.String location)
删除依赖文件
|
static boolean |
deleteRecursive(java.io.File file)
递归删除
如果文件暂时不能删,则标记deleteOnExit,并返回false,否则返回true
|
static java.util.List<PluginFolder> |
getAllPluginFolders()
获取所有已经安装好的插件
|
static java.util.List<java.net.URL> |
getDebugClassPaths() |
static java.io.File |
getDefaultInstallationZip(PluginMarker marker)
从插件文件夹中查找安装包
|
static java.lang.String |
getDependenceFileDownloadPath(java.lang.String key)
获取依赖文件下载目录
|
static java.lang.String |
getInstallationDownloadPath(PluginMarker marker)
获取插件默认下载目录
|
static java.io.InputStream |
getLicenseConfigToRead()
从环境中读取整体证书信息
|
static java.io.InputStream |
getLicenseFile(PluginMarker marker)
从当前环境中获取lic文件
|
static PluginFolder |
getPluginFolder(PluginMarker marker) |
static java.io.File |
getPluginHome(PluginMarker marker)
获取根目录下的文件
|
static void |
installDependenceFile(java.lang.String filePath,
java.lang.String location)
安装依赖文件
|
static void |
installPlugin(PluginMarker marker,
java.io.File unzipFolder)
将插件文件移动到环境中
|
static boolean |
isDebug() |
static boolean |
isDeleted(java.io.File pluginHome)
判断一个标准的插件目录是否已经被删除
|
static boolean |
isLocal()
判断是否是本地环境
|
static boolean |
isPackage() |
static boolean |
isRemote() |
static void |
pluginUpdated(PluginMarker lowerMarker) |
static void |
restorePluginsFrom(java.io.File backupFolder) |
static void |
setLicenseFile(PluginMarker marker,
java.io.InputStream licIn) |
static void |
uninstallPlugin(PluginMarker marker) |
static java.io.File |
unzipInstallationPackage(PluginMarker marker,
java.io.File zipFile)
将插件的安装文件解压到指定位置
|
static void |
writeLicenseConfig(java.util.Map<java.lang.String,java.lang.String> trialSchedule) |
public static java.util.List<PluginFolder> getAllPluginFolders()
public static boolean isLocal()
public static boolean isRemote()
public static boolean isPackage()
public static java.io.File getDefaultInstallationZip(PluginMarker marker)
public static java.lang.String getInstallationDownloadPath(PluginMarker marker)
public static boolean deleteRecursive(java.io.File file)
public static boolean isDeleted(java.io.File pluginHome)
public static java.lang.String getDependenceFileDownloadPath(java.lang.String key)
public static void installDependenceFile(java.lang.String filePath, java.lang.String location) throws java.lang.Exception
java.lang.Exception
public static void deleteDependenceFile(java.lang.String location)
public static java.io.File unzipInstallationPackage(PluginMarker marker, java.io.File zipFile)
public static void installPlugin(PluginMarker marker, java.io.File unzipFolder)
public static PluginFolder getPluginFolder(PluginMarker marker)
public static void uninstallPlugin(PluginMarker marker)
public static void pluginUpdated(PluginMarker lowerMarker)
public static java.io.InputStream getLicenseFile(PluginMarker marker)
public static void setLicenseFile(PluginMarker marker, java.io.InputStream licIn) throws PluginException
PluginException
public static boolean copyLicenseFile(PluginMarker lowerMarker, PluginMarker marker)
public static java.io.InputStream getLicenseConfigToRead()
public static void writeLicenseConfig(java.util.Map<java.lang.String,java.lang.String> trialSchedule)
public static void copyPluginConfigToEnv()
public static void copyPluginConfigFromLastHome()
public static boolean isDebug()
public static java.util.List<java.net.URL> getDebugClassPaths()
public static void backupPluginsTo(java.io.File backupFolder)
public static void restorePluginsFrom(java.io.File backupFolder)
public static long calculateAllPluginsSize()
public static java.io.File getPluginHome(PluginMarker marker)