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.getIncomingProfileNoAuth(String incomingUser) Returns a freshIncomingProfilefor an already-authenticated user, without re-running credential validation, TOTP, connection-count checks, or last-login updates.booleanisValidDataFile(long dataFileId) Checks if is valid data file.longproxyHostIsAlive(String name) Proxy host is alive.voidreleaseConnectionSlot(String incomingUser) Releases a pending connection slot for the given user.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
-
getIncomingProfileNoAuth
Returns a freshIncomingProfilefor an already-authenticated user, without re-running credential validation, TOTP, connection-count checks, or last-login updates. Used to refresh user settings (e.g. portal.color, portal.maxConnections) from INU_DATA for an existing portal session.- Parameters:
incomingUser- the incoming user id- Returns:
- the incoming profile
- Throws:
Exception- the exception
-
releaseConnectionSlot
-
getECauthToken
Gets the ecauth token.- Parameters:
user- the user- Returns:
- the ecauth token
- Throws:
Exception- the exception
-