|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.SoftwarePackageEditor.TWGSwPackage
Class to serve as a generic representation of a custom package
Field Summary | |
---|---|
protected FileSource |
_fileSource
Deprecated. |
static int |
NO_REBOOT
Deprecated. |
static int |
REBOOT
Deprecated. |
static int |
RESTART
Deprecated. |
static int |
WIN9X_PLATFORM
Deprecated. |
static int |
WINNT_PLATFORM
Deprecated. |
Constructor Summary | |
---|---|
TWGSwPackage()
Deprecated. Constructs a empty software package |
|
TWGSwPackage(FileSource fs)
Deprecated. Constructs an empty package thats file come from the given file source |
Method Summary | |
---|---|
void |
addFile(java.lang.String source,
java.lang.String dest)
Deprecated. Adds a file to the package. |
void |
addFiles(java.lang.String[] source,
java.lang.String[] dest)
Deprecated. Adds a list of files to the package |
boolean |
addOSAsTarget(int os)
Deprecated. Adds the OS as a target |
PkgFileEntry[] |
getFiles()
Deprecated. Returns an array of the file entries in this package |
FileSource |
getFileSource()
Deprecated. Get file source. |
int |
getMinimumDiskSpace()
Deprecated. Get minimum required disk space |
int |
getMinimumMemory()
Deprecated. Get the minimum memory needed for this package |
java.lang.String |
getName()
Deprecated. Get the name of the package for display |
int |
getOSRebootOption(int os)
Deprecated. Gets the reboot option for the given os |
java.lang.String |
getOSRoot(int os)
Deprecated. Gets the root path for the specified os |
int |
getOSTargets()
Deprecated. Gets the bitmask of the target operating systems |
java.lang.String |
getPostExecutable(int os)
Deprecated. Gets the executable to run after installing the package |
java.lang.String |
getPreExecutable(int os)
Deprecated. Gets the executable to run before installing the package |
protected TWGPackageDefinition |
getUnderlyingDefinition()
Deprecated. |
boolean |
isPreExecutableOnTarget(int os)
Deprecated. Is the pre executable supposed to be on the source system |
boolean |
isStreamingForced()
Deprecated. Get whether or not we force streaming |
boolean |
isWebRequestable()
Deprecated. Is this package web requestable?? |
boolean |
removeOSAsTarget(int os)
Deprecated. Removes an os as a target for this package |
boolean |
setFileSource(FileSource fs)
Deprecated. Set file source. |
void |
setForcedStreaming(boolean stream)
Deprecated. Set if we should force streaming on this package |
void |
setMinimumDiskSpace(int size)
Deprecated. Set the minimum disk space required. |
void |
setMinimumMemory(int mem)
Deprecated. Set minimum memory requirement |
void |
setName(java.lang.String name)
Deprecated. Sets the name of the package for display on the console |
boolean |
setOSRebootOption(int rbOpt,
int os)
Deprecated. Sets the reboot option for the given OS |
boolean |
setOSRoot(java.lang.String rootPath,
int os)
Deprecated. Sets the root path for files on the given OS |
boolean |
setPostExecutable(java.lang.String ex,
int os)
Deprecated. Sets the executable to run after installing the package |
boolean |
setPreExecutable(java.lang.String ex,
boolean onTarget,
int os)
Deprecated. Sets the executable to run before installing the package |
void |
setWebRequestable(boolean requestable)
Deprecated. Sets if the package is web requestable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WIN9X_PLATFORM
public static final int WINNT_PLATFORM
public static final int NO_REBOOT
public static final int REBOOT
public static final int RESTART
protected FileSource _fileSource
Constructor Detail |
public TWGSwPackage()
public TWGSwPackage(FileSource fs)
fs
- The file source to get the packages files from.Method Detail |
public FileSource getFileSource()
public boolean setFileSource(FileSource fs)
fs
- The source of the files to be put in this package
public void addFile(java.lang.String source, java.lang.String dest) throws java.io.IOException
source
- The source files path. Should be absolute.dest
- The path of this file on the target file system.
Should be a relative path (relative to the diectore specified as the OS Root)
java.io.IOException
- thrown if the file source is inaccessible or has not been setpublic void addFiles(java.lang.String[] source, java.lang.String[] dest) throws java.io.IOException, java.lang.IllegalArgumentException
source
- the source paths of the files to be added. This should be an absolute path.dest
- The paths the files should be placed in on the target system. This should be a path relative to the OS root.
java.io.IOException
- thrown if the file source is inaccessible or has not been set
java.lang.IllegalArgumentException
- thrown if the arrays are of different sizespublic PkgFileEntry[] getFiles()
public void setName(java.lang.String name)
name
- the name of the packagepublic java.lang.String getName()
public void setWebRequestable(boolean requestable)
public boolean isWebRequestable()
public void setForcedStreaming(boolean stream)
public boolean isStreamingForced()
public void setMinimumMemory(int mem)
mem
- the minimum memory in megabytespublic int getMinimumMemory()
public void setMinimumDiskSpace(int size)
size
- The minimum required free disk space in megabytes.public int getMinimumDiskSpace()
public boolean addOSAsTarget(int os)
os
- the OS id
public boolean removeOSAsTarget(int os)
os
- the OS id
public int getOSTargets()
public boolean setOSRoot(java.lang.String rootPath, int os)
rootPath
- the directory to place all files under on this OSos
- the ID of this OS
public java.lang.String getOSRoot(int os)
os
- the os to get the root target for
public boolean setOSRebootOption(int rbOpt, int os)
rbOpt
- reboot optionos
- the OS id
public int getOSRebootOption(int os)
os
- the os to get the reboot option for
public boolean setPreExecutable(java.lang.String ex, boolean onTarget, int os)
ex
- the name of the executable to runonTarget
- does this file exist on the target systemos
- the id of the target os
public java.lang.String getPreExecutable(int os)
os
- the id of the os to get this for
public boolean isPreExecutableOnTarget(int os)
os
- the os to check this for
public boolean setPostExecutable(java.lang.String ex, int os)
ex
- the name of the executable to runos
- the id of the target os
public java.lang.String getPostExecutable(int os)
os
- the id of the os to get this for
protected TWGPackageDefinition getUnderlyingDefinition()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |