public class ClusterJSONFile
extends java.lang.Object
| Constructor and Description |
|---|
ClusterJSONFile(java.io.File targetFile)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Deprecated.
|
void |
initializeFile(JSONObject newContent)
Deprecated.
|
boolean |
isLocked()
Deprecated.
|
JSONObject |
lockAndRead()
Deprecated.
|
JSONObject |
readWithoutLock()
Deprecated.
|
void |
unlock()
Deprecated.
|
void |
writeAndUnlock(JSONObject newContent)
Deprecated.
|
void |
writeWithoutUnlock(JSONObject newContent)
Deprecated.
|
public ClusterJSONFile(java.io.File targetFile)
throws java.lang.Exception
java.lang.Exceptionpublic boolean exists()
public void initializeFile(JSONObject newContent) throws java.lang.Exception
java.lang.Exceptionpublic JSONObject lockAndRead() throws java.lang.Exception
java.lang.Exceptionpublic JSONObject readWithoutLock() throws java.lang.Exception
java.lang.Exceptionpublic boolean isLocked()
public void writeWithoutUnlock(JSONObject newContent) throws java.lang.Exception
java.lang.Exceptionpublic void writeAndUnlock(JSONObject newContent) throws java.lang.Exception
java.lang.Exceptionpublic void unlock()
throws java.lang.Exception
java.lang.Exception