clusterSets.clear();\r
}\r
@Override\r
- public void updateReadAndWriteDirectories(Path read, Path write) {\r
+ public void updateWriteDirectory(Path write) {\r
// Nothing to do here\r
}\r
\r
+ @Override\r
+ public void setReadDirectory(Path read) {\r
+ \r
+ }\r
+ \r
}\r
clusterSets.clear();\r
}\r
@Override\r
- public void updateReadAndWriteDirectories(Path read, Path write) {\r
- setDirectories(read, write);\r
- }\r
- \r
- private void setDirectories(Path readDirectory, Path writeDirectory) {\r
- this.readDirectory = readDirectory;\r
- this.writeDirectory = writeDirectory;\r
+ public void updateWriteDirectory(Path write) {\r
+ this.writeDirectory = write;\r
if(clusterSets != null) {\r
clusterSets.setWriteDirectory(writeDirectory.toFile());\r
clusterSets.touch();\r
}\r
}\r
+ \r
+ @Override\r
+ public void setReadDirectory(Path read) {\r
+ this.readDirectory = read;\r
+ }\r
\r
}\r
public boolean refreshEnabled() {\r
return false;\r
}\r
+ @Override\r
+ public boolean rolledback() {\r
+ // TODO Auto-generated method stub\r
+ return false;\r
+ }\r
}\r
private AtomicLong changeSetId = new AtomicLong(Constants.NullChangeSetId);\r
private AtomicLong transactionId = new AtomicLong(Constants.NullTransactionId);\r
this.clusterControl = new ClusterControlImpl(this);\r
serviceLocator.registerService(ClusterControl.class, clusterControl);\r
this.clusterSetsSupport = new ClusterSetsSupportImpl2(); // Using same path as virtual graphs.\r
- this.clusterSetsSupport.updateReadAndWriteDirectories(t.toPath(), t.toPath());\r
+ this.clusterSetsSupport.setReadDirectory(t.toPath());\r
+ this.clusterSetsSupport.updateWriteDirectory(t.toPath());\r
serviceLocator.registerService(ClusterSetsSupport.class, clusterSetsSupport);\r
}\r
\r
public boolean refreshEnabled() {\r
return true;\r
}\r
+ @Override\r
+ public boolean rolledback() {\r
+ // TODO Auto-generated method stub\r
+ return false;\r
+ }\r
}\r
class SessionManager {\r
private ConcurrentHashMap<Client, SessionI> sessionMap = new ConcurrentHashMap<Client, SessionI>();\r
\r
public <T> T clone(ClusterUID clusterUID, ClusterCreator clusterCreator) throws DatabaseException;\r
public boolean refreshEnabled();\r
+ boolean rolledback();\r
}\r
public Session newSession(ServiceLocator locator) throws SDBException;\r
interface Journal {\r
void put(long resourceId, long clusterId);\r
void save() throws IOException;\r
void clear();\r
- void updateReadAndWriteDirectories(Path read, Path write);\r
+ void setReadDirectory(Path read);\r
+ void updateWriteDirectory(Path write);\r
\r
}\r