*/
private void readParamsFromRegistryService(SessionProvider sessionProvider) throws RepositoryException
{
// initialize repositories
String entryPath = RegistryService.EXO_SERVICES + "/" + SERVICE_NAME + "/" + "repositories";
RegistryEntry entry = registryService.getEntry(sessionProvider, entryPath);
Document doc = entry.getDocument();
Element element = doc.getDocumentElement();
String repositories = getAttributeSmart(element, "repositories");
repoNamesList = new ArrayList<String>();
String reps[] = repositories.split(";");
for (String rep : reps)
{
if (!rep.equals(""))
{
repoNamesList.add(rep);
}
}
// initialize replication params;
entryPath = RegistryService.EXO_SERVICES + "/" + SERVICE_NAME + "/" + "replication-properties";
entry = registryService.getEntry(sessionProvider, entryPath);
doc = entry.getDocument();
element = doc.getDocumentElement();
testMode = getAttributeSmart(element, "test-mode");
enabled = getAttributeSmart(element, "enabled");
mode = getAttributeSmart(element, "mode");
bindIPAddress = getAttributeSmart(element, "bind-ip-address");
channelConfig = getAttributeSmart(element, "channel-config");
channelName = getAttributeSmart(element, "channel-name");
recDir = getAttributeSmart(element, "recovery-dir");
ownName = getAttributeSmart(element, "node-name");
participantsCluster = getAttributeSmart(element, "other-participants");
sWaitConfirmation = getAttributeSmart(element, "wait-confirmation");
// initialize snapshot params;
entryPath = RegistryService.EXO_SERVICES + "/" + SERVICE_NAME + "/" + "replication-snapshot-properties";
entry = registryService.getEntry(sessionProvider, entryPath);
doc = entry.getDocument();
element = doc.getDocumentElement();
sBackupEnabled = getAttributeSmart(element, "snapshot-enabled");
sBackupDir = getAttributeSmart(element, "snapshot-dir");
sDelayTime = getAttributeSmart(element, "delay-time");
// initialize priority params;
entryPath = RegistryService.EXO_SERVICES + "/" + SERVICE_NAME + "/" + "replication-priority-properties";
entry = registryService.getEntry(sessionProvider, entryPath);
doc = entry.getDocument();
element = doc.getDocumentElement();
priprityType = getAttributeSmart(element, "priority-type");
ownValue = getAttributeSmart(element, "node-priority");