public class SuiteInstaller extends java.lang.Object
|Modifier and Type||Method and Description|
Cancel the installation.
Begins installation of the suite.
public void addInstallationListener(SuiteInstallListener listener)
SuiteInstallListenerto this suite installer. The installed listener implements the
SuiteInstallListenerinterface. There is no limitation to add
listener- the installation progress listener to be added
public void removeInstallationListener(SuiteInstallListener listener)
SuiteInstallListenerfrom this suite installer.
listener- the installation progress listener to be removed
public SuiteManagementTracker start()
SuiteInstallListener must be assigned and ready
in order to handle callback requests.
This method returns immediately an instance of
the caller can observe the progress of the installation via the
SuiteInstallListener added. Please not that "immediately"
not necessarily means "fast". Depending on the provisioning
mechanism used in the implementation of MEEP 8, it may be necessary
to download the whole jar data first in order to inspect the manifest
of the application suite in order to find out whether this is a new
installation or an update of an existing application suite. Depending
on the network connection this may take some time.
In case the previous attempt to install this suite (initiated by a
previous call of the
start() method) has not been finished
at the time the new call takes place, the call is queued and the new
attempt to install (in case the first one failed) or the re-installation
(in case the first call was successful), respectively, starts as soon
as the first installation attempt or installation has been finished.
A new instance of
SuiteManagementTracker will be created for
every call to this method and assigned to the
Suite to be installed
as soon as the installation has been completed successfully in case of a
Suite. In case of an update of an existing
SuiteManagementTracker instance is assigned to the
Suite object from the beginning.
public void cancel()
If installation is not in progress this method has no effect.
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.