快速连接故障切换连接故障切换处理-用Java、JDBC和Web服务进行Oracle 数据库 10g程序设计

时间:2024-05-15 02:20:12
【文件属性】:

文件名称:快速连接故障切换连接故障切换处理-用Java、JDBC和Web服务进行Oracle 数据库 10g程序设计

文件大小:372KB

文件格式:PPT

更新时间:2024-05-15 02:20:12

Java JDBC

快速连接故障切换: 连接故障切换处理 ONS 后台程序 故障切换事件 处理程序线程 订阅 发布 连接缓存 管理器 启动/停止 连接缓存对象阵列 .. .. .. 连接对象 线程处理事件,每个缓存一个 2 1 3 4 5 handleEvent() The illustration shows ONS event handling and connection failover processing 1. Connection cache manager starts the failover eventhandler thread every time a connection cache is created. 2. The eventhandler thread subscribes for the ONS events 3. In case of an event, the event is published to the eventhandler thread 4. The eventhandler thread invokes the handleEvent() method. The event type and property are passed along to handle the event appropriately 5. A worker thread processes the failover The eventhandler thread is terminated by connection cache manager, when the last of the connection caches is closed, by invoking close() on the cache enabled DataSource.


网友评论