SOLR-8995: Use lambdas in CoreAdminHandler

This commit is contained in:
Noble Paul 2016-07-21 20:26:14 +05:30
parent d4cb52fb20
commit 941dff9bcd
2 changed files with 742 additions and 785 deletions

View File

@ -362,7 +362,7 @@ public class CoreAdminHandler extends RequestHandlerBase implements PermissionNa
}
void call() throws Exception {
op.call(this);
op.execute(this);
}
}
@ -374,7 +374,10 @@ public class CoreAdminHandler extends RequestHandlerBase implements PermissionNa
/**
* used by the INVOKE action of core admin handler
*/
public static interface Invocable {
public Map<String, Object> invoke(SolrQueryRequest req);
public interface Invocable {
Map<String, Object> invoke(SolrQueryRequest req);
}
interface CoreAdminOp {
void execute(CallInfo it) throws Exception;
}
}