|
Oracle Personalization REAPI_RT v9.0.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.op.re.reapi.rt.REProxyManager
A singleton class that manages and provides access to REProxyRT
objects. Only one instance of this class is available in each JVM and it is
loaded automatically. Each instance of REProxyManager
encapsulates a proxy pool that holds and manages REProxyRT
objects. The proxy objects in the pool are identified by their unique names.
REProxyRT
Method Summary |
Type | Method |
---|---|
static REProxyRT |
createProxy(String name,
String dbURL,
String userName,
String passWord,
int cacheSize,
int interval)
Creates an object of class REProxyRT . |
static void |
destroyAllProxies()
Destroys all existing REProxyRT objects and cleans the
proxy pool that is mastered by class REProxyManager . |
static void |
destroyProxy(String name)
Destroys the specified REProxyRT object and removes it from
the proxy pool that is mastered by class REProxyManager . |
static REProxyRT |
getProxy(String name)
Gets an instance of the specified REProxyRT . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode,
notify, notifyAll, toString,
wait, wait, wait |
Method Detail |
public static REProxyRT createProxy(String name, String dbURL, String userName, String passWord, int cacheSize, int interval) throws StringTooLargeException, REProxyInitException
REProxyRT
. The proxy connects
to the specified RE database through a JDBC connection pool and processes
recommendation requests using the specified RE.
The proxy object possesses a DataCollectionCache
and a
connection pool. The DataCollectionCache
stores the
customer profile data temporarily and then periodically archives
the data in the RE database. The connection pool provides pooled
connections required by all recommendation methods.
name
- a unique name of the new REProxyRT
objectdbURL
- the URL of the database this proxy will connect touserName
- the login namepassWord
- the login passwordcacheSize
- the cache size in Kbinterval
- the cache archive interval in milliseconds
StringTooLargeException
- if the input string is too longREproxyInitException
- if the initialization of the proxy
failspublic static REProxyRT getProxy(String name) throws REProxyInitException
REProxyRT
.name
- the name of the REProxyRT
objectREProxyRT
objectREProxyInitException
- if the proxy object is not initiated properlypublic static void destroyProxy(String name)
REProxyRT
object and removes it from
the proxy pool that is mastered by class REProxyManager
.
This method forcefully destroys the named proxy regardless of its active
status. Does nothing if the name is empty or the named proxy does not exist.name
- the name of the REProxyRT
object; must be uniquepublic static void destroyAllProxies()
REProxyRT
objects and cleans the
proxy pool that is mastered by class REProxyManager
.
This method is extremely violent and forcefully destroys all
proxy objects regardless of their active status.
|
Oracle Personalization REAPI_RT v9.0.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |