public interface Client extends ConfigAware, java.io.Closeable
Modifier and Type | Method and Description |
---|---|
<C> C |
adapt(java.lang.Class<C> type) |
void |
close() |
java.lang.String |
getApiVersion() |
java.net.URL |
getMasterUrl() |
java.lang.String |
getNamespace() |
<C> java.lang.Boolean |
isAdaptable(java.lang.Class<C> type)
Checks if the client can be adapted to an other client type.
|
RootPaths |
rootPaths() |
boolean |
supportsApiPath(java.lang.String path)
Returns true if this cluster supports the given API path or API Group ID
|
getConfiguration
<C> java.lang.Boolean isAdaptable(java.lang.Class<C> type)
C
- The target client type.type
- The target client class.ExtensionAdapter
is found.<C> C adapt(java.lang.Class<C> type)
java.net.URL getMasterUrl()
java.lang.String getApiVersion()
java.lang.String getNamespace()
RootPaths rootPaths()
boolean supportsApiPath(java.lang.String path)
path
- Path as stringvoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
Copyright © 2015-2019 Red Hat. All Rights Reserved.