Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | Private Attributes | Static Private Attributes

org::apache::uima::pear::tools::InstallationController Class Reference

Collaboration diagram for org::apache::uima::pear::tools::InstallationController:
Collaboration graph
[legend]

List of all members.

Classes

interface  InstallationMonitor
interface  PackageSelector
class  TestStatus

Public Member Functions

void addMsgListener (MessageRouter.StdChannelListener listener)
String buildComponentClassPath () throws IOException
String buildComponentPath ()
Properties buildTableOfEnvVars ()
String getInstallationMsg ()
String getVerificationMsg ()
 InstallationController (String componentId, String rootDirPath, boolean installInRootDir)
 InstallationController (String componentId, File localPearFile, File rootDir, boolean installInRootDir, MessageRouter.StdChannelListener msgListener, boolean cleanInstallDir)
 InstallationController (String componentId, File localPearFile, File rootDir)
 InstallationController (String componentId, File localPearFile, File rootDir, boolean installInRootDir, boolean cleanInstallDir)
 InstallationController (String componentId, String rootDirPath)
 InstallationController (String componentId, String rootDirPath, boolean installInRootDir, MessageRouter.StdChannelListener msgListener)
 InstallationController (String componentId, File localPearFile, File rootDir, boolean installInRootDir)
 InstallationController (String componentId, File localPearFile, File rootDir, boolean installInRootDir, MessageRouter.StdChannelListener msgListener)
synchronized InstallationDescriptor installComponent ()
synchronized InstallationDescriptor installComponentDescriptors ()
void removeMsgListener (MessageRouter.StdChannelListener listener)
synchronized void saveInstallationDescriptorFile () throws IOException
synchronized void setInstallationMonitor (InstallationMonitor monitor)
synchronized void setPackageSelector (PackageSelector selector)
synchronized void setUimaHomePath (String uimaHomePath)
void terminate ()
synchronized boolean verifyComponent ()

Static Public Member Functions

static String[] buildArrayOfNetworkParams (InstallationDescriptor insdObject)
static String buildComponentClassPath (String compRootDirPath, InstallationDescriptor insdObject, boolean addLibDir) throws IOException
static String buildComponentPath (String compRootDirPath, InstallationDescriptor insdObject)
static String buildListOfEnvVars (InstallationDescriptor insdObject)
static String buildListOfNetworkParams (InstallationDescriptor insdObject)
static Properties buildTableOfEnvVars (InstallationDescriptor insdObject)
static String buildUIMAClassPath (String uimaHomeEnv)
static boolean deleteInstalledFiles (String componentId, File parentDir, boolean includeDelegates) throws IOException
static String extractFilesFromPEARFile (String pearFileLocation, String fileExt, File targetDir, boolean cleanTarget) throws IOException
static String extractPEARFile (String pearFileLocation, File installationDir, boolean cleanTarget) throws IOException
static String getHostIpAddress ()
static void main (String[] args)
static synchronized void setLocalMode (boolean inLocalMode)
static synchronized TestStatus verifyComponentInstallation (PackageBrowser pkgBrowser)

Static Public Attributes

static final String CLASSPATH_VAR = "classpath"
static final String INSTALLATION_COMPLETED = "installation_completed"
static final String INSTALLATION_FAILED = "installation_failed"
static final String INSTALLATION_IN_PROGRESS = "installation_in_progress"
static final String PACKAGE_BIN_DIR = "bin"
static final String PACKAGE_CONF_DIR = "conf"
static final String PACKAGE_CONFIG_FILE = "metadata/PEAR.properties"
static final String PACKAGE_DATA_DIR = "data"
static final String PACKAGE_DESC_DIR = "desc"
static final String PACKAGE_DOC_DIR = "doc"
static final String PACKAGE_LIB_DIR = "lib"
static final String PACKAGE_METADATA_DIR = "metadata"
static final String PACKAGE_RESOURCES_DIR = "resources"
static final String PACKAGE_SOURCES_DIR = "src"
static final String PEAR_DESC_FILE_POSTFIX = "_pear.xml"
static final String SET_ENV_FILE = "metadata/setenv.txt"
static final String VERIFICATION_CANCELLED = "verification_cancelled"
static final String VERIFICATION_COMPLETED = "verification_completed"
static final String VERIFICATION_FAILED = "verification_failed"
static final String VERIFICATION_IN_PROGRESS = "verification_in_progress"

Protected Member Functions

void finalize ()
synchronized void generatePackageConfigFile () throws IOException
synchronized void generateSetEnvFile () throws IOException
PrintWriter getErrMsgWriter ()
PrintWriter getOutMsgWriter ()
 InstallationController (String componentId, String rootDirPath, boolean installInRootDir, MessageRouter msgRouter, MessageRouter.StdChannelListener msgListener, boolean cleanInstallDir)
synchronized void installDelegateComponents ()
synchronized void installDelegateComponentsDescriptors ()
synchronized void setInstallationError (Exception error)
synchronized void setVerificationError (Exception error)

Static Protected Member Functions

static StringBuffer addListOfJarFiles (File libDir, StringBuffer listBuffer) throws IOException
static boolean addToSystemEnvTable (Properties sysEnvTable, String localKey, String localValue)
static String extractFilesFromPEARFile (String pearFileLocation, String fileExt, File targetDir, InstallationController controller, boolean cleanTarget) throws IOException
static String extractPEARFile (String pearFileLocation, File installationDir, InstallationController controller, boolean cleanTarget) throws IOException
static synchronized void generatePearSpecifier (String mainComponentRootPath, String mainComponentId) throws IOException, SAXException
static Hashtable< String,
InstallationDescriptor
getDelegateInstallationDescriptors (Hashtable< String, String > installationTable) throws IOException
static String getInstalledComponentRootPath (String componentId, PackageSelector pkgSelector)
static String getPEARFileLocation (String componentId, PackageSelector pkgSelector)

Static Protected Attributes

static final String INSTALL_IN_ROOT_OPT = "-root"
static final String INSTALLATION_TESTER_APP = "org.apache.uima.pear.tools.InstallationTester"
static final String JAR_FILE_EXT = ".jar"
static final String LOCAL_OPT = "-local"
static final String PATH_VAR = "path"
static final String UIMA_HOME_ENV = "UIMA_HOME"
static final String UIMA_LIB_DIR = "/lib"
static final String VINCI_LIB_DIR = "/lib/vinci"

Private Attributes

boolean _cleanInstallDir = true
MessageRouter.StdChannelListener _defaultMsgListener = null
String _hostIpAddress
InstallationDescriptor _insdObject
File _installationDir
String _installationDirPath
Hashtable< String,
InstallationDescriptor
_installationInsDs = new Hashtable<String, InstallationDescriptor>()
InstallationMonitor _installationMonitor = null
String _installationMsg
Hashtable< String, String > _installationTable = new Hashtable<String, String>()
String _mainComponentId
File _mainComponentRoot
String _mainComponentRootPath
String _mainPearFileLocation = null
MessageRouter _msgRouter = null
PackageSelector _packageSelector = null
String _uimaHomePath
String _verificationMsg

Static Private Attributes

static boolean __inLocalMode = false
static String __osName = null
static final String PEAR_MESSAGE_RESOURCE_BUNDLE = "org.apache.uima.pear.pear_messages"

Detailed Description

The InstallationController class allows installing PEAR files that contain UIMA compliant components.
Note: current version works both in Windows and Linux.


This class may be used in the following ways:

See also:
org.apache.uima.pear.tools.InstallationDescriptor
org.apache.uima.pear.tools.InstallationProcessor
org.apache.uima.pear.tools.InstallationTester
org.apache.uima.pear.util.MessageRouter

Definition at line 114 of file InstallationController.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index