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.booleanisValidDataFile(long dataFileId) Checks if is valid data file.longproxyHostIsAlive(String name) Proxy host is alive.voidsendMessage(String name, String service, int status, String message) Sends the message.voidshutdown()Shutdown.voidupdateData(Host host) Update data.voidupdateData(String hostId, String data) Update data.voidupdateDataTransfers(DataTransfer[] transfers) Update data transfers.updateDownloadProgress(DownloadProgress[] progress) Update download progress.voidupdateLocation(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
-