com.infoengine.administration.delegate
Class Installer

java.lang.Object
  extended bycom.infoengine.administration.delegate.Installer
Direct Known Subclasses:
Installer

public class Installer
extends Object


Nested Class Summary
(package private)  class Installer.StdoutLogMessageListener
           
 
Field Summary
protected  String defaultRepository
           
protected  RepositoryType defaultRepositoryType
           
protected  DelegateDirectory directory
           
protected  LogMessageListener listener
           
protected  String loadPoint
           
protected  File lPoint
           
protected  PropertyEntry namingServiceEntry
           
protected  String nsName
           
protected  PackageDescriptor packageDescriptor
           
protected  String packageName
           
protected  Package packge
           
protected  PropertyDirectory propertyDirectory
           
protected  String propFile
           
protected  Repository repository
           
(package private) static String RESOURCE
           
protected  File root
           
protected  String taskJar
           
protected  File taskRoot
           
protected  String tasks
           
protected  String vmName
           
protected  Properties wtproperties
           
 
Constructor Summary
Installer()
           
 
Method Summary
private  RepositoryType createRepositoryType(String repoType, String descriptorRTypeName)
           
private  TypeId createTypeId(RepositoryType repositoryType, String typeIdName, String descriptorRTypeName)
           
protected  boolean deleteTree(File f)
           
private  boolean different(String[] s1s, String[] s2s)
           
private  boolean different(String s1, String s2)
           
private  void followUpLDAP()
           
protected static String getProperty(Properties props, String propName)
           
protected  Properties getWtProperties()
           
private  boolean inAncestor(File f)
           
private  boolean inLoadPoint(File f)
           
 void install()
           
private  void install(File f)
           
private  String ldapSafe(String s)
           
protected  void log(String msg)
           
protected  void logInfo(boolean install)
           
protected  void logL10N(String key, String insert)
           
protected  void logln(String msg)
           
static void main(String[] args)
           
private  void process(File currentDir, File parentDir, DotDelegateInfo parentInfo)
           
private  void processDirectoryProps(String url)
           
 void processProperties(String propFile)
           
 void setDefaultRepository(String s)
           
 void setLoadPoint(String s)
           
 void setLogMessageListener(LogMessageListener listener)
           
 void setNsName(String s)
           
 void setPackageDescriptor(PackageDescriptor descriptor)
           
 void setPackageName(String s)
           
 void setPropFile(String s)
           
 void setTaskJar(String s)
           
 void setTasks(String s)
           
 void setVmName(String s)
           
 void uninstall()
           
private  String unjar()
           
private  RepositoryType updateRepositoryType(RepositoryType rType, String repoType, String descriptorRTypeName)
           
private  TypeId updateTypeId(TypeId tid, RepositoryType repositoryType, String typeIdName, String descriptorRTypeName)
           
private static void usage()
           
 void verbose()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propFile

protected String propFile

vmName

protected String vmName

nsName

protected String nsName

defaultRepository

protected String defaultRepository

taskJar

protected String taskJar

tasks

protected String tasks

loadPoint

protected String loadPoint

packageName

protected String packageName

lPoint

protected File lPoint

root

protected File root

directory

protected DelegateDirectory directory

taskRoot

protected File taskRoot

propertyDirectory

protected PropertyDirectory propertyDirectory

namingServiceEntry

protected PropertyEntry namingServiceEntry

listener

protected LogMessageListener listener

repository

protected Repository repository

defaultRepositoryType

protected RepositoryType defaultRepositoryType

packge

protected Package packge

wtproperties

protected Properties wtproperties

packageDescriptor

protected PackageDescriptor packageDescriptor

RESOURCE

static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

Installer

public Installer()
Method Detail

setVmName

public void setVmName(String s)

setNsName

public void setNsName(String s)

setDefaultRepository

public void setDefaultRepository(String s)

setTaskJar

public void setTaskJar(String s)

setTasks

public void setTasks(String s)

setLoadPoint

public void setLoadPoint(String s)

setPropFile

public void setPropFile(String s)

setPackageName

public void setPackageName(String s)

setPackageDescriptor

public void setPackageDescriptor(PackageDescriptor descriptor)

ldapSafe

private String ldapSafe(String s)

processProperties

public void processProperties(String propFile)
                       throws IOException,
                              IEException
Throws:
IOException
IEException

processDirectoryProps

private void processDirectoryProps(String url)
                            throws IEException
Throws:
IEException

getWtProperties

protected Properties getWtProperties()

getProperty

protected static String getProperty(Properties props,
                                    String propName)

unjar

private String unjar()
              throws IOException
Throws:
IOException

inLoadPoint

private boolean inLoadPoint(File f)

inAncestor

private boolean inAncestor(File f)

install

private void install(File f)
              throws IOException,
                     IEException
Throws:
IOException
IEException

logInfo

protected void logInfo(boolean install)

install

public void install()
             throws IOException,
                    IEException
Throws:
IOException
IEException

followUpLDAP

private void followUpLDAP()
                   throws IOException,
                          IEException
Throws:
IOException
IEException

createTypeId

private TypeId createTypeId(RepositoryType repositoryType,
                            String typeIdName,
                            String descriptorRTypeName)
                     throws IOException,
                            IEException
Throws:
IOException
IEException

updateTypeId

private TypeId updateTypeId(TypeId tid,
                            RepositoryType repositoryType,
                            String typeIdName,
                            String descriptorRTypeName)
                     throws IOException,
                            IEException
Throws:
IOException
IEException

createRepositoryType

private RepositoryType createRepositoryType(String repoType,
                                            String descriptorRTypeName)
                                     throws IOException,
                                            IEException
Throws:
IOException
IEException

updateRepositoryType

private RepositoryType updateRepositoryType(RepositoryType rType,
                                            String repoType,
                                            String descriptorRTypeName)
                                     throws IOException,
                                            IEException
Throws:
IOException
IEException

uninstall

public void uninstall()
               throws IOException,
                      IEException
Throws:
IOException
IEException

process

private void process(File currentDir,
                     File parentDir,
                     DotDelegateInfo parentInfo)
              throws IOException,
                     IEException
Throws:
IOException
IEException

setLogMessageListener

public void setLogMessageListener(LogMessageListener listener)

verbose

public void verbose()

logL10N

protected void logL10N(String key,
                       String insert)

logln

protected void logln(String msg)

log

protected void log(String msg)

deleteTree

protected boolean deleteTree(File f)

usage

private static void usage()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

different

private boolean different(String s1,
                          String s2)

different

private boolean different(String[] s1s,
                          String[] s2s)