Author: rwesten
Date: Thu Feb 27 14:08:29 2014
New Revision: 1572583

URL: http://svn.apache.org/r1572583
Log:
impl for STANBOL-1289 for 0.12.1

Modified:
    
stanbol/branches/release-0.12/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java

Modified: 
stanbol/branches/release-0.12/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java?rev=1572583&r1=1572582&r2=1572583&view=diff
==============================================================================
--- 
stanbol/branches/release-0.12/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java
 (original)
+++ 
stanbol/branches/release-0.12/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java
 Thu Feb 27 14:08:29 2014
@@ -573,12 +573,24 @@ public class SolrServerAdapter {
         CoreRegistration reg = registrations.get(name);
         return reg != null && reg.getServiceReference() != null;
     }
-
+    /**
+     * The Name of the registered {@link CoreContainer}
+     * @return
+     */
     public String getServerName(){
         Object value = 
serverRegistration.getReference().getProperty(PROPERTY_SERVER_NAME);
         return value == null ? null : value.toString();
     }
     /**
+     * The Directory of the registered {@link CoreContainer}
+     * @return
+     */
+    public String getServerDir(){
+        Object value = 
serverRegistration.getReference().getProperty(PROPERTY_SERVER_DIR);
+        return value == null ? null : value.toString();
+        
+    }
+    /**
      * Getter for the {@link ServiceReference} for the {@link CoreContainer}
      * managed by this instance
      * @return the {@link ServiceReference}


Reply via email to