| java.lang.Object com.sun.jumpimpl.module.installer.JUMPInstallerTool
JUMPInstallerTool | public class JUMPInstallerTool (Code) | | This class is an installation tool for downloading,
installing, uninstalling, and listing content in the
content store application repository.
This class should be routinely modified with more
features as development continues.
The current supported commands are:
list, info, install, install_all, uninstall, uninstall_all
The commands install and uninstall will provide the user with an interactive
way to choose files to be installed or uninstalled. The command install_all
and uninstall_all will install or uninstall all content without interactive
with the user.
Usage:
-cp com.sun.jumpimpl.module.installer.JUMPInstallerTool -ProvisioningServerURL -command
is optional, but it should be known that contentstore.root
can be overridden here if desired.
For example, -Dcontentstore.root= can be specified
can currently be list, info, install, install_all, uninstall, and uninstall_all
-verbose: print debugging messages
Ex:
cvm -cp $JUMP_JARS com.sun.jumpimpl.module.installer.JUMPInstallerTool -command list
cvm -Dcontentstore.root=data2 -cp $JUMP_JARS com.sun.jumpimpl.module.installer.JUMPInstallerTool -command install
cvm -cp $JUMP_JARS com.sun.jumpimpl.module.installer.JUMPInstallerTool -command uninstall
cvm -cp $JUMP_JARS com.sun.jumpimpl.module.installer.JUMPInstallerTool -verbose -command install_all
cvm -cp $JUMP_JARS com.sun.jumpimpl.module.installer.JUMPInstallerTool -command uninstall_all
|
Inner Class :class DownloadTool | |
Method Summary | |
public void | doInfo() Print out information pertaining to each application in a list. | public JUMPContent[] | doInstall(String descriptorFileUrl) Install the content described by the specified content descriptor file.
The content will be automatically downloaded before being installed.
Parameters: descriptorFileUrl - A URL to a content desciptor file. | public JUMPContent[] | doInstall(String descriptorFileUrl) Install the content described by the specified content descriptor files.
The content will be automatically downloaded before being installed.
Parameters: descriptorFileUrl - A URL to a content desciptor file. | public JUMPContent[] | doInstall(String downloadNames, String downloadURIs) Install content given a list of names and URIs
to content descriptor files.
Parameters: downloadNames - The title of the content.The index of the array for this valuerelates to the same index in teharray for downloadURIs. Parameters: downloadURIs - The URIs to the content descriptorfiles.The index of the array for this valuerelates to the same index in teharray for downloadNames. | public JUMPContent[] | doInstall(String downloadName, String downloadURI) Install content given a name and a URI
to a content descriptor file. | public JUMPContent[] | doInstall(String provisioningServerURL, boolean userInteractive) Given a provisioning server URL, install content
Parameters: provisioningServerURL - The URL to a provisioning server Parameters: userInteractive - When true, the user chooses anapplication to install among a listof available content.When false, all available content isautomatically installed. | public void | doList() Print out a list of all installed content. | public void | doUninstall(JUMPAppModel model, int id) Uninstall content given the content type and
installed application id. | public void | doUninstall(JUMPApplication app) | public void | doUninstall(JUMPApplication apps) | public void | doUninstall(boolean userInteractive) | public static void | main(String[] args) The main method when used as a standalone tool.
Parameters: args - program args. |
Command | protected String Command(Code) | | The current command to be run
|
ContentURL | protected String ContentURL(Code) | | URL containing the content to be installed.
|
DescriptorURI | protected String DescriptorURI(Code) | | URI of the descriptor file of the content to be installed
|
Protocol | protected String Protocol(Code) | | The protocol of the content. The value should be either:
ota/midp or ota/oma
|
ProvisioningServer | protected String ProvisioningServer(Code) | | URL used for Provisioning Server location
|
Type | protected String Type(Code) | | The application type of an installed content
|
Value | protected String Value(Code) | | Sub-values for the current command to be run
|
Verbose | protected boolean Verbose(Code) | | Whether or not to print debug messages
|
JUMPInstallerTool | public JUMPInstallerTool(String[] args)(Code) | | Creates a new instance of JUMPInstallerTool
Parameters: args - arguments for the tool |
doInfo | public void doInfo()(Code) | | Print out information pertaining to each application in a list.
|
doInstall | public JUMPContent[] doInstall(String descriptorFileUrl)(Code) | | Install the content described by the specified content descriptor file.
The content will be automatically downloaded before being installed.
Parameters: descriptorFileUrl - A URL to a content desciptor file. the installed content |
doInstall | public JUMPContent[] doInstall(String descriptorFileUrl)(Code) | | Install the content described by the specified content descriptor files.
The content will be automatically downloaded before being installed.
Parameters: descriptorFileUrl - A URL to a content desciptor file. the installed content |
doInstall | public JUMPContent[] doInstall(String downloadNames, String downloadURIs)(Code) | | Install content given a list of names and URIs
to content descriptor files.
Parameters: downloadNames - The title of the content.The index of the array for this valuerelates to the same index in teharray for downloadURIs. Parameters: downloadURIs - The URIs to the content descriptorfiles.The index of the array for this valuerelates to the same index in teharray for downloadNames. the installed content |
doInstall | public JUMPContent[] doInstall(String downloadName, String downloadURI)(Code) | | Install content given a name and a URI
to a content descriptor file.
Parameters: downloadName - The name of the content Parameters: downloadURI - The URI to the content descriptor file the installed content |
doInstall | public JUMPContent[] doInstall(String provisioningServerURL, boolean userInteractive)(Code) | | Given a provisioning server URL, install content
Parameters: provisioningServerURL - The URL to a provisioning server Parameters: userInteractive - When true, the user chooses anapplication to install among a listof available content.When false, all available content isautomatically installed. the installed content |
doList | public void doList()(Code) | | Print out a list of all installed content.
|
doUninstall | public void doUninstall(JUMPAppModel model, int id)(Code) | | Uninstall content given the content type and
installed application id.
Parameters: model - the content type, i.e.,midlet, xlet, or main Parameters: id - the installed application id |
doUninstall | public void doUninstall(JUMPApplication app)(Code) | | Uninstall content
Parameters: app - the application to uninstall |
doUninstall | public void doUninstall(JUMPApplication apps)(Code) | | Uninstall content
Parameters: apps - the content to uninstall |
doUninstall | public void doUninstall(boolean userInteractive)(Code) | | Uninstall content
Parameters: userInteractive - if true, the user chooses an applicationamong a list of all installed contentto uninstall.if false, all installed content inuninstalled. |
main | public static void main(String[] args)(Code) | | The main method when used as a standalone tool.
Parameters: args - program args. See docs for details. |
|
|