Interface MoverInterface
- All Superinterfaces:
ClientInterface
,Remote
- All Known Implementing Classes:
MoverServer
The Interface MoverInterface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(long ticket) Check.boolean
close
(DataTransfer transfer) Close.void
Close all incoming connections.boolean
Close incoming connection.boolean
Del.void
del
(DataTransfer transfer, String fileName) Del.boolean
Del.void
Del.Download.Execute.Filter.Gets the.Gets the.Gets the.Gets the ECproxy plugging listen address and port.getHostReport
(Host proxyHost, Host host) Gets the host report.String[]
Gets the incoming connection ids.Gets the incoming connections.getMoverReport
(Host proxyHost) Gets the mover report.int
Get the number of client connected to the MQTT broker.Gets the report.Gets the report.listAsByteArray
(Host host, String directory, String pattern, boolean synchronous) List2.String[]
listAsStringArray
(Host host, String source, String pattern) List.void
Mkdir.void
Move.void
publishToMQTTBroker
(String topic, int qos, long expiryInterval, String contentType, String clientId, String payload, boolean retain) Publish a notification to the MQTT service.void
purge
(Host proxyHost, List<ExistingStorageDirectory> directories) Purge.void
purge
(List<ExistingStorageDirectory> directories) Purge.put
(Host[] hostsForSource, DataTransfer transfer, String fileName, long localPosn, long remotePosn) Puts the.Puts the.void
removeFromMQTTBroker
(String topic) Remove a retained notification from the MQTT broker.Replicate.void
Rmdir.void
shutdown
(boolean graceful, boolean restart) Shutdown.long
size
(DataTransfer transfer, String fileName) Size.long
Size.Methods inherited from interface ecmwf.common.ecaccess.ClientInterface
getPassword, getRoot, getService
-
Method Details
-
size
Size.- Parameters:
transfer
- the transferfileName
- the file name- Returns:
- the long
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
del
Del.- Parameters:
transfer
- the transferfileName
- the file name- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
del
Del.- Parameters:
proxyHost
- the proxy hostdataFile
- the data file- Returns:
- true, if successful
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
purge
Purge.- Parameters:
directories
- the directories- Throws:
RemoteException
- the remote exception
-
purge
Purge.- Parameters:
proxyHost
- the proxy hostdirectories
- the directories- Throws:
RemoteException
- the remote exception
-
put
DataTransfer put(Host[] hostsForSource, DataTransfer transfer, String fileName, long localPosn, long remotePosn) throws ECtransException, SourceNotAvailableException, IOException Puts the.- Parameters:
hostsForSource
- the hosts for sourcetransfer
- the transferfileName
- the file namelocalPosn
- the local posnremotePosn
- the remote posn- Returns:
- the data transfer
- Throws:
ECtransException
- the ectrans exceptionSourceNotAvailableException
- the source not available exceptionIOException
- Signals that an I/O exception has occurred.
-
put
ProxySocket put(Host host, String target, long remotePosn, long size) throws ECtransException, IOException Puts the.- Parameters:
host
- the hosttarget
- the targetremotePosn
- the remote posnsize
- the size- Returns:
- the proxy socket
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
get
ProxySocket get(Host host, String source, long remotePosn, boolean removeOriginal) throws ECtransException, IOException Gets the.- Parameters:
host
- the hostsource
- the sourceremotePosn
- the remote posnremoveOriginal
- the remove original- Returns:
- the proxy socket
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
get
ProxySocket get(DataFile dataFile, Host hostForSource, long remotePosn) throws SourceNotAvailableException, IOException Gets the.- Parameters:
dataFile
- the data filehostForSource
- the host for sourceremotePosn
- the remote posn- Returns:
- the proxy socket
- Throws:
SourceNotAvailableException
- the source not available exceptionIOException
- Signals that an I/O exception has occurred.
-
get
ProxySocket get(DataFile dataFile, Host[] hostForSource, long remotePosn, long length) throws SourceNotAvailableException, IOException Gets the.- Parameters:
dataFile
- the data filehostForSource
- the host for sourceremotePosn
- the remote posnlength
- the length- Returns:
- the proxy socket
- Throws:
SourceNotAvailableException
- the source not available exceptionIOException
- Signals that an I/O exception has occurred.
-
size
Size.- Parameters:
host
- the hostsource
- the source- Returns:
- the long
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
del
Del.- Parameters:
host
- the hostsource
- the source- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
mkdir
Mkdir.- Parameters:
host
- the hostdir
- the dir- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
rmdir
Rmdir.- Parameters:
host
- the hostdir
- the dir- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
listAsStringArray
String[] listAsStringArray(Host host, String source, String pattern) throws ECtransException, IOException List.- Parameters:
host
- the hostsource
- the sourcepattern
- the pattern- Returns:
- the string[]
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
listAsByteArray
RemoteInputStream listAsByteArray(Host host, String directory, String pattern, boolean synchronous) throws ECtransException, IOException List2.- Parameters:
host
- the hostdirectory
- the directorypattern
- the patternsynchronous
- the synchronous- Returns:
- the remote input stream
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
execute
Execute.- Parameters:
script
- the script- Returns:
- the remote input stream
- Throws:
ScriptException
- the script exceptionIOException
- Signals that an I/O exception has occurred.
-
move
Move.- Parameters:
host
- the hostsource
- the sourcetarget
- the target- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
close
Close.- Parameters:
transfer
- the transfer- Returns:
- true, if successful
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
replicate
DataFile replicate(DataFile dataFile, Host targetHost, Host[] hostsForSource) throws ECtransException, SourceNotAvailableException, IOException Replicate.- Parameters:
dataFile
- the data filetargetHost
- the target hosthostsForSource
- the hosts for source- Returns:
- the data file
- Throws:
ECtransException
- the ectrans exceptionSourceNotAvailableException
- the source not available exceptionIOException
- Signals that an I/O exception has occurred.
-
download
DataFile download(DataFile dataFile, Host hostForSource) throws SourceNotAvailableException, IOException Download.- Parameters:
dataFile
- the data filehostForSource
- the host for source- Returns:
- the data file
- Throws:
SourceNotAvailableException
- the source not available exceptionIOException
- Signals that an I/O exception has occurred.
-
filter
Filter.- Parameters:
dataFile
- the data fileremove
- the remove- Returns:
- the data file
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
del
Del.- Parameters:
dataFile
- the data file- Returns:
- true, if successful
- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
check
Check.- Parameters:
ticket
- the ticket- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getMoverReport
Gets the mover report.- Parameters:
proxyHost
- the proxy host- Returns:
- the mover report
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getHostReport
Gets the host report.- Parameters:
proxyHost
- the proxy hosthost
- the host- Returns:
- the host report
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getReport
Gets the report.- Returns:
- the report
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getReport
Gets the report.- Parameters:
host
- the host- Returns:
- the report
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getIncomingConnectionIds
Gets the incoming connection ids.- Returns:
- the incoming connection ids
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getIncomingConnections
Gets the incoming connections.- Returns:
- the incoming connections
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
closeIncomingConnection
Close incoming connection.- Parameters:
id
- the id- Returns:
- true, if successful
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
closeAllIncomingConnections
Close all incoming connections.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
publishToMQTTBroker
void publishToMQTTBroker(String topic, int qos, long expiryInterval, String contentType, String clientId, String payload, boolean retain) throws RemoteException Publish a notification to the MQTT service.- Parameters:
topic
- the topicqos
- the qosexpiryInterval
- the expiry intervalcontentType
- the content typeclientId
- the client idpayload
- the payloadretain
- the retain- Throws:
RemoteException
- the remote exception
-
removeFromMQTTBroker
Remove a retained notification from the MQTT broker.- Parameters:
topic
- the topic- Throws:
RemoteException
- the remote exception
-
getMQTTClientsCount
Get the number of client connected to the MQTT broker.- Returns:
- the MQTT clients count
- Throws:
RemoteException
- the remote exception
-
shutdown
Shutdown.- Parameters:
graceful
- the gracefulrestart
- the restart- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getECproxyAddressAndPort
Gets the ECproxy plugging listen address and port. This is used by the Master Server to update the "TransferServer" entry in the database when the Mover subscribe. This address and port are used when the Master Server send the address of the allocated Mover to the ecpds command.- Returns:
- the ECproxyPlugin address and port
- Throws:
RemoteException
- the remote exception
-