Interface RESTInterface
- All Known Implementing Classes:
RESTClient
public interface RESTInterface
The Interface RESTInterface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(DataTransfer dataTransfer) Stops the transmission of the DataTransfer on the mover.void
Deletes the physical file associated to the DataFile on the mover.getECauthToken
(String user) Requests a ecauth token to allow a connection to a ecauth compliant server.getHostReport
(Host host) Requests a report for the specified Host (e.g. traceroute, paping).Requests a report from the Data Mover (e.g. df, sar).Gets the version of the remote ECaccess software (mover).boolean
isValidDataFile
(long dataFileId) Checks if the DataFile exists and is not expired.long
proxyHostIsAlive
(String name) Live message sent from the ProxyHost to the Master server.void
purge
(List<ExistingStorageDirectory> directories) Requests an asynchronous purge of the DataFiles on the data mover which are more than the specified date.put
(DataTransfer transfer, String fileName, long localPosn, long remotePosn) Requests a transmission of the DataTransfer with the target name as specified in fileName.void
sendMessage
(RESTClient.MonitorRequest request) Sends a message to Monitor.void
updateData
(Host host) Requests an update of the data part of the Host on the master (e.g. when the data is updated by the ectrans module).void
Requests an update of the data part of the Host on the master (e.g. when the data is updated by the ectrans module).void
updateDataTransfers
(List<DataTransfer> transfers) Requests an update of the transfers on the master (e.g. status).void
updateLocation
(Host host) Requests an update of the location part of the Host on the master (e.g. when the IP is updated by the ectrans module).
-
Method Details
-
getVersion
-
del
-
close
Stops the transmission of the DataTransfer on the mover.- Parameters:
dataTransfer
- the data transfer- Throws:
Exception
- the exception
-
put
String put(DataTransfer transfer, String fileName, long localPosn, long remotePosn) throws Exception Requests a transmission of the DataTransfer with the target name as specified in fileName. Return the name of the DataMover used for the transmission.- Parameters:
transfer
- the transferfileName
- the file namelocalPosn
- the local posnremotePosn
- the remote posn- Returns:
- the string
- Throws:
Exception
- the exception
-
purge
Requests an asynchronous purge of the DataFiles on the data mover which are more than the specified date.- Parameters:
directories
- the directories- Throws:
Exception
- the exception
-
getHostReport
-
getMoverReport
-
getECauthToken
Requests a ecauth token to allow a connection to a ecauth compliant server.- Parameters:
user
- the user- Returns:
- the ecauth token
- Throws:
Exception
- the exception
-
proxyHostIsAlive
-
updateDataRequest
Requests an update of the data part of the Host on the master (e.g. when the data is updated by the ectrans module).- Parameters:
request
- the request- Throws:
Exception
- the exception
-
updateData
-
updateLocation
-
updateDataTransfers
Requests an update of the transfers on the master (e.g. status).- Parameters:
transfers
- the transfers- Throws:
Exception
- the exception
-
sendMessage
Sends a message to Monitor.- Parameters:
request
- the request- Throws:
Exception
- the exception
-
isValidDataFile
-