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. NOTE: Many WsDFUXRef methods are not supported on Containerized HPCC deployments. The following methods are not supported in containerized HPCC: DFUXRefList: list all XRefNodes. Each Thor cluster or Roxie cluster in environment xml is an XRefNode. SuperFiles is an XRefNode. DFUXRefBuild: add an XRefNode to a job queue where XRef information will be generated for the XRefNode. DFUXRefLostFiles: list lost files in an XRefNode. DFUXRefFoundFiles: list found files in an XRefNode. DFUXRefOrphanFiles: list orphan files in an XRefNode. DFUXRefMessages: report messages ** in an XRefNode. DFUXRefDirectories: report directories in an XRefNode. DFUXRefArrayAction: take an action (attach, delete, etc.) on given XRef files. DFUXRefBuildCancel: dequeue all the jobs. DFUXRefCleanDirectories: remove empty directories in ** an XRefNode DFUXRefUnusedFiles: list unused files in a roxie XRefNode.
-
-
Field Summary
Fields Modifier and Type Field Description static StringWSDFUXREFURIConstantWSDFUXREFURI="/WsDFUXRef"-
Fields inherited from class org.hpccsystems.ws.client.BaseHPCCWsClient
DEAFULTECLWATCHPORT, DEFAULTECLWATCHTLSPORT, initErrMessage, stub, targetESPInterfaceVer, targetHPCCBuildVersion, targetsContainerizedHPCC, verbose, wsconn
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHPCCWsDFUXRefClient(Connection baseConnection)Instantiates a new HPCC WSDFUXREF client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction(String cluster, String action, String type, org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray xrefFilesArray)Should provide either action or typeStringbuild(String cluster)build.StringbuildCancel()buildCancel.voidcleanDirectories(String cluster)cleanDirectories.ArrayOfXRefDirectoryWrapperdirectories(String cluster)directories.ArrayOfXRefFileWrapperfoundFiles(String cluster)foundFiles.static HPCCWsDFUXRefClientget(String protocol, String targetHost, String targetPort, String user, String pass)Gets the.static HPCCWsDFUXRefClientget(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)Gets the.static HPCCWsDFUXRefClientget(Connection connection)Gets the.org.apache.axis2.client.StubgetDefaultStub()Gets the default stub.static doublegetMinVerSupported()getMinVerSupported.StringgetServiceURI()Gets the service URI.static intgetServiceWSDLPort()Gets the service WSDL port.static StringgetServiceWSDLURL()Gets the service WSDLURL.protected voidinitWsDFUXRefClientStub(Connection conn)Initializes the service's underlying stub Should only be used by constructors.booleanisRuntimeVersionSupported()isRuntimeVersionSupported.ArrayOfXRefNodeWrapperlist()list.ArrayOfXRefFileWrapperlostFiles(String cluster)lostFiles.ArrayOfXRefMessageWrappermessages(String cluster)messages.ArrayOfXRefFileWrapperorphanedFiles(String cluster)orphanedFiles.booleanping()Ping.org.hpccsystems.ws.client.wrappers.gen.wsdfuxref.DFUXRefUnusedFilesResponseWrapperunusedFiles(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, 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
-
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:
getServiceURIin 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.AxisFaultGets the default stub.- Specified by:
getDefaultStubin 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 org.hpccsystems.ws.client.wrappers.gen.wsdfuxref.DFUXRefUnusedFilesResponseWrapper unusedFiles(String processCluster, Boolean getFileDetails, Boolean checkPackageMaps) throws Exception
unusedFiles.
-
orphanedFiles
public ArrayOfXRefFileWrapper orphanedFiles(String cluster) throws Exception
orphanedFiles.
- Parameters:
cluster- aStringobject.- Returns:
- a
ArrayOfXRefFileWrapperobject. - Throws:
Exception- aExceptionobject.
-
lostFiles
public ArrayOfXRefFileWrapper lostFiles(String cluster) throws Exception
lostFiles.
- Parameters:
cluster- aStringobject.- Returns:
- a
ArrayOfXRefFileWrapperobject. - Throws:
Exception- aExceptionobject.
-
directories
public ArrayOfXRefDirectoryWrapper directories(String cluster) throws Exception
directories.
- Parameters:
cluster- aStringobject.- Returns:
- a
ArrayOfXRefDirectoryWrapperobject. - Throws:
Exception- if any.
-
action
public String action(String cluster, String action, String type, org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray xrefFilesArray) throws Exception
Should provide either action or type
-
foundFiles
public ArrayOfXRefFileWrapper foundFiles(String cluster) throws Exception
foundFiles.
- Parameters:
cluster- aStringobject.- Returns:
- a
ArrayOfXRefFileWrapperobject. - Throws:
Exception- aExceptionobject.
-
messages
public ArrayOfXRefMessageWrapper messages(String cluster) throws Exception
messages.
- Parameters:
cluster- aStringobject.- Returns:
- a
ArrayOfXRefMessageWrapperobject. - Throws:
Exception- aExceptionobject.
-
list
public ArrayOfXRefNodeWrapper list() throws Exception
list.
- Returns:
- a
ArrayOfXRefNodeWrapperobject. - Throws:
Exception- aExceptionobject.
-
-