|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.update.UpdateInstallerImpl
public class UpdateInstallerImpl
Field Summary | |
---|---|
protected static java.lang.String |
ACTIONS_LEGACY
|
protected static java.lang.String |
ACTIONS_UTF8
|
protected static AEMonitor |
class_mon
|
protected static java.lang.String |
UPDATE_DIR
|
Constructor Summary | |
---|---|
protected |
UpdateInstallerImpl(UpdateManagerImpl _manager)
|
Method Summary | |
---|---|
void |
addChangeRightsAction(java.lang.String rights,
java.lang.String to_file)
Add an installation "change rights" action to change a file rights |
void |
addMoveAction(java.lang.String from_file_or_resource,
java.lang.String to_file)
Add an installation "move" action to move either an absolute file or resource |
void |
addRemoveAction(java.lang.String file)
Adds an action to remove either a directory (recursively delete) or file |
void |
addResource(java.lang.String resource_name,
java.io.InputStream is)
Add a resource to the installation. |
void |
addResource(java.lang.String resource_name,
java.io.InputStream is,
boolean closeInputStream)
Add a resource to the installation. |
protected void |
appendAction(java.lang.String data)
|
protected static void |
checkForFailedInstalls(UpdateManagerImpl manager)
|
void |
destroy()
|
java.lang.String |
getInstallDir()
Returns the absolute path of the Azureus install dir (i.e. |
java.lang.String |
getUserDir()
Returns the absolute path of the user dir (i.e. |
void |
installNow(UpdateInstallerListener listener)
Runs the action now, not as part of a shutdown/restart of Vuze |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String UPDATE_DIR
protected static final java.lang.String ACTIONS_LEGACY
protected static final java.lang.String ACTIONS_UTF8
protected static AEMonitor class_mon
Constructor Detail |
---|
protected UpdateInstallerImpl(UpdateManagerImpl _manager) throws UpdateException
UpdateException
Method Detail |
---|
protected static void checkForFailedInstalls(UpdateManagerImpl manager)
public void addResource(java.lang.String resource_name, java.io.InputStream is) throws UpdateException
UpdateInstaller
addResource
in interface UpdateInstaller
resource_name
- non-qualified name for the resource - i.e. not an absolute file
name but rather something local like "fred". This can then be used
later in actions
UpdateException
public void addResource(java.lang.String resource_name, java.io.InputStream is, boolean closeInputStream) throws UpdateException
UpdateInstaller
addResource
in interface UpdateInstaller
resource_name
- non-qualified name for the resource - i.e. not an absolute file
name but rather something local like "fred". This can then be used
later in actionscloseInputStream
- if false, the InputStream is won't be closed
UpdateException
public java.lang.String getInstallDir()
UpdateInstaller
getInstallDir
in interface UpdateInstaller
public java.lang.String getUserDir()
UpdateInstaller
getUserDir
in interface UpdateInstaller
public void addMoveAction(java.lang.String from_file_or_resource, java.lang.String to_file) throws UpdateException
UpdateInstaller
addMoveAction
in interface UpdateInstaller
to_file
- absolute
UpdateException
public void addChangeRightsAction(java.lang.String rights, java.lang.String to_file) throws UpdateException
UpdateInstaller
addChangeRightsAction
in interface UpdateInstaller
rights
- the rights, for example "776"to_file
- absolute
UpdateException
public void addRemoveAction(java.lang.String file) throws UpdateException
UpdateInstaller
addRemoveAction
in interface UpdateInstaller
UpdateException
protected void appendAction(java.lang.String data) throws UpdateException
UpdateException
public void installNow(UpdateInstallerListener listener) throws UpdateException
UpdateInstaller
installNow
in interface UpdateInstaller
UpdateException
public void destroy()
destroy
in interface UpdateInstaller
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |