|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reuters.rc.db.DbManager
DbManager is the starting point for the application clients that wishes to access an ADB-like agent through the intefaces in this package. Clients can set/get their choice of DbFactory implementations by using the static methods in this class. DbManager also provides static methods to set/get the default rv transport, rv queue and the timeout values.
DbFactory
Field Summary | |
protected static double |
DEFAULT_TIMEOUT
Default timeout in seconds. |
protected static com.tibco.tibrv.TibrvQueue |
rvQueue_
Default TibrvQueue. |
protected static com.tibco.tibrv.TibrvTransport |
rvTrans_
Default TibrvTransport. |
Method Summary | |
static com.tibco.tibrv.TibrvQueue |
getDefaultQueue()
Get the default TibrvQueue. |
static double |
getDefaultTimeout()
Get the default request timeout. |
static com.tibco.tibrv.TibrvTransport |
getDefaultTransport()
Get the default TibrvTransport. |
static DbFactory |
getFactory()
Get the instance of the factory. |
static void |
setDefault(double timeout)
Set up a default request timeout. |
static void |
setDefault(com.tibco.tibrv.TibrvQueue rvQueue)
Set up a default TibrvQueue. |
static void |
setDefault(com.tibco.tibrv.TibrvTransport rvTrans)
Set up a default TibrvTransport. |
static void |
setDefault(com.tibco.tibrv.TibrvTransport rvTrans,
com.tibco.tibrv.TibrvQueue rvQueue)
Set up a default TibrvTransport/TibrvQueue. |
static void |
setDefault(com.tibco.tibrv.TibrvTransport rvTrans,
com.tibco.tibrv.TibrvQueue rvQueue,
double defaultTimeout)
Set up a default TibrvTransport/TibrvQueue. |
static void |
setFactory(DbFactory pFactory)
Set the factory instance. |
static void |
setFactory(java.lang.String pFactoryClassName)
Set the factory instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static com.tibco.tibrv.TibrvTransport rvTrans_
protected static com.tibco.tibrv.TibrvQueue rvQueue_
protected static double DEFAULT_TIMEOUT
Method Detail |
public static final void setDefault(com.tibco.tibrv.TibrvTransport rvTrans, com.tibco.tibrv.TibrvQueue rvQueue, double defaultTimeout) throws DbBusinessException, DbSystemException
rvTrans
- Default TibrvTransport.rvQueue
- Default TibrvQueue.defaultTimeout
- Default timeout in seconds for requests.getDefaultTransport()
,
getDefaultQueue()
public static final void setDefault(com.tibco.tibrv.TibrvTransport rvTrans, com.tibco.tibrv.TibrvQueue rvQueue) throws DbBusinessException, DbSystemException
rvTrans
- Default TibrvTransport.rvQueue
- Default TibrvQueue.getDefaultTransport()
,
getDefaultQueue()
public static final void setDefault(com.tibco.tibrv.TibrvTransport rvTrans) throws DbBusinessException
rvTrans
- Default TibrvTransport.getDefaultTransport()
public static final void setDefault(com.tibco.tibrv.TibrvQueue rvQueue) throws DbBusinessException
rvQueue
- Default TibrvQueue.getDefaultQueue()
public static final void setDefault(double timeout) throws DbBusinessException
timeout
- Default request timeout.getDefaultTimeout()
public static final com.tibco.tibrv.TibrvTransport getDefaultTransport()
null
if no default
transport has been set up.setDefault(TibrvTransport)
public static final com.tibco.tibrv.TibrvQueue getDefaultQueue()
null
if no default
queue has been set up.setDefault(TibrvQueue)
public static final double getDefaultTimeout()
public static final void setFactory(DbFactory pFactory) throws DbBusinessException
pFactory
- Factory instancepublic static final void setFactory(java.lang.String pFactoryClassName) throws DbBusinessException, DbSystemException
pFactoryClassName
- The name of the factory class.DbException
- public static final DbFactory getFactory() throws DbBusinessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |