| Constructor and Description |
|---|
PodMetricsReader(io.fabric8.kubernetes.client.KubernetesClient kubernetes,
String pod,
String integration,
String integrationId,
String version,
RawMetricsHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
getRoutes(String camelContextName,
String filter) |
static boolean |
isEmpty(Object value)
Tests whether the value is null or an empty string.
|
static boolean |
isNotEmpty(Object value)
Tests whether the value is not null, an empty string or an empty collection/map.
|
static String |
removeLeadingAndEndingQuotes(String s)
Removes all leading and ending quotes (single and double) from the string
|
void |
run() |
public PodMetricsReader(io.fabric8.kubernetes.client.KubernetesClient kubernetes,
String pod,
String integration,
String integrationId,
String version,
RawMetricsHandler handler)
public List<Map<String,String>> getRoutes(String camelContextName, String filter) throws Exception
Exceptionpublic static String removeLeadingAndEndingQuotes(String s)
s - the stringpublic static boolean isEmpty(Object value)
value - the value, if its a String it will be tested for text length as wellpublic static boolean isNotEmpty(Object value)
value - the value, if its a String it will be tested for text length as wellCopyright © 2016–2019 Red Hat. All rights reserved.