Package org.hpccsystems.ws.client
Class HPCCWsDFUXRefClient
- java.lang.Object
-
- java.util.Observable
-
- org.hpccsystems.ws.client.utils.DataSingleton
-
- org.hpccsystems.ws.client.BaseHPCCWsClient
-
- org.hpccsystems.ws.client.HPCCWsDFUXRefClient
-
public class HPCCWsDFUXRefClient extends BaseHPCCWsClient
Facilitates XRef Logical File System actions on target HPCC instance. Actions include building XRef, listing lost/orphaned/unused files, and more.
-
-
Field Summary
Fields Modifier and Type Field Description static String
WSDFUXREFURI
ConstantWSDFUXREFURI="/WsDFUXRef"
-
Fields inherited from class org.hpccsystems.ws.client.BaseHPCCWsClient
DEAFULTECLWATCHPORT, DEFAULTECLWATCHTLSPORT, initErrMessage, stub, targetESPInterfaceVer, targetHPCCBuildVersion, verbose, wsconn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HPCCWsDFUXRefClient(Connection baseConnection)
Instantiates a new HPCC WSDFUXREF client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action(String cluster, String action, String type, EspStringArray xrefFilesArray)
Should provide either action or typeString
build(String cluster)
build.String
buildCancel()
buildCancel.void
cleanDirectories(String cluster)
cleanDirectories.ArrayOfXRefDirectoryWrapper
directories(String cluster)
directories.ArrayOfXRefFileWrapper
foundFiles(String cluster)
foundFiles.static HPCCWsDFUXRefClient
get(String protocol, String targetHost, String targetPort, String user, String pass)
Gets the.static HPCCWsDFUXRefClient
get(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)
Gets the.static HPCCWsDFUXRefClient
get(Connection connection)
Gets the.org.apache.axis2.client.Stub
getDefaultStub()
Gets the default stub.static double
getMinVerSupported()
getMinVerSupported.String
getServiceURI()
Gets the service URI.static int
getServiceWSDLPort()
Gets the service WSDL port.static String
getServiceWSDLURL()
Gets the service WSDLURL.protected void
initWsDFUXRefClientStub(Connection conn)
Initializes the service's underlying stub Should only be used by constructors.boolean
isRuntimeVersionSupported()
isRuntimeVersionSupported.ArrayOfXRefNodeWrapper
list()
list.ArrayOfXRefFileWrapper
lostFiles(String cluster)
lostFiles.ArrayOfXRefMessageWrapper
messages(String cluster)
messages.ArrayOfXRefFileWrapper
orphanedFiles(String cluster)
orphanedFiles.boolean
ping()
Ping.DFUXRefUnusedFilesResponseWrapper
unusedFiles(String processCluster, Boolean getFileDetails, Boolean checkPackageMaps)
unusedFiles.-
Methods inherited from class org.hpccsystems.ws.client.BaseHPCCWsClient
compatibilityCheck, compatibilityCheck, equals, fastRefresh, fullRefresh, getConnectionURL, getInitError, getServiceVersion, getServiceVersion, getServiceWSDLPort, getServiceWSDLURL, getStubConnectionTO, getTargetESPInterfaceVersion, getVerbose, handleECLExceptions, handleECLExceptions, handleEspExceptions, handleEspExceptions, handleEspSoapFaults, handleEspSoapFaults, hashCode, hasInitError, isComplete, loadESPRuntimeInterfaceVer, setActiveConnectionInfo, setClientAuth, setStubConnectionTO, setStubOptions, 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
-
WSDFUXREFURI
public static final String WSDFUXREFURI
ConstantWSDFUXREFURI="/WsDFUXRef"
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HPCCWsDFUXRefClient
protected HPCCWsDFUXRefClient(Connection baseConnection)
Instantiates a new HPCC WSDFUXREF client.- Parameters:
baseConnection
- the base connection
-
-
Method Detail
-
getMinVerSupported
public static double getMinVerSupported()
getMinVerSupported.
- Returns:
- a double.
-
isRuntimeVersionSupported
public boolean isRuntimeVersionSupported()
isRuntimeVersionSupported.
- Returns:
- a boolean.
-
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 HPCCWsDFUXRefClient get(Connection connection)
Gets the.- Parameters:
connection
- the connection- Returns:
- the HPCC WSDFUXREF client
-
get
public static HPCCWsDFUXRefClient get(String protocol, String targetHost, String targetPort, String user, String pass)
Gets the.- Parameters:
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the pass- Returns:
- the HPCC WSDFUXREF client
-
get
public static HPCCWsDFUXRefClient get(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)
Gets the.- Parameters:
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the passtimeout
- the timeout- Returns:
- the HPCC WSDFUXREF client
-
initWsDFUXRefClientStub
protected void initWsDFUXRefClientStub(Connection conn)
Initializes the service's underlying stub Should only be used by constructors.- Parameters:
conn
- -- All connection settings included
-
unusedFiles
public DFUXRefUnusedFilesResponseWrapper unusedFiles(String processCluster, Boolean getFileDetails, Boolean checkPackageMaps) throws Exception
unusedFiles.
- Parameters:
processCluster
- aString
object.getFileDetails
- aBoolean
object.checkPackageMaps
- aBoolean
object.- Returns:
- a
DFUXRefUnusedFilesResponseWrapper
object. - Throws:
Exception
-
orphanedFiles
public ArrayOfXRefFileWrapper orphanedFiles(String cluster) throws Exception
orphanedFiles.
- Parameters:
cluster
- aString
object.- Returns:
- a
ArrayOfXRefFileWrapper
object. - Throws:
Exception
-
lostFiles
public ArrayOfXRefFileWrapper lostFiles(String cluster) throws Exception
lostFiles.
- Parameters:
cluster
- aString
object.- Returns:
- a
ArrayOfXRefFileWrapper
object. - Throws:
Exception
-
directories
public ArrayOfXRefDirectoryWrapper directories(String cluster) throws Exception
directories.
- Parameters:
cluster
- aString
object.- Returns:
- a
ArrayOfXRefDirectoryWrapper
object. - Throws:
Exception
- if any.
-
action
public String action(String cluster, String action, String type, EspStringArray xrefFilesArray) throws Exception
Should provide either action or type- Parameters:
cluster
- aString
object.action
- "Attach", "Delete", "DeleteLogical"type
- "Found", "Lost", "Orphan"xrefFilesArray
- aEspStringArray
object.- Returns:
- a
String
object. - Throws:
Exception
-
foundFiles
public ArrayOfXRefFileWrapper foundFiles(String cluster) throws Exception
foundFiles.
- Parameters:
cluster
- aString
object.- Returns:
- a
ArrayOfXRefFileWrapper
object. - Throws:
Exception
-
messages
public ArrayOfXRefMessageWrapper messages(String cluster) throws Exception
messages.
- Parameters:
cluster
- aString
object.- Returns:
- a
ArrayOfXRefMessageWrapper
object. - Throws:
Exception
-
list
public ArrayOfXRefNodeWrapper list() throws Exception
list.
- Returns:
- a
ArrayOfXRefNodeWrapper
object. - Throws:
Exception
-
-