Revision 376d0ebf src/gr/ebs/gss/mbeans/Solr.java
b/src/gr/ebs/gss/mbeans/Solr.java | ||
---|---|---|
37 | 37 |
public class Solr extends ServiceMBeanSupport implements SolrMBean { |
38 | 38 |
|
39 | 39 |
@Override |
40 |
public void rebuildIndex() {
|
|
40 |
public String rebuildIndex() {
|
|
41 | 41 |
try { |
42 | 42 |
InitialContext ctx = new InitialContext(); |
43 | 43 |
Object ref = ctx.lookup(getConfiguration().getString("externalApiPath")); |
44 | 44 |
ExternalAPI service = (ExternalAPI) PortableRemoteObject.narrow(ref, ExternalAPI.class); |
45 |
service.rebuildSolrIndex(); |
|
45 |
return service.rebuildSolrIndex();
|
|
46 | 46 |
} catch (ClassCastException e) { |
47 | 47 |
throw new JMRuntimeException(e.getMessage()); |
48 | 48 |
} catch (NamingException e) { |
Also available in: Unified diff