Skip to main content
Package: com.phoenix_int.aserver.library Class Hierarchy
Implemented Interfaces
Declaration
This librarian provides “user” directories by looking in a user path or by reading /etc/passwd. It looks for “public_mcre” directories inside of each user’s directory and provides a “virtual” directory by the name ~<username> if it finds one.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PHXUserDirLibrarian

Method Detail

initialize

There are 2 options for this class. The first is userPath, which is a semi-colon separated list of paths to search. Each path will be searched for public_mcre directories ONE LEVEL DEEP from the specified directory. The other option is smartUserScan, which tells this class to try and read the user’s home directories from /etc/passwd. The XML format is:
Note: the mere existence of the smartUserScan tag turns the option on. Specified By: Throws:
  • java.lang.Exception

cleanUp

Tells this librarian to clean up any resources used. Specified By:

listComponents

Returns the components in a specific directory Specified By: Parameters:
  • virtualDir - The directory the client asked for
Returns:
  • An array of class names
Throws:

listDirectories

Lists any available sub-directories from a particular directory Specified By: Parameters:
  • virtualDir - The directory the client asked for
Returns:
  • A Collection of Strings
Throws:

instantiate

Creates an instance of the specified component. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory to search for the component class
  • connector - Name of the connector object to use
  • queue - Name of the queue object to use
Returns:
  • An instance of the associated component class with the file loaded
Throws:
  • 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.lang.Exception

instantiate (overload)

Creates an instance of the specified component. Typically a librarian will find the appropriate files and pass the request off to the 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: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns:
  • An instance of the specified component class
Throws:
  • 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 serious goes wrong

instantiateManaged

Creates an instance of the specified component. Typically a librarian will find the appropriate files and pass the request off to the 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: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
  • connector - Name of the connector object to use
  • queue - Name of the queue object to use
Returns: Throws:
  • 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 serious goes wrong

instantiateManaged (overload)

Creates an instance of the specified component. Typically a librarian will find the appropriate files and pass the request off to the 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: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns: Throws:
  • 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 serious goes wrong

describe

Describes the specified component. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory to search for the component class
Returns: Throws:
  • java.lang.ClassNotFoundException - if the class is not found
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.Exception - If anything goes wrong

getQueues

Method for getting Queues from CenterLink, MCRE just returns blank string Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns:
  • A list of queues for the specified component class
Throws:
  • 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