Search in sources :

Example 1 with ZuliaServiceBlockingStub

use of io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub in project zuliasearch by zuliaio.

the class GetNodes method execute.

@Override
public GetNodesResult execute(ZuliaConnection zuliaConnection) {
    ZuliaServiceBlockingStub service = zuliaConnection.getService();
    GetNodesResponse getMembersResponse = service.getNodes(getRequest());
    return new GetNodesResult(getMembersResponse);
}
Also used : ZuliaServiceBlockingStub(io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub) GetNodesResult(io.zulia.client.result.GetNodesResult) GetNodesResponse(io.zulia.message.ZuliaServiceOuterClass.GetNodesResponse)

Example 2 with ZuliaServiceBlockingStub

use of io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub in project zuliasearch by zuliaio.

the class GetNumberOfDocs method execute.

@Override
public GetNumberOfDocsResult execute(ZuliaConnection zuliaConnection) {
    ZuliaServiceBlockingStub service = zuliaConnection.getService();
    GetNumberOfDocsResponse getNumberOfDocsResponse = service.getNumberOfDocs(getRequest());
    return new GetNumberOfDocsResult(getNumberOfDocsResponse);
}
Also used : ZuliaServiceBlockingStub(io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub) GetNumberOfDocsResult(io.zulia.client.result.GetNumberOfDocsResult) GetNumberOfDocsResponse(io.zulia.message.ZuliaServiceOuterClass.GetNumberOfDocsResponse)

Example 3 with ZuliaServiceBlockingStub

use of io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub in project zuliasearch by zuliaio.

the class OptimizeIndex method execute.

@Override
public OptimizeIndexResult execute(ZuliaConnection zuliaConnection) {
    ZuliaServiceBlockingStub service = zuliaConnection.getService();
    OptimizeResponse optimizeResponse = service.optimize(getRequest());
    return new OptimizeIndexResult(optimizeResponse);
}
Also used : ZuliaServiceBlockingStub(io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub) OptimizeIndexResult(io.zulia.client.result.OptimizeIndexResult) OptimizeResponse(io.zulia.message.ZuliaServiceOuterClass.OptimizeResponse)

Example 4 with ZuliaServiceBlockingStub

use of io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub in project zuliasearch by zuliaio.

the class DeleteIndex method execute.

@Override
public DeleteIndexResult execute(ZuliaConnection zuliaConnection) {
    ZuliaServiceBlockingStub service = zuliaConnection.getService();
    DeleteIndexResponse indexDeleteResponse = service.deleteIndex(getRequest());
    return new DeleteIndexResult(indexDeleteResponse);
}
Also used : ZuliaServiceBlockingStub(io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub) DeleteIndexResponse(io.zulia.message.ZuliaServiceOuterClass.DeleteIndexResponse) DeleteIndexResult(io.zulia.client.result.DeleteIndexResult)

Example 5 with ZuliaServiceBlockingStub

use of io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub in project zuliasearch by zuliaio.

the class Fetch method execute.

@Override
public FetchResult execute(ZuliaConnection zuliaConnection) {
    ZuliaServiceBlockingStub service = zuliaConnection.getService();
    FetchResponse fetchResponse = service.fetch(getRequest());
    return new FetchResult(fetchResponse);
}
Also used : ZuliaServiceBlockingStub(io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub) FetchResult(io.zulia.client.result.FetchResult) FetchResponse(io.zulia.message.ZuliaServiceOuterClass.FetchResponse)

Aggregations

ZuliaServiceBlockingStub (io.zulia.message.ZuliaServiceGrpc.ZuliaServiceBlockingStub)16 ZuliaServiceOuterClass (io.zulia.message.ZuliaServiceOuterClass)2 DeleteResponse (io.zulia.message.ZuliaServiceOuterClass.DeleteResponse)2 FetchResponse (io.zulia.message.ZuliaServiceOuterClass.FetchResponse)2 ClientIndexConfig (io.zulia.client.config.ClientIndexConfig)1 BatchDeleteResult (io.zulia.client.result.BatchDeleteResult)1 BatchFetchResult (io.zulia.client.result.BatchFetchResult)1 CreateIndexAliasResult (io.zulia.client.result.CreateIndexAliasResult)1 CreateIndexResult (io.zulia.client.result.CreateIndexResult)1 DeleteIndexAliasResult (io.zulia.client.result.DeleteIndexAliasResult)1 DeleteIndexResult (io.zulia.client.result.DeleteIndexResult)1 DeleteResult (io.zulia.client.result.DeleteResult)1 FetchResult (io.zulia.client.result.FetchResult)1 GetFieldsResult (io.zulia.client.result.GetFieldsResult)1 GetIndexConfigResult (io.zulia.client.result.GetIndexConfigResult)1 GetNodesResult (io.zulia.client.result.GetNodesResult)1 GetNumberOfDocsResult (io.zulia.client.result.GetNumberOfDocsResult)1 GetTermsResult (io.zulia.client.result.GetTermsResult)1 OptimizeIndexResult (io.zulia.client.result.OptimizeIndexResult)1 ReindexResult (io.zulia.client.result.ReindexResult)1