public class MetadataQueryEsDAO extends EsDAO implements IMetadataQueryDAO
| Constructor and Description |
|---|
MetadataQueryEsDAO(ElasticSearchClient client) |
| Modifier and Type | Method and Description |
|---|---|
List<Service> |
getAllServices(long startTimestamp,
long endTimestamp) |
List<ServiceInstance> |
getServiceInstances(long startTimestamp,
long endTimestamp,
String serviceId) |
int |
numOfConjectural(long startTimestamp,
long endTimestamp,
int nodeTypeValue) |
int |
numOfEndpoint(long startTimestamp,
long endTimestamp) |
int |
numOfService(long startTimestamp,
long endTimestamp) |
List<Endpoint> |
searchEndpoint(String keyword,
String serviceId,
int limit) |
Service |
searchService(String serviceCode) |
List<Service> |
searchServices(long startTimestamp,
long endTimestamp,
String keyword) |
queryBuildgetClientpublic MetadataQueryEsDAO(ElasticSearchClient client)
public int numOfService(long startTimestamp,
long endTimestamp)
throws IOException
numOfService in interface IMetadataQueryDAOIOExceptionpublic int numOfEndpoint(long startTimestamp,
long endTimestamp)
throws IOException
numOfEndpoint in interface IMetadataQueryDAOIOExceptionpublic int numOfConjectural(long startTimestamp,
long endTimestamp,
int nodeTypeValue)
throws IOException
numOfConjectural in interface IMetadataQueryDAOIOExceptionpublic List<Service> getAllServices(long startTimestamp, long endTimestamp) throws IOException
getAllServices in interface IMetadataQueryDAOIOExceptionpublic List<Service> searchServices(long startTimestamp, long endTimestamp, String keyword) throws IOException
searchServices in interface IMetadataQueryDAOIOExceptionpublic Service searchService(String serviceCode) throws IOException
searchService in interface IMetadataQueryDAOIOExceptionpublic List<Endpoint> searchEndpoint(String keyword, String serviceId, int limit) throws IOException
searchEndpoint in interface IMetadataQueryDAOIOExceptionpublic List<ServiceInstance> getServiceInstances(long startTimestamp, long endTimestamp, String serviceId) throws IOException
getServiceInstances in interface IMetadataQueryDAOIOExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.