|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpl.mipl.mdms.FileService.komodo.transaction.FileTypeManager
Class to manage file types handled by the server
Constructor Summary | |
FileTypeManager()
|
Method Summary | |
static FileTypeInfo |
get(String fileType)
Access method to retrieve a file type information class reference. |
static Enumeration |
getFileTypeInfo()
Accessor method to obtain the iterator to the list of file type objects |
static String |
getFileTypeInfo(String fileType)
Method to return a file type info in output string format |
static Registry |
getRegistry()
Accessor method to get reference to the dbms access object |
static String |
getServerName()
Accessor method to return the server name |
static void |
initialize(String dataSource,
String registry,
String role,
String serverName,
boolean debug)
Constructor |
static void |
put(String fileType,
FileTypeInfo info)
Method to add a file type to hashtable |
static void |
reloadFileTypes(FileTypeInfoHandler handler)
Method to reload file type info from the server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileTypeManager()
Method Detail |
public static void initialize(String dataSource, String registry, String role, String serverName, boolean debug) throws Exception
dataSource
- data source for sig events, e.g., FileMgrDB.registry
- registry containing data source bindings.role
- database role, allowing client to register events to database.serverName
- the name of our server.
Exception
- the general inital failurepublic static final Registry getRegistry()
public static final FileTypeInfo get(String fileType)
fileType
- the file type name
public static final void put(String fileType, FileTypeInfo info)
fileType
- the file type nameinfo
- the associated FileTypeInfopublic static Enumeration getFileTypeInfo()
public static String getFileTypeInfo(String fileType)
fileType
- the file name
public static String getServerName()
public static void reloadFileTypes(FileTypeInfoHandler handler)
SQLException
- when failed to load file type info
from the database.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |