Class MetadataQueryEsDAO
- java.lang.Object
-
- org.apache.skywalking.oap.server.core.storage.AbstractDAO<ElasticSearchClient>
-
- org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.EsDAO
-
- org.apache.skywalking.oap.server.storage.plugin.elasticsearch.query.MetadataQueryEsDAO
-
- All Implemented Interfaces:
DAO,IMetadataQueryDAO,org.apache.skywalking.oap.server.library.module.Service
public class MetadataQueryEsDAO extends EsDAO implements IMetadataQueryDAO
-
-
Field Summary
-
Fields inherited from class org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.EsDAO
SCROLL_CONTEXT_RETENTION
-
-
Constructor Summary
Constructors Constructor Description MetadataQueryEsDAO(ElasticSearchClient client, StorageModuleElasticsearchConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Endpoint>findEndpoint(String keyword, String serviceId, int limit)ServiceInstancegetInstance(String instanceId)ProcessgetProcess(String processId)longgetProcessCount(String instanceId)longgetProcessCount(String serviceId, ProfilingSupportStatus profilingSupportStatus, long lastPingStartTimeBucket, long lastPingEndTimeBucket)List<Service>getServices(String serviceId)List<ServiceInstance>listInstances(Duration duration, String serviceId)List<Process>listProcesses(String agentId)List<Process>listProcesses(String serviceId, ProfilingSupportStatus supportStatus, long lastPingStartTimeBucket, long lastPingEndTimeBucket)List<Process>listProcesses(String serviceInstanceId, Duration duration, boolean includeVirtual)List<Service>listServices(String layer, String group)-
Methods inherited from class org.apache.skywalking.oap.server.core.storage.AbstractDAO
getClient
-
-
-
-
Constructor Detail
-
MetadataQueryEsDAO
public MetadataQueryEsDAO(ElasticSearchClient client, StorageModuleElasticsearchConfig config)
-
-
Method Detail
-
listServices
public List<Service> listServices(String layer, String group) throws IOException
- Specified by:
listServicesin interfaceIMetadataQueryDAO- Throws:
IOException
-
getServices
public List<Service> getServices(String serviceId) throws IOException
- Specified by:
getServicesin interfaceIMetadataQueryDAO- Throws:
IOException
-
listInstances
public List<ServiceInstance> listInstances(Duration duration, String serviceId) throws IOException
- Specified by:
listInstancesin interfaceIMetadataQueryDAO- Throws:
IOException
-
getInstance
public ServiceInstance getInstance(String instanceId) throws IOException
- Specified by:
getInstancein interfaceIMetadataQueryDAO- Throws:
IOException
-
findEndpoint
public List<Endpoint> findEndpoint(String keyword, String serviceId, int limit) throws IOException
- Specified by:
findEndpointin interfaceIMetadataQueryDAO- Throws:
IOException
-
listProcesses
public List<Process> listProcesses(String serviceId, ProfilingSupportStatus supportStatus, long lastPingStartTimeBucket, long lastPingEndTimeBucket) throws IOException
- Specified by:
listProcessesin interfaceIMetadataQueryDAO- Throws:
IOException
-
listProcesses
public List<Process> listProcesses(String serviceInstanceId, Duration duration, boolean includeVirtual) throws IOException
- Specified by:
listProcessesin interfaceIMetadataQueryDAO- Throws:
IOException
-
listProcesses
public List<Process> listProcesses(String agentId) throws IOException
- Specified by:
listProcessesin interfaceIMetadataQueryDAO- Throws:
IOException
-
getProcessCount
public long getProcessCount(String serviceId, ProfilingSupportStatus profilingSupportStatus, long lastPingStartTimeBucket, long lastPingEndTimeBucket) throws IOException
- Specified by:
getProcessCountin interfaceIMetadataQueryDAO- Throws:
IOException
-
getProcessCount
public long getProcessCount(String instanceId) throws IOException
- Specified by:
getProcessCountin interfaceIMetadataQueryDAO- Throws:
IOException
-
getProcess
public Process getProcess(String processId) throws IOException
- Specified by:
getProcessin interfaceIMetadataQueryDAO- Throws:
IOException
-
-