Interface MasterProxy
public interface MasterProxy
The Interface MasterProxy.
-
Method Summary
Modifier and TypeMethodDescriptionGets the data file access interface.getDestination
(String name) Gets the destination.getECauthToken
(String user) Gets the ecauth token.getIncomingProfile
(String incomingUser, String incomingPassword, String from) Gets the incoming profile.boolean
isValidDataFile
(long dataFileId) Checks if is valid data file.long
proxyHostIsAlive
(String name) Proxy host is alive.void
sendMessage
(String name, String service, int status, String message) Sends the message.void
shutdown()
Shutdown.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
updateLocation
(Host host) Update location.
-
Method Details
-
shutdown
void shutdown()Shutdown. -
updateDataTransfers
Update data transfers.- Parameters:
transfers
- the transfers- Throws:
Exception
- the exception
-
updateDownloadProgress
Update download progress.- Parameters:
progress
- the progress- Returns:
- the list of DownloadProgress to interrupt (not found on the MasterServer)
- Throws:
Exception
- the exception
-
proxyHostIsAlive
-
updateData
-
updateData
-
updateLocation
-
sendMessage
-
getDataFileAccessInterface
Gets the data file access interface.- Returns:
- the data file access interface
- Throws:
Exception
- the exception
-
getDestination
Gets the destination.- Parameters:
name
- the name- Returns:
- the destination
- Throws:
Exception
- the exception
-
isValidDataFile
-
getIncomingProfile
IncomingProfile getIncomingProfile(String incomingUser, String incomingPassword, String from) throws Exception Gets the incoming profile.- Parameters:
incomingUser
- the incoming userincomingPassword
- the incoming passwordfrom
- the from- Returns:
- the incoming profile
- Throws:
Exception
- the exception
-
getECauthToken
Gets the ecauth token.- Parameters:
user
- the user- Returns:
- the ecauth token
- Throws:
Exception
- the exception
-