|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager org.apache.geronimo.deployment.plugin.jmx.RemoteDeploymentManager
public class RemoteDeploymentManager
Connects to a Kernel in a remote VM (may or many not be on the same machine).
Field Summary | |
---|---|
static GBeanInfo |
GBEAN_INFO
|
static String |
GBEAN_REF_MODULE_CONFIGURERS
|
Fields inherited from class org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager |
---|
commandContext, kernel |
Constructor Summary | |
---|---|
RemoteDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
|
Method Summary | |
---|---|
File |
archive(String sourcePath,
String destPath,
Artifact artifact)
|
DownloadResults |
checkOnInstall(Object key)
Gets the current progress of a download operation. |
DownloadResults |
checkOnInstall(Object key,
boolean remove)
Gets the current progress of a download operation. |
Dependency[] |
checkPrerequisites(PluginType plugin)
Ensures that a plugin's prerequisites are installed |
protected DistributeCommand |
createDistributeCommand(Target[] targetList,
File moduleArchive,
File deploymentPlan)
|
protected DistributeCommand |
createDistributeCommand(Target[] targetList,
ModuleType moduleType,
InputStream moduleArchive,
InputStream deploymentPlan)
|
PluginListType |
createPluginListForRepositories(String repo)
|
protected RedeployCommand |
createRedeployCommand(TargetModuleID[] moduleIDList,
File moduleArchive,
File deploymentPlan)
|
protected RedeployCommand |
createRedeployCommand(TargetModuleID[] moduleIDList,
InputStream moduleArchive,
InputStream deploymentPlan)
|
static GBeanInfo |
getGBeanInfo()
|
Map |
getInstalledPlugins()
Lists the plugins installed in the local Geronimo server, by name and ID. |
JMXConnector |
getJMXConnector()
|
PluginType |
getPluginMetadata(Artifact configId)
Gets a CofigurationMetadata for a configuration installed in the local server. |
URL[] |
getRepositories()
|
void |
init(JMXConnector jmxConnector,
String hostname)
|
DownloadResults |
install(PluginListType configsToInstall,
String defaultRepository,
boolean restrictToDefaultRepository,
String username,
String password)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
void |
install(PluginListType configsToInstall,
String defaultRepository,
boolean restrictToDefaultRepository,
String username,
String password,
DownloadPoller poller)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
Artifact |
installLibrary(File libFile,
String groupId)
|
DownloadResults |
installPluginList(String targetRepositoryPath,
String relativeTargetServerPath,
PluginListType pluginList)
|
boolean |
isSameMachine()
|
PluginListType |
listPlugins(URL mavenRepository,
String username,
String password)
Lists the plugins available for download in a particular Geronimo repository. |
void |
mergeOverrides(String server,
AttributesType overrides)
|
void |
release()
|
Object |
startInstall(File carFile,
String defaultRepository,
boolean restrictToDefaultRepository,
String username,
String password)
Installs a configuration downloaded from a remote repository into the local Geronimo server, including all its dependencies. |
Object |
startInstall(PluginListType configsToInstall,
String defaultRepository,
boolean restrictToDefaultRepository,
String username,
String password)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
void |
updatePluginMetadata(PluginType metadata)
Saves a ConfigurationMetadata for a particular plugin, if the server is able to record it. |
void |
validatePlugin(PluginType plugin)
Ensures that a plugin artifact is installable. |
Methods inherited from class org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager |
---|
createConfiguration, distribute, distribute, distribute, getAvailableModules, getCurrentLocale, getDConfigBeanVersion, getDefaultLocale, getNonRunningModules, getRunningModules, getSupportedLocales, getTargets, initialize, isDConfigBeanVersionSupported, isLocaleSupported, isRedeploySupported, redeploy, redeploy, setAuthentication, setDConfigBeanVersion, setInPlace, setLocale, setLogConfiguration, start, stop, undeploy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.enterprise.deploy.spi.DeploymentManager |
---|
createConfiguration, distribute, distribute, getAvailableModules, getCurrentLocale, getDConfigBeanVersion, getDefaultLocale, getNonRunningModules, getRunningModules, getSupportedLocales, getTargets, isDConfigBeanVersionSupported, isLocaleSupported, isRedeploySupported, redeploy, redeploy, setDConfigBeanVersion, setLocale, start, stop, undeploy |
Field Detail |
---|
public static final GBeanInfo GBEAN_INFO
public static final String GBEAN_REF_MODULE_CONFIGURERS
Constructor Detail |
---|
public RemoteDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
Method Detail |
---|
public void init(JMXConnector jmxConnector, String hostname) throws IOException
IOException
public JMXConnector getJMXConnector()
public boolean isSameMachine()
public void release()
release
in interface DeploymentManager
release
in class JMXDeploymentManager
protected DistributeCommand createDistributeCommand(Target[] targetList, File moduleArchive, File deploymentPlan)
createDistributeCommand
in class JMXDeploymentManager
protected DistributeCommand createDistributeCommand(Target[] targetList, ModuleType moduleType, InputStream moduleArchive, InputStream deploymentPlan)
createDistributeCommand
in class JMXDeploymentManager
protected RedeployCommand createRedeployCommand(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan)
createRedeployCommand
in class JMXDeploymentManager
protected RedeployCommand createRedeployCommand(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan)
createRedeployCommand
in class JMXDeploymentManager
public PluginListType listPlugins(URL mavenRepository, String username, String password) throws FailedLoginException, IOException
PluginInstaller
listPlugins
in interface PluginInstaller
mavenRepository
- The base URL to the maven repository. This must
contain the file geronimo-plugins.xmlusername
- Optional username, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.password
- Optional password, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.
FailedLoginException
IOException
public void validatePlugin(PluginType plugin) throws MissingDependencyException
PluginInstaller
validatePlugin
in interface PluginInstaller
plugin
- plugin artifact to check
MissingDependencyException
- if a dependency is not satisfiedpublic Dependency[] checkPrerequisites(PluginType plugin)
PluginInstaller
checkPrerequisites
in interface PluginInstaller
plugin
- plugin artifact to check
public DownloadResults install(PluginListType configsToInstall, String defaultRepository, boolean restrictToDefaultRepository, String username, String password)
PluginInstaller
install
in interface PluginInstaller
configsToInstall
- The list of configurations to installusername
- Optional username, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.password
- Optional password, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.public void install(PluginListType configsToInstall, String defaultRepository, boolean restrictToDefaultRepository, String username, String password, DownloadPoller poller)
PluginInstaller
install
in interface PluginInstaller
configsToInstall
- The list of configurations to installusername
- Optional username, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.password
- Optional password, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.poller
- Will be notified with status updates as the download proceedspublic Object startInstall(PluginListType configsToInstall, String defaultRepository, boolean restrictToDefaultRepository, String username, String password)
PluginInstaller
startInstall
in interface PluginInstaller
configsToInstall
- The list of configurations to installusername
- Optional username, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.password
- Optional password, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.
public Object startInstall(File carFile, String defaultRepository, boolean restrictToDefaultRepository, String username, String password)
PluginInstaller
startInstall
in interface PluginInstaller
carFile
- A CAR file downloaded from a remote repository. This is a packaged
configuration with included configuration information, but it may
still have external dependencies that need to be downloaded
separately. The metadata in the CAR file includes a repository URL
for these downloads, and the username and password arguments are
used in conjunction with that.username
- Optional username, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.password
- Optional password, if the maven repo uses HTTP Basic authentication.
Set this to null if no authentication is required.
public DownloadResults checkOnInstall(Object key)
PluginInstaller
checkOnInstall
in interface PluginInstaller
key
- Identifies the operation to check onpublic DownloadResults checkOnInstall(Object key, boolean remove)
PluginInstaller
checkOnInstall
in interface PluginInstaller
key
- Identifies the operation to check onremove
- If true and the download operation has finished, the DownloadResults
will be forgotten and the next call to this function will return null.
Otherwise, the DownloadResults will be retained until this function is
called with the remove parameter set to true. This parameter is
only used when the download operation has finished
(DownloadResults.isFinished() returns true).public PluginListType createPluginListForRepositories(String repo) throws NoSuchStoreException
createPluginListForRepositories
in interface PluginInstaller
NoSuchStoreException
public Map getInstalledPlugins()
PluginInstaller
getInstalledPlugins
in interface PluginInstaller
public PluginType getPluginMetadata(Artifact configId)
PluginInstaller
getPluginMetadata
in interface PluginInstaller
configId
- Identifies the configuration. This must match a
configuration currently installed in the local server.
The configId must be fully resolved (isResolved() == true)public void updatePluginMetadata(PluginType metadata)
PluginInstaller
updatePluginMetadata
in interface PluginInstaller
metadata
- The data to save. The contained configId (which must
be fully resolved) identifies the configuration to save
this for.public URL[] getRepositories()
getRepositories
in interface GeronimoDeploymentManager
public Artifact installLibrary(File libFile, String groupId) throws IOException
installLibrary
in interface PluginInstaller
IOException
public DownloadResults installPluginList(String targetRepositoryPath, String relativeTargetServerPath, PluginListType pluginList) throws Exception
installPluginList
in interface PluginInstaller
Exception
public void mergeOverrides(String server, AttributesType overrides) throws InvalidGBeanException, IOException
mergeOverrides
in interface PluginInstaller
InvalidGBeanException
IOException
public File archive(String sourcePath, String destPath, Artifact artifact) throws org.codehaus.plexus.archiver.ArchiverException, IOException
archive
in interface ServerArchiver
org.codehaus.plexus.archiver.ArchiverException
IOException
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |