|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.system.plugin.PluginInstallerGBean
public class PluginInstallerGBean
A GBean that knows how to download configurations from a Maven repository.
Field Summary | |
---|---|
static GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
---|---|
PluginInstallerGBean(ConfigurationManager configManager,
WritableListableRepository repository,
ConfigurationStore configStore,
ServerInfo serverInfo,
ThreadPool threadPool,
PluginAttributeStore store)
|
Method Summary | |
---|---|
DownloadResults |
checkOnInstall(Object key)
Gets the current progress of a download operation. |
static GBeanInfo |
getGBeanInfo()
|
Map |
getInstalledPlugins()
Lists the plugins installed in the local Geronimo server, by name and ID. |
PluginMetadata |
getPluginMetadata(Artifact moduleId)
Gets a CofigurationMetadata for a configuration installed in the local server. |
void |
install(File carFile,
String username,
String password,
DownloadPoller poller)
Installs from a pre-downloaded CAR file |
DownloadResults |
install(PluginList pluginsToInstall,
String username,
String password)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
void |
install(PluginList pluginsToInstall,
String username,
String password,
DownloadPoller poller)
Installs a configuration from a remote repository into the local Geronimo server, including all its dependencies. |
PluginList |
listPlugins(URL mavenRepository,
String username,
String password)
Lists the plugins available for download in a particular Geronimo repository. |
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 pluginsToInstall,
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public PluginInstallerGBean(ConfigurationManager configManager, WritableListableRepository repository, ConfigurationStore configStore, ServerInfo serverInfo, ThreadPool threadPool, PluginAttributeStore store)
Method Detail |
---|
public Map getInstalledPlugins()
getInstalledPlugins
in interface PluginInstaller
public PluginMetadata getPluginMetadata(Artifact moduleId)
getPluginMetadata
in interface PluginInstaller
moduleId
- 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)
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 PluginList listPlugins(URL mavenRepository, String username, String password) throws IOException, FailedLoginException
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.
IOException
FailedLoginException
public DownloadResults install(PluginList pluginsToInstall, String username, String password)
install
in interface PluginInstaller
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.pluginsToInstall
- The list of configurations to installpublic void install(PluginList pluginsToInstall, String username, String password, DownloadPoller poller)
install
in interface PluginInstaller
pluginsToInstall
- 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 pluginsToInstall, String username, String password)
startInstall
in interface PluginInstaller
pluginsToInstall
- 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)
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)
checkOnInstall
in interface PluginInstaller
key
- Identifies the operation to check onpublic void install(File carFile, String username, String password, DownloadPoller poller)
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |