Interface MasterProxy


public interface MasterProxy
The Interface MasterProxy.
  • Method Details

    • shutdown

      void shutdown()
      Shutdown.
    • updateDataTransfers

      void updateDataTransfers(DataTransfer[] transfers) throws Exception
      Update data transfers.
      Parameters:
      transfers - the transfers
      Throws:
      Exception - the exception
    • updateDownloadProgress

      DownloadProgress[] updateDownloadProgress(DownloadProgress[] progress) throws Exception
      Update download progress.
      Parameters:
      progress - the progress
      Returns:
      the list of DownloadProgress to interrupt (not found on the MasterServer)
      Throws:
      Exception - the exception
    • proxyHostIsAlive

      long proxyHostIsAlive(String name) throws Exception
      Proxy host is alive.
      Parameters:
      name - the name
      Returns:
      the long
      Throws:
      Exception - the exception
    • updateData

      void updateData(Host host) throws Exception
      Update data.
      Parameters:
      host - the host
      Throws:
      Exception - the exception
    • updateData

      void updateData(String hostId, String data) throws Exception
      Update data.
      Parameters:
      hostId - the host id
      data - the host data
      Throws:
      Exception - the exception
    • updateLocation

      void updateLocation(Host host) throws Exception
      Update location.
      Parameters:
      host - the host
      Throws:
      Exception - the exception
    • sendMessage

      void sendMessage(String name, String service, int status, String message) throws Exception
      Sends the message.
      Parameters:
      name - the name
      service - the service
      status - the status
      message - the message
      Throws:
      Exception - the exception
    • getDataFileAccessInterface

      DataAccessInterface getDataFileAccessInterface() throws Exception
      Gets the data file access interface.
      Returns:
      the data file access interface
      Throws:
      Exception - the exception
    • getDestination

      Destination getDestination(String name) throws Exception
      Gets the destination.
      Parameters:
      name - the name
      Returns:
      the destination
      Throws:
      Exception - the exception
    • isValidDataFile

      boolean isValidDataFile(long dataFileId) throws Exception
      Checks if is valid data file.
      Parameters:
      dataFileId - the data file id
      Returns:
      true, if is valid data file
      Throws:
      Exception - the exception
    • getIncomingProfile

      IncomingProfile getIncomingProfile(String incomingUser, String incomingPassword, String from) throws Exception
      Gets the incoming profile.
      Parameters:
      incomingUser - the incoming user
      incomingPassword - the incoming password
      from - the from
      Returns:
      the incoming profile
      Throws:
      Exception - the exception
    • getECauthToken

      ECauthToken getECauthToken(String user) throws Exception
      Gets the ecauth token.
      Parameters:
      user - the user
      Returns:
      the ecauth token
      Throws:
      Exception - the exception