Interface MasterInterface
- All Superinterfaces:
ProviderInterface
,Remote
- All Known Implementing Classes:
MasterServer
The Interface MasterInterface.
-
Method Summary
Modifier and TypeMethodDescriptionGets the data file access interface.getDestination
(String name) Gets the destination.getECauthToken
(String user) Gets the ecauth token.getETag
(long dataTransferId) Gets the ETag for a given dataTransferId.getIncomingProfile
(String incomingUser, String incomingPassword, String from) Gets the incoming profile.getIncomingUserHash
(String incomingUser) Return a hash of the specified incoming user (the string is in the form userid:password).byte[]
getS3AuthorizationSignature
(String incomingUser, String prefix, String data, String algorithm) Return a hash of the specified incoming user (the string is in the form userid:password).void
importDestination
(Destination fromDestination, Association[] linkedAssociations, boolean copySharedHost) Import destination from another Master Server.boolean
isValidDataFile
(long dataFileId) Checks if is valid data file.long
proxyHostIsAlive
(String name) Proxy host is alive.void
updateData
(Host host) Update data.void
updateData
(String hostId, String data) Update data.void
updateDataTransfers
(DataTransfer[] transfers) Update data transfers.updateDownloadProgress
(DownloadProgress[] progress) Update download progress.void
updateIncomingConnectionIds
(String serverName, List<IncomingConnection> incomingConnections) Update incoming connection ids.boolean
updateLocalTransferStatus
(String master, boolean standby, String destination, String target, String uniqueName, String status) Update data transfer status from another Master Server.void
updateLocation
(Host host) Update location.Methods inherited from interface ecmwf.common.ecaccess.ProviderInterface
isAvailable, isRegistred, subscribe
-
Method Details
-
updateIncomingConnectionIds
void updateIncomingConnectionIds(String serverName, List<IncomingConnection> incomingConnections) throws RemoteException Update incoming connection ids.- Parameters:
serverName
- the server nameincomingConnections
- the incoming connections- Throws:
RemoteException
- the remote exception
-
proxyHostIsAlive
Proxy host is alive.- Parameters:
name
- the name- Returns:
- the long
- Throws:
IOException
- Signals that an I/O exception has occurred.RemoteException
- the remote exception
-
updateDataTransfers
Update data transfers.- Parameters:
transfers
- the transfers- Throws:
IOException
- Signals that an I/O exception has occurred.RemoteException
- the remote exception
-
updateDownloadProgress
DownloadProgress[] updateDownloadProgress(DownloadProgress[] progress) throws IOException, RemoteException Update download progress.- Parameters:
progress
- the progress- Returns:
- the list of DownloadProgress to interrupt (not found on the MasterServer)
- Throws:
IOException
- Signals that an I/O exception has occurred.RemoteException
- the remote exception
-
updateData
Update data.- Parameters:
host
- the host- Throws:
DataBaseException
- the data base exceptionRemoteException
- the remote exception
-
updateData
Update data.- Parameters:
hostId
- the host iddata
- the host data- Throws:
DataBaseException
- the data base exceptionRemoteException
- the remote exception
-
updateLocation
Update location.- Parameters:
host
- the host- Throws:
DataBaseException
- the data base exceptionRemoteException
- the remote exception
-
getDataFileAccessInterface
Gets the data file access interface.- Returns:
- the data file access interface
- Throws:
RemoteException
- the remote exception
-
getDestination
Gets the destination.- Parameters:
name
- the name- Returns:
- the destination
- Throws:
RemoteException
- the remote exception
-
isValidDataFile
Checks if is valid data file.- Parameters:
dataFileId
- the data file id- Returns:
- true, if is valid data file
- Throws:
RemoteException
- the remote exception
-
getIncomingUserHash
Return a hash of the specified incoming user (the string is in the form userid:password).- Parameters:
incomingUser
- the incoming user- Returns:
- hash, if the user is found
- Throws:
RemoteException
- the remote exception
-
getS3AuthorizationSignature
byte[] getS3AuthorizationSignature(String incomingUser, String prefix, String data, String algorithm) throws RemoteException Return a hash of the specified incoming user (the string is in the form userid:password).- Parameters:
incomingUser
- the incoming userprefix
- the prefix (e.g. AWS4)data
- the dataalgorithm
- the algorithm- Returns:
- authorization signature
- Throws:
RemoteException
- the remote exception
-
getIncomingProfile
IncomingProfile getIncomingProfile(String incomingUser, String incomingPassword, String from) throws DataBaseException, MasterException, RemoteException Gets the incoming profile.- Parameters:
incomingUser
- the incoming userincomingPassword
- the incoming passwordfrom
- the from- Returns:
- the incoming profile
- Throws:
DataBaseException
- the data base exceptionMasterException
- the master exceptionRemoteException
- the remote exception
-
getETag
Gets the ETag for a given dataTransferId.- Parameters:
dataTransferId
- the data transfer id- Returns:
- the ETag
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getECauthToken
Gets the ecauth token.- Parameters:
user
- the user- Returns:
- the ecauth token
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
importDestination
void importDestination(Destination fromDestination, Association[] linkedAssociations, boolean copySharedHost) throws DataBaseException, MasterException, RemoteException Import destination from another Master Server.- Parameters:
fromDestination
- the from destinationlinkedAssociations
- the linked associationscopySharedHost
- the copy shared host- Throws:
DataBaseException
- the data base exceptionMasterException
- the master exceptionRemoteException
- the remote exception
-
updateLocalTransferStatus
boolean updateLocalTransferStatus(String master, boolean standby, String destination, String target, String uniqueName, String status) throws MasterException, RemoteException Update data transfer status from another Master Server.- Parameters:
master
- the remote masterstandby
- the standby flagdestination
- the destination nametarget
- the target nameuniqueName
- the unique namestatus
- the status- Returns:
- true, if successful
- Throws:
MasterException
- the master exceptionRemoteException
- the remote exception
-