|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.library.PHXDirectoryLibrarian
public class PHXDirectoryLibrarian
This librarian provides a window into a directory on disk that contains wrapper and component files.
| Constructor Summary | |
|---|---|
PHXDirectoryLibrarian()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
This class has no cleaning up to do |
PHXComponentDescription |
describe(java.lang.String compClass,
java.lang.String virtualDir)
describes the specified component. |
java.lang.String |
getQueues(java.lang.String compClass,
java.lang.String virtualDir)
method for getting Queues from CenterLink, AS just returns blank string |
void |
initialize(com.phoenix_int.aserver.ascore.PHXConnection connection,
IPHXFactory factories,
com.phoenix_int.aserver.ascore.PHXAServerArgs args,
org.w3c.dom.Node xmlOptions)
There is only 1 option for this class, "analysesPath" which must be a single directory that exists on the local system. |
IPHXComponent |
instantiate(java.lang.String compClass,
java.lang.String virtualDir)
creates an instance of the specified component. |
IPHXComponent |
instantiate(java.lang.String compClass,
java.lang.String virtualDir,
java.lang.String connector,
java.lang.String queue)
creates an instance of the specified component. |
java.util.Collection |
listComponents(java.lang.String virtualDir)
returns the components in a specific directory |
java.util.Collection |
listDirectories(java.lang.String virtualDir)
Lists available sub-directories for the specified path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PHXDirectoryLibrarian()
| Method Detail |
|---|
public void initialize(com.phoenix_int.aserver.ascore.PHXConnection connection,
IPHXFactory factories,
com.phoenix_int.aserver.ascore.PHXAServerArgs args,
org.w3c.dom.Node xmlOptions)
throws java.lang.Exception
The XML format is:
<librarianOptions> <analysesPath>path1/here</analysesPath> </librarianOptions>
initialize in interface IPHXLibrarianjava.lang.Exceptionpublic void cleanUp()
cleanUp in interface IPHXLibrarian
public java.util.Collection listComponents(java.lang.String virtualDir)
throws PHXNoSuchCategoryException,
com.phoenix_int.aserver.security.PHXAccessDeniedException
listComponents in interface IPHXLibrarianvirtualDir - The directory the client asked for
java.io.IOException - if the directory could not be scanned
PHXNoSuchCategoryException
com.phoenix_int.aserver.security.PHXAccessDeniedException
public java.util.Collection listDirectories(java.lang.String virtualDir)
throws PHXNoSuchCategoryException,
com.phoenix_int.aserver.security.PHXAccessDeniedException
listDirectories in interface IPHXLibrarianPHXNoSuchCategoryException
com.phoenix_int.aserver.security.PHXAccessDeniedException
public IPHXComponent instantiate(java.lang.String compClass,
java.lang.String virtualDir,
java.lang.String connector,
java.lang.String queue)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException,
java.io.IOException,
PHXServerSideException,
java.net.MalformedURLException,
com.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException,
PHXNoSuchCategoryException
instantiate in interface IPHXLibrariancompClass - the class name for the componentdirectory - the directory to search for the component class
java.lang.ClassNotFoundException - if the class is not found
java.lang.IllegalAccessException - cannot call constructor
java.lang.InstantiationException - cannot call constructor
java.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 file
java.io.IOException
PHXServerSideException
java.net.MalformedURLException
com.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException
PHXNoSuchCategoryException
public IPHXComponent instantiate(java.lang.String compClass,
java.lang.String virtualDir)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException,
java.io.IOException,
PHXServerSideException,
java.net.MalformedURLException,
com.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException,
PHXNoSuchCategoryException
IPHXLibrarianIt 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.
instantiate in interface IPHXLibrariancompClass - the class name for the componentvirtualDir - The directory the client asked for
java.lang.ClassNotFoundException - If compClass doesn't
indicate a valid class for the specified directory
PHXNoSuchCategoryException - If the virtualDirName
passed in is invalid
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.io.IOException
PHXServerSideException
java.net.MalformedURLException
com.phoenix_int.aserver.util.proxywrapper.PHXProxyNotAllowedException
public PHXComponentDescription describe(java.lang.String compClass,
java.lang.String virtualDir)
throws java.lang.ClassNotFoundException,
java.io.IOException,
PHXServerSideException,
java.net.MalformedURLException,
PHXNoSuchCategoryException
describe in interface IPHXLibrariancompClass - the class name for the componentdirName - the directory to search for the component class
java.lang.ClassNotFoundException - if the class is not found
PHXNoSuchCategoryException - If the virtualDirName
passed in is invalid
java.io.IOException
PHXServerSideException
java.net.MalformedURLException
public java.lang.String getQueues(java.lang.String compClass,
java.lang.String virtualDir)
throws java.lang.Exception
getQueues in interface IPHXLibrariancompClass - the class name for the componentvirtualDir - The directory the client asked for
PHXNoSuchCategoryException - If the virtualDirName
passed in is invalid
java.lang.ClassNotFoundException - If compClass doesn't
indicate a valid class for the specified directory
java.lang.Exception - If anything goes wrong
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||