com.phoenix_int.aserver.library
Class Hierarchy
IPHXLibrarian,IPHXLibrarian2,IPHXVersionedLibrarian,IPHXVersionedLibrarian2,IPHXVersionedLibrarian3
Declaration
IPHXLibrarian which loads files out of CVS. This class generates a directory in the scratch directory called “CVSLIB” which contains its cache data. A single copy of the latest version out of cvs is kept there for component browsing. When a component is requested with “instantiate”, it generates a temp directory in CVSLIB and checks out the entire directory that contains that component into the temp dir. The temp dir gets deleted when the connection is dropped. In order to have consistent files, it figures out the commit time for the component requested, and then checks out all the files in the directory from that same date.
The required configuration parameters are defined on the initialize method.
This class requires passwordless access to cvs and does not currently provide any access control functions (.mcre files do not work).
Constructor Summary
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
PHXCVSLibrarian
Method Detail
initialize
initializein interfaceIPHXLibrarian
java.lang.Exception
cleanUp
cleanUpin interfaceIPHXLibrarian
listComponents
listComponentsin interfaceIPHXLibrarian
virtualDir- The directory the client asked for
- an array of class names
com.phoenix_int.aserver.security.PHXAccessDeniedException- if the directory could not be scannedPHXNoSuchCategoryException
listDirectories
listDirectoriesin interfaceIPHXLibrarian
virtualDir- The directory the client asked for
- a Collection of Strings
PHXNoSuchCategoryExceptioncom.phoenix_int.aserver.security.PHXAccessDeniedException
instantiate
instantiatein interfaceIPHXLibrarian
compClass- the class name for the componentvirtualDir- the directory to search for the component class
- an instance of the associated component class with the file loaded
java.lang.ClassNotFoundException- if the class is not foundjava.lang.IllegalAccessException- cannot call constructorjava.lang.InstantiationException- cannot call constructorjava.lang.reflect.InvocationTargetException- if an exception if the specified component exists, but is not of the right type, or if an exception occurs while creating the class or loading the setup filejava.io.IOExceptionPHXServerSideExceptionjava.net.MalformedURLExceptioncom.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedExceptionPHXNoSuchCategoryException
instantiate
IPHXFactory. It is important that this class throws PHXNoSuchCategoryException and ClassNotFoundException in the appropriate cases as they are handled in special ways by the librarian mounter and librarian combiner.
Specified by:
instantiatein interfaceIPHXLibrarian
compClass- the class name for the componentvirtualDir- The directory the client asked for
- an instance of the specified component class
java.lang.ClassNotFoundException- IfcompClassdoesn’t indicate a valid class for the specified directoryPHXNoSuchCategoryException- If thevirtualDirNamepassed in is invalidjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionjava.io.IOExceptionPHXServerSideExceptionjava.net.MalformedURLExceptioncom.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException
instantiateManaged
IPHXFactory. It is important that this class throws PHXNoSuchCategoryException and ClassNotFoundException in the appropriate cases as they are handled in special ways by the librarian mounter and librarian combiner.
Specified by:
instantiateManagedin interfaceIPHXLibrarian2
compClass- the class name for the componentvirtualDir- The directory the client asked forconnector- name of the connector object to usequeue- name of the queue object to use
- an instance of the specified component class and its managed resources
java.lang.ClassNotFoundException- IfcompClassdoesn’t indicate a valid class for the specified directoryPHXNoSuchCategoryException- If thevirtualDirNamepassed in is invalidjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionjava.io.IOExceptionPHXServerSideExceptionjava.net.MalformedURLExceptioncom.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException
instantiateManaged
IPHXFactory. It is important that this class throws PHXNoSuchCategoryException and ClassNotFoundException in the appropriate cases as they are handled in special ways by the librarian mounter and librarian combiner.
Specified by:
instantiateManagedin interfaceIPHXLibrarian2
compClass- the class name for the componentvirtualDir- The directory the client asked for
- an instance of the specified component class and its managed resources
java.lang.ClassNotFoundException- IfcompClassdoesn’t indicate a valid class for the specified directoryPHXNoSuchCategoryException- If thevirtualDirNamepassed in is invalidjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionjava.io.IOExceptionPHXServerSideExceptionjava.net.MalformedURLExceptioncom.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException
getComponentHistory
PHXNoSuchCategoryException and ClassNotFoundException in the appropriate cases as they are handled in special ways by the librarian mounter and librarian combiner.
Specified by:
getComponentHistoryin interfaceIPHXVersionedLibrarian
compClass- the class name for the componentvirtualDir- The directory the client asked for
- An instance of
PHXComponentBranchwhich contains all the versions and sub-branches available
java.lang.ClassNotFoundException- IfcompClassdoesn’t indicate a valid class for the specified directoryPHXNoSuchCategoryException- If thevirtualDirNamepassed in is invalidjava.io.IOException
describe
describein interfaceIPHXLibrarian
compClass- the class name for the componentvirtualDir- the directory to search for the component class
- a description of the specified component class
java.lang.ClassNotFoundException- if the class is not foundPHXNoSuchCategoryException- If thevirtualDirNamepassed in is invalidjava.io.IOExceptionPHXServerSideExceptionjava.net.MalformedURLException
getQueues
getQueuesin interfaceIPHXLibrarian
compClass- the class name for the componentvirtualDir- The directory the client asked for
- a list of queues for the specified component class
PHXNoSuchCategoryException- If thevirtualDirNamepassed in is invalidjava.lang.ClassNotFoundException- IfcompClassdoesn’t indicate a valid class for the specified directoryjava.lang.Exception- If anything goes wrong
getBranchesAndTags
getBranchesAndTagsin interfaceIPHXVersionedLibrarian2
- always returns empty string