Documentation Home
> Sun Cluster 資料服務開發者指南 (適用於 Solaris 作業系統)
Sun Cluster 資料服務開發者指南 (適用於 Solaris 作業系統)
Book Information
索引
編號和符號
A
B
C
D
F
G
H
I
J
L
M
P
R
S
T
U
V
W
X
一
二
介
元
公
升
引
支
方
主
代
功
可
用
目
回
存
安
伺
完
使
來
函
協
延
性
建
持
指
故
相
重
值
套
記
訊
退
配
區
常
透
測
畫
程
等
註
資
預
實
監
網
說
寫
範
編
線
複
遷
導
選
錯
檔
檢
獲
叢
屬
驗
前言
第 1章 資源管理簡介
Sun Cluster 應用程式環境
RGM 模型
資源類型
資源
資源群組
資源群組管理員
回呼方法
程式設計介面
RMAPI
資料服務開發程式庫 (DSDL)
SunPlex Agent Builder
資源群組管理員管理介面
SunPlex Manager
管理指令
第 2章 開發資料服務
分析應用程式的適當性
確定要使用的介面
設定撰寫資料服務的開發環境
設定開發環境
將資料服務傳送至叢集
設定資源屬性和資源類型屬性
宣告資源類型屬性
宣告資源屬性
宣告延伸屬性
實施回呼方法
存取資源和資源群組屬性資訊
方法的等冪性
一般資料服務
控制應用程式
啟動與停止資源
決定要使用的 Start 和 Stop 方法
Init、Fini 以及 Boot 方法
監視資源
將訊息記錄加入資源
提供程序管理
為資源提供管理支援
實施故障轉移資源
實施可延伸資源
可延伸服務的驗證檢查
寫入與測試資料服務
使用持續連接
測試 HA 資料服務
協調資源之間的相依性
第 3章 升級資源類型
概述
資源類型註冊檔案
資源類型名稱
指令
變更 RTR 檔案中的 RT_Version
舊版 Sun Cluster 中的資源類型名稱
資源 Type_version 屬性
將資源遷移至其他版本
升級與降級資源類型
預設屬性值
資源類型開發者說明文件
資源類型名稱與資源類型監視器實作
應用程式升級
資源類型升級範例
資源類型套件的安裝要求
變更 RTR 檔案前需要瞭解的資訊
變更監視器程式碼
變更方法程式碼
第 4章 資源管理 API 參考
RMAPI 存取方法
RMAPI Shell 指令
RMAPI 資源指令
資源類型指令
資源群組指令
叢集指令
C 函式
資源函式
資源類型函式
資源群組函式
叢集函式
公用程式函式
RMAPI 回呼方法
方法引數
退出碼
控制與初始化回呼方法
管理支援方法
網路相關的回呼方法
監視器控制回呼方法
第 5章 資料服務範例
資料服務範例概觀
定義資源類型註冊檔案
RTR 檔案概觀
RTR 檔案範例中的資源類型屬性
RTR 檔案範例中的資源屬性
RTR 檔案中系統定義的屬性
RTR 檔案中的延伸屬性
為所有方法提供共用功能性
識別指令解譯程式與匯出路徑
宣告變數 PMF_TAG 與 SYSLOG_TAG
剖析函式引數
產生錯誤訊息
獲取屬性資訊
控制資料服務
Start 方法
Start 概觀
驗證配置
啟動應用程式
Start 退出狀態
Stop 方法
Stop 概觀
停止應用程式
Stop 退出狀態
定義故障監視器
探測程式
探測概觀
獲取屬性值
檢查服務的可靠性
評估重新啟動與故障轉移
重新啟動資料服務
探測退出狀態
Monitor_start 方法
Monitor_start 概觀
啟動探測
Monitor_stop 方法
Monitor_stop 概觀
停止監視器
Monitor_stop 退出狀態
Monitor_check 方法
處理屬性更新
Validate 方法
Validate 概觀
Validate 方法剖析函式
驗證 Confdir
Validate 退出狀態
Update 方法
Update 概觀
使用 Update 停止監視器
重新啟動監視器
Update 退出狀態
第 6章 資料服務開發程式庫 (DSDL)
DSDL 概觀
管理配置屬性
啟動與停止資料服務
實施故障監視器
存取網路位址資訊
對資源類型實作進行除錯
啟用高度可用的本機檔案系統
第 7章 設計資源類型
RTR 檔案
Validate 方法
Start 方法
Stop 方法
Monitor_start 方法
Monitor_stop 方法
Monitor_check 方法
Update 方法
Init、Fini 和 Boot 方法
設計故障監視器常駐程式
第 8章 DSDL 資源類型實施範例
X 字型伺服器
X 字型伺服器配置檔案
TCP 通訊埠編號
命名慣例
SUNW.xfnts RTR 檔案
scds_initialize() 函式
xfnts_start 方法
啟動前驗證服務
啟動服務
從 svc_start() 傳回
xfnts_stop 方法
xfnts_monitor_start 方法
xfnts_monitor_stop 方法
xfnts_monitor_check 方法
SUNW.xfnts 故障監視器
xfonts_probe 主迴圈
svc_probe() 函式
決定故障監視器的動作
xfnts_validate 方法
xfnts_update 方法
第 9章 SunPlex Agent Builder
使用 Agent Builder
分析應用程式
安裝與配置 Agent Builder
啟動 Agent Builder
使用 [建立] 畫面
使用 [配置] 畫面
使用 Agent Builder $hostnames 變數
建立具有多個獨立程序樹的資源類型
重複使用完成的工作
複製現有的資源類型
編輯產生的來源代碼
使用 Agent Builder 的指令行版本
目錄結構
輸出
來源檔與二進位檔
公用程式程序檔與線上援助頁
支援檔案
套件目錄
rtconfig 檔案
導覽 Agent Builder
[瀏覽] 按鈕
功能表
[檔案] 功能表
[編輯] 功能表
Agent Builder 的 Cluster Agent 模組
安裝與設定 Cluster Agent 模組
啟動 Cluster Agent 模組
使用 Cluster Agent 模組
Cluster Agent 模組與Agent Builder 之間的差異
第 10章 一般資料服務
GDS 概觀
預先編譯的資源類型
為何使用 GDS
建立使用 GDS 的服務之方式
GDS 與 SunPlex Agent Builder
GDS 與標準 Sun Cluster 管理指令
選取用來建立以 GDS 為基礎的服務之方法
何時不使用 GDS 機制
GDS 的必備屬性
Start_command 延伸屬性
Port_list 屬性
GDS 的可選用屬性
Network_resources_used 屬性
Stop_command 屬性
Probe_command 屬性
Start_timeout 屬性
Stop_timeout 屬性
Probe_timeout 屬性
Child_mon_level 屬性
Failover_enabled 屬性
Stop_signal 屬性
使用 SunPlex Agent Builder 建立使用 GDS 的服務
在 SunPlex Agent Builder 中建立使用 GDS 的服務
SunPlex Agent Builder 的輸出
使用標準 Sun Cluster 管理指令建立使用 GDS 的服務
SunPlex Agent Builder 的指令行介面
第 11章 資料服務開發程式庫參考
DSDL 函式
通用函式
屬性函式
網路資源存取函式
使用 TCP 連接的故障監視
PMF 函式
故障監視器函式
公用程式函式
第 12章 CRNP
CRNP 概觀
CRNP 協定概觀
CRNP 協定的語義
CRNP 使用的訊息類型
用戶端如何註冊到伺服器
有關管理員如何設定伺服器的假定
伺服器識別用戶端的方式
在用戶端與伺服器之間傳送 SC_CALLBACK_REG 訊息的方式
SC_CALLBACK_REG 訊息的內容
伺服器回覆用戶端的方式
SC_REPLY 訊息的內容
用戶端處理錯誤狀況的方式
伺服器如何將事件發送給用戶端
如何保證事件的發送
SC_EVENT 訊息的內容
CRNP 如何授權用戶端與伺服器
建立使用 CRNP 的 Java 應用程式
附錄 A 標準屬性
資源類型屬性
資源屬性
資源群組屬性
資源屬性性質
附錄 B 範例資料服務程式碼清單
資源類型註冊檔案清單
Start 方法
Stop 方法
gettime 公用程式
PROBE 程式
Monitor_start 方法
Monitor_stop 方法
Monitor_check 方法
Validate 方法
Update 方法
附錄 C 資料服務開發程式庫資源類型程式碼範例清單
xfnts.c
xfnts_monitor_check 方法
xfnts_monitor_start 方法
xfnts_monitor_stop 方法
xfnts_probe 方法
xfnts_start 方法
xfnts_stop 方法
xfnts_update 方法
xfnts_validate 方法程式碼清單
附錄 D 合法的 RGM 名稱和值
RGM 合法名稱
RGM 值
附錄 E 不支援叢集的應用程式的要求
多重主機資料
使用多重主機資料放置的符號連結
主機名稱
多重主目錄主機
連結至 INADDR_ANY 與連結至特定 IP 位址
用戶端重試
附錄 F CRNP 的文件類型定義
SC_CALLBACK_REG XML DTD
NVPAIR XML DTD
SC_REPLY XML DTD
SC_EVENT XML DTD
附錄 G CrnpClient.java 應用程式
CrnpClient.java 的內容
© 2010, Oracle Corporation and/or its affiliates