パッケージ org.piax.common
クラス StatusRepo
java.lang.Object
org.piax.common.StatusRepo
public class StatusRepo extends Object
状態保存用のRepositoryを実現するクラス。
通常は、user.home システムプロパティにより指定された HOMEディレクトリの
直下の .piax ディレクトリの配下に作成される。
user.home とは異なるディレクトリをHOMEにする場合は、piax.user.home に
そのPATHを書くようにする。
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static booleanON_MEMORY -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 StatusRepo(String name) -
メソッドの概要
修飾子とタイプ メソッド 説明 voidcleanUp()booleandelete(String fileName)voidfin()FilegetPath()StringgetProp(String key)voidremoveProp(String key)byte[]restoreBytes(String fileName)ObjectrestoreData(String fileName)voidsaveBytes(String fileName, byte[] bytes)voidsaveData(String fileName, Serializable data)voidsaveProp()voidsetProp(String key, String value)
-
フィールド詳細
-
ON_MEMORY
public static boolean ON_MEMORY
-
-
コンストラクタの詳細
-
メソッドの詳細
-
fin
public void fin() -
getPath
-
cleanUp
public void cleanUp() -
getProp
-
setProp
-
removeProp
-
saveProp
- 例外:
IOException
-
saveBytes
-
restoreBytes
-
delete
-
saveData
-
restoreData
public Object restoreData(String fileName) throws FileNotFoundException, IOException, ClassNotFoundException
-