- /*
- * UTILITIES
- */
- public String getNodePath() {
- return SlcJcrConstants.VM_AGENT_FACTORY_PATH + '/' + getAgentNodeName();
+ if (agentFactoryPath
+ .equals(SlcJcrConstants.VM_AGENT_FACTORY_PATH))
+ throw new SlcException("Unsupported hostname "
+ + localhost.getCanonicalHostName());
+ } else {// local
+ agentFactoryPath = SlcJcrConstants.VM_AGENT_FACTORY_PATH;
+ }
+ return agentFactoryPath;
+ } catch (UnknownHostException e) {
+ throw new SlcException("Cannot find agent factory base path", e);
+ }