|
||||||||||
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 |
---|
kernel |
Constructor Summary | |
---|---|
RemoteDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
|
Method Summary | |
---|---|
DownloadResults |
checkOnInstall(Object key)
Gets the current progress of a download operation. |
protected DistributeCommand |
createDistributeCommand(Target[] targetList,
File moduleArchive,
File deploymentPlan)
|
protected DistributeCommand |
createDistributeCommand(Target[] targetList,
ModuleType moduleType,
InputStream moduleArchive,
InputStream deploymentPlan)
|
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. |
PluginMetadata |
getPluginMetadata(Artifact configId)
Gets a CofigurationMetadata for a configuration installed in the local server. |
URL[] |
getRepositories()
|
void |
init(JMXConnector jmxConnector,
String hostname)
|
DownloadResults |
install(PluginList installList,
String username,
String password)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
void |
install(PluginList configsToInstall,
String username,
String password,
DownloadPoller poller)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
boolean |
isSameMachine()
|
PluginList |
listPlugins(URL mavenRepository,
String username,
String password)
Lists the plugins available for download in a particular Geronimo repository. |
void |
release()
|
Object |
startInstall(File carFile,
String username,
String password)
Installs a configuration downloaded from a remote repository into the local Geronimo server, including all its dependencies. |
Object |
startInstall(PluginList configsToInstall,
String username,
String password)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
void |
updatePluginMetadata(PluginMetadata metadata)
Saves a ConfigurationMetadata for a particular plugin, if the server is able to record it. |
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, 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 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 PluginList 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 DownloadResults install(PluginList installList, String username, String password)
PluginInstaller
install
in interface PluginInstaller
installList
- 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(PluginList configsToInstall, 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(PluginList configsToInstall, 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 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 Map getInstalledPlugins()
PluginInstaller
getInstalledPlugins
in interface PluginInstaller
public PluginMetadata 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(PluginMetadata 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 static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |