Functions include creation and installation of packages.
|
Public Member Functions |
| | DirectorPackage () |
| | DirectorPackage (DBObject desc) throws DirectorException |
| | Init package object from a database entry.
|
| void | close () |
| | Close this package object.
|
| DBObject | todb () throws DirectorException |
| | Dump package description into a database entry of class directorApplication.
|
| DBObject | topkgdb () throws DirectorException |
| | Dump package description into a database entry of class directorApplicationPackage.
|
| void | setReleaseDir (String dir) |
| | Set release directory.
|
| void | setRelease (String release) throws DirectorException |
| | Set release number.
|
| void | setFreezeMode (int mode) |
| | Set freeze mode for next freeze().
|
| void | incrementRelease () |
| | increment the release number by one.
|
| void | getInfo (ZipInputStream archive) throws DirectorException |
| | Read application info from a package file.
|
| void | getInfo () throws DirectorException |
| | Read application info from .rel/meta/app_info.dat file this is mainly used when using "app_import" to import an application from another director environment.
|
| void | getInfo (BufferedReader info) throws DirectorException |
| | Read application info from an anonymous app_info.dat stream.
|
| String | getRelease () throws DirectorException |
| | return string representation of the application's release
|
| boolean | haveFreeze () throws DirectorException |
| | return true if there is an archive containing a freeze for the current release, false otherwise.
|
| void | writeInfo () throws DirectorException |
| | Dump application info into .rel/meta/app_info.dat.
|
| void | determineFilesInRelease (OutputStream fullInfo, OutputStream list, OutputStream deleteList, String baseListName) throws DirectorException |
| | Determine the paths of all the files that should be included in the current release.
|
| int | execScript (String nameAndArgs) |
| | Execute a package related script.
|
| int | execMetaScript (String name) throws DirectorException |
| | Execute a package related script, e.g.
|
| void | setReason (String reason) |
| | Set reason for next freeze().
|
| void | setUser (String user) |
| | Set freezing user for next freeze().
|
| synchronized void | freeze () throws DirectorException |
| | Freeze a specified application.
|
| void | unpackCpio (InputStream archive, String targetDir) throws DirectorException |
| void | install (InputStream packageStream) throws DirectorException |
| | Install a package.
|
Static Public Member Functions |
| static Vector | deleteTree (Vector tree) |
| | Recursively delete all files listed in a Vector.
|
| static void | scanRepository (RemoteJob job) throws DirectorException |
| | Scan a directory for director packages and send a list of found packages back to our caller.
|
| static void | main (String args[]) |
Static Public Attributes |
| static final int | BASELINE = 0 |
| | possible freeze modes set via setFreezeMode are BASELINE, UPDATE and PATCH.
|
| static final int | UPDATE = 1 |
| static final int | PATCH = 2 |
Protected Member Functions |
| void | finalize () |
| File | removeOnClose (File file) |
| | Add file to the list of files to be deleted during close().
|
| File | removeOnClose (String filename) |
| | Create file object for file with the specified name and add it to the list of files to be deleted during close().
|
| void | fromDesc (DBObject desc) throws DirectorException |
| | Set package variables from a database entry.
|
| String | relDir () throws DirectorException |
| String | metaDir () throws DirectorException |
| void | determineRelease (boolean next) throws DirectorException |
| OutputStream | packCpio (final OutputStream archive) throws DirectorException |
| void | setExecutable (String path) |
| void | deleteRecursively (String fname, int depth) |
| DirectorException | moveFiles (String source, String target, int depth) |
| | Move a directory tree located under 'source' to a directory 'target'.
|
| synchronized void | unpackUsingArchiver (final InputStream archive, String targetDir, String command, boolean packNmove, boolean verboseList) throws DirectorException |
| ZipEntry | extractMetaFiles (ZipEntry next, String prefix, ZipInputStream archive) throws IOException, DirectorException |
| void | cleanUpSub (FileListComparer comparer, String dir, String prefix) throws DirectorException |
| void | cleanUp (String dir, String prefix, BufferedReader fileList) throws DirectorException |
Protected Attributes |
| Process | packer = null |
| StoppableThread | packerThread = null |
| DirectorException | bgerror = null |
Package Attributes |
| String | releaseDir |
| int | update |
| String | release |
| int | releaseParts [] |
| String | instdir |
| String | owner |
| String | name |
| boolean | cleanAfterInstall = false |
| boolean | unpackAndMove = true |
| String | description |
| String | version |
| String | creator |
| String | maintainer |
| String | defined |
| String | installer |
| Vector | removeOnClose = new Vector() |
| Vector | provides = null |
| Vector | requires = null |
| Vector | implications = null |
| String | relDir = null |
| String | reason = null |
| String | user = null |
| String | platform = null |
Static Package Attributes |
| static final String | bootDir = "/etc/sfi/boot/" |
| static final String | appsDir = "/etc/sfi/apps/" |
| static final String | rootExceptions [] |
| static final String | indepthExceptions [] |