-
Notifications
You must be signed in to change notification settings - Fork 3
Castoro::Manipulator details
lamatsujun edited this page Dec 13, 2011
·
8 revisions
Home > Components > Castoro::Peer >
Manipulator を構成するクラスは以下の通り。
クラス | 用途 |
---|---|
Manipulator | Manipulator のメインクラス、UNIX ソケットと後述の Workers のインスタンスを有する。 インスタンスの起動・停止などを担う。 |
Workers | 後述の Executor のインスタンスを有しており、UNIX ソケットからリスンしたリクエストのプロトコルを解析。 Executor を用いて解析結果である各々のコマンドに応じた処理を実施する。 |
Executor | 実際にディレクトリの操作を実施するクラス。 |
メソッド名 | 用途 |
---|---|
#initialize | Manipulator クラスの新しいインスタンスを生成する。 |
#start | サービスを開始する。 |
#stop | サービスを停止する。 |
#alive? | サービス状態の真偽値を返す。( true → 開始中, false → 停止中) |
メソッド名 | 用途 |
---|---|
#initialize | Workers クラスの新しいインスタンスを生成する。 |
#start | サービスを開始する。 |
#stop | サービスを停止する。 |
#alive? | サービス状態の真偽値を返す。( true → 開始中, false → 停止中) |
メソッド名 | 用途 |
---|---|
#initialize | Executor クラスの新しいインスタンスを生成する。 |
#mkdir | ディレクトリを作成する。 |
#mv | ディレクトリを移動する。 |