Package | Description |
---|---|
clientP2P | |
gui | |
serverP2P | |
tracker |
Modifier and Type | Field and Description |
---|---|
protected Logger |
ClientManagement.logger |
private Logger |
ClientInterface.logger |
protected Logger |
ClientDownloadPart.logger |
protected Logger |
ClientDownload.logger |
private Logger |
ClientP2P.loggerClient |
private Logger |
ClientP2P.loggerServer |
Constructor and Description |
---|
ClientDownload(java.lang.String filename,
java.util.List<HostItem> hostList,
java.lang.String partsSubdir,
java.lang.String dirStorage,
Logger logger,
HostItem client,
HostItem tracker)
Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
|
ClientDownloadPart(ClientDownload manager,
java.lang.String filename,
java.lang.String partsSubdir,
Logger logger,
HostItem client,
HostItem server)
Constructor with filename, socket, and part subdir
|
ClientDownloadPartTCP(ClientDownload manager,
java.lang.String filename,
java.net.Socket socket,
java.lang.String partsSubdir,
Logger logger,
HostItem client,
HostItem server)
Constructor with filename, socket, and part subdir
|
ClientDownloadPartUDP(ClientDownload manager,
java.lang.String filename,
java.net.DatagramSocket socket,
java.lang.String partsSubdir,
Logger logger,
HostItem client,
HostItem server)
Constructor with filename, socket, and part subdir
|
ClientDownloadTCP(java.lang.String filename,
java.util.List<HostItem> hostList,
java.lang.String partsSubdir,
java.lang.String dirStorage,
Logger logger,
HostItem client,
HostItem tracker)
Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
|
ClientDownloadUDP(java.lang.String filename,
java.util.List<HostItem> hostList,
java.lang.String partsSubdir,
java.lang.String dirStorage,
Logger logger,
HostItem client,
HostItem tracker)
Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
|
ClientInterface(ClientManagement clientManagement,
Logger logger)
Constructor with clientManagement and logger.
|
ClientInterfaceCLI(ClientManagement clientManagement,
Logger logger,
java.util.Scanner scanner)
Constructor with clientManagement, logger and scanner.
|
ClientManagement(java.lang.String baseDirectory,
HostItem tracker,
java.lang.String partsSubdir,
Logger logger,
HostItem client)
Constructor with baseDirectory, tracker, partsSubdir, logger, and scanner parameters.
|
ClientManagementTCP(java.lang.String baseDirectory,
HostItem tracker,
java.lang.String partsSubdir,
Logger logger,
HostItem client)
Constructor for TCP implementation, with baseDirectory, tracker, partsSubdir, logger, and scanner parameters.
|
ClientManagementUDP(java.lang.String baseDirectory,
HostItem tracker,
java.lang.String partsSubdir,
Logger logger,
HostItem client)
Constructor for UDP implementation, with baseDirectory, tracker, partsSubdir, logger and scanner parameters.
|
Modifier and Type | Field and Description |
---|---|
private Logger |
DownloadSelectionGen.logger |
private Logger |
DownloadFileGUI.logger |
(package private) Logger |
ClientInterfaceGUI.loggerC
Constructor with clientManagement, logger and scanner.
|
private Logger |
ClientP2PGUI.loggerClient |
private Logger |
ClientP2PGUI.loggerServer |
Constructor and Description |
---|
ClientInterfaceGUI(ClientManagement clientManagement,
Logger logger,
ServerManagementTCP smtcp,
ServerManagementUDP smudp) |
DownloadFileGUI(java.lang.String fileToDownload,
ClientManagement clientManagement,
Logger logger,
ServerManagementTCP smtcp,
ServerManagementUDP smudp) |
DownloadSelectionGen(java.lang.String[] listFilesToDownload,
ClientManagement clientManagement,
Logger logger,
ServerManagementTCP smtcp,
ServerManagementUDP smudp) |
Modifier and Type | Field and Description |
---|---|
private Logger |
ServerP2P.logger |
protected Logger |
ServerManagement.logger |
protected Logger |
RatioWatcher.logger |
protected Logger |
FileWatcher.logger |
Constructor and Description |
---|
FileWatcher(Logger logger,
long millis,
HostItem server,
HostItem tracker,
java.lang.String baseDirectory)
Constructor
|
FileWatcherTCP(Logger logger,
long millis,
HostItem server,
HostItem tracker,
java.lang.String baseDirectory)
Constructor
|
FileWatcherUDP(Logger logger,
long millis,
HostItem server,
HostItem tracker,
java.lang.String baseDirectory)
Constructor
|
RatioWatcher(Logger logger,
long millis,
HostItem tracker)
Constructor
|
RatioWatcherTCP(Logger logger,
long millis,
HostItem tracker)
Constructor
|
RatioWatcherUDP(Logger logger,
long millis,
HostItem tracker)
Constructor
|
ServerManagement(java.lang.String baseDirectory,
HostItem server,
HostItem tracker,
Logger logger)
Constructor
|
ServerManagementTCP(java.lang.String baseDirectory,
HostItem server,
HostItem tracker,
Logger logger)
Constructor for TCP implementation, with baseDirectory and TCPPort parameters.
|
ServerManagementUDP(java.lang.String baseDirectory,
HostItem server,
HostItem tracker,
Logger logger)
Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
|
Modifier and Type | Field and Description |
---|---|
protected Logger |
TrackerManagement.logger |
private Logger |
Tracker.logger |
Constructor and Description |
---|
TrackerManagement(HostItem tracker,
Logger logger)
Constructor
|
TrackerManagementTCP(HostItem tracker,
Logger logger)
Constructor with port and logger.
|
TrackerManagementUDP(HostItem tracker,
Logger logger)
Constructor with port and logger.
|