Package org.hpccsystems.ws.client
Class HPCCWsCloudClient
- java.lang.Object
-
- java.util.Observable
-
- org.hpccsystems.ws.client.utils.DataSingleton
-
- org.hpccsystems.ws.client.BaseHPCCWsClient
-
- org.hpccsystems.ws.client.HPCCWsCloudClient
-
public class HPCCWsCloudClient extends BaseHPCCWsClient
Provides Containerized HPCC cluster information.
-
-
Field Summary
Fields Modifier and Type Field Description static String
WSCLOUDURI
-
Fields inherited from class org.hpccsystems.ws.client.BaseHPCCWsClient
DEAFULTECLWATCHPORT, DEFAULTECLWATCHTLSPORT, initErrMessage, stub, targetESPInterfaceVer, targetHPCCBuildVersion, targetsContainerizedHPCC, verbose, wsconn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HPCCWsCloudClient(Connection baseConnection)
Instantiates a new HPCC WSCloud client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HPCCWsCloudClient
get(String protocol, String targetHost, String targetPort, String user, String pass)
Gets a HPCCWsCloudClient based on user provided connection attributes.static HPCCWsCloudClient
get(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)
Gets a HPCCWsCloudClient based on user provided connection attributes.static HPCCWsCloudClient
get(Connection connection)
Gets a HPCCWsCloudClient based on user provided connection object.org.apache.axis2.client.Stub
getDefaultStub()
Gets the default stub.String
getPods()
getPods.String
getServiceURI()
Gets the service URI.static int
getServiceWSDLPort()
Gets the service WSDL port.static String
getServiceWSDLURL()
Gets the service WSDLURL.protected void
initWsCloudClientStub(Connection conn)
Initializes the service's underlying stub Should only be used by constructors.boolean
ping()
Ping.-
Methods inherited from class org.hpccsystems.ws.client.BaseHPCCWsClient
compatibilityCheck, compatibilityCheck, equals, fastRefresh, fullRefresh, getConnectionURL, getInitError, getServiceVersion, getServiceVersion, getServiceWSDLPort, getServiceWSDLURL, getStubConnectionTO, getTargetESPInterfaceVersion, getTargetHPCCBuildVersion, getVerbose, handleECLExceptions, handleECLExceptions, handleEspExceptions, handleEspExceptions, handleEspSoapFaults, handleEspSoapFaults, hashCode, hasInitError, initBaseWsClient, isComplete, isTargetHPCCContainerized, loadESPRuntimeInterfaceVer, setActiveConnectionInfo, setClientAuth, setStubConnectionTO, setStubOptions, setUpBuildVersionParser, setUpContainerizedParser, setUpversionParser, setVerbose, verifyStub
-
Methods inherited from class org.hpccsystems.ws.client.utils.DataSingleton
monitor
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Field Detail
-
WSCLOUDURI
public static final String WSCLOUDURI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HPCCWsCloudClient
protected HPCCWsCloudClient(Connection baseConnection)
Instantiates a new HPCC WSCloud client.- Parameters:
baseConnection
- the base connection
-
-
Method Detail
-
getServiceURI
public String getServiceURI()
Gets the service URI.- Specified by:
getServiceURI
in classBaseHPCCWsClient
- Returns:
- the service URI
-
getServiceWSDLURL
public static String getServiceWSDLURL()
Gets the service WSDLURL.- Returns:
- the service WSDLURL
-
getServiceWSDLPort
public static int getServiceWSDLPort()
Gets the service WSDL port.- Returns:
- the service WSDL port
-
getDefaultStub
public org.apache.axis2.client.Stub getDefaultStub() throws org.apache.axis2.AxisFault
Gets the default stub.- Specified by:
getDefaultStub
in classBaseHPCCWsClient
- Returns:
- the default stub
- Throws:
org.apache.axis2.AxisFault
- the axis fault
-
get
public static HPCCWsCloudClient get(Connection connection)
Gets a HPCCWsCloudClient based on user provided connection object.- Parameters:
connection
- the connection- Returns:
- the HPCC HPCCWsCloud client
-
get
public static HPCCWsCloudClient get(String protocol, String targetHost, String targetPort, String user, String pass)
Gets a HPCCWsCloudClient based on user provided connection attributes.- Parameters:
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the pass- Returns:
- the HPCC HPCCWsCloudClient
-
get
public static HPCCWsCloudClient get(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)
Gets a HPCCWsCloudClient based on user provided connection attributes.- Parameters:
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the passtimeout
- the timeout- Returns:
- the HPCC HPCCWsCloudClient
-
initWsCloudClientStub
protected void initWsCloudClientStub(Connection conn)
Initializes the service's underlying stub Should only be used by constructors.- Parameters:
conn
- -- All connection settings included
-
getPods
public String getPods() throws Exception
getPods.
- Returns:
- a JSON formatted list of available pods - in raw k8s format.
- Throws:
Exception
- if any.
-
-