You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2014/02/27 15:09:41 UTC

svn commit: r1572585 - in /stanbol/trunk: ./ commons/ commons/solr/ commons/solr/core/ commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java

Author: rwesten
Date: Thu Feb 27 14:09:41 2014
New Revision: 1572585

URL: http://svn.apache.org/r1572585
Log:
merged impl for STANBOL-1289 to trunk

Modified:
    stanbol/trunk/   (props changed)
    stanbol/trunk/commons/   (props changed)
    stanbol/trunk/commons/solr/   (props changed)
    stanbol/trunk/commons/solr/core/   (props changed)
    stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java

Propchange: stanbol/trunk/
------------------------------------------------------------------------------
  Merged /stanbol/branches/release-0.12:r1572583

Propchange: stanbol/trunk/commons/
------------------------------------------------------------------------------
  Merged /stanbol/branches/release-0.12/commons:r1572583

Propchange: stanbol/trunk/commons/solr/
------------------------------------------------------------------------------
  Merged /stanbol/branches/release-0.12/commons/solr:r1572583

Propchange: stanbol/trunk/commons/solr/core/
------------------------------------------------------------------------------
  Merged /stanbol/branches/release-0.12/commons/solr/core:r1572583

Modified: stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java?rev=1572585&r1=1572584&r2=1572585&view=diff
==============================================================================
--- stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java (original)
+++ stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerAdapter.java Thu Feb 27 14:09:41 2014
@@ -583,12 +583,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}