Package | Description |
---|---|
clientP2P | |
gui | |
protocolP2P | |
serverP2P | |
tracker |
Modifier and Type | Field and Description |
---|---|
protected HostItem |
ClientManagement.client |
protected HostItem |
ClientDownloadPart.client |
protected HostItem |
ClientDownload.client |
private HostItem |
ClientP2P.server |
private HostItem |
ClientDownloadPart.server |
private HostItem |
ClientP2P.tracker |
protected HostItem |
ClientManagement.tracker |
protected HostItem |
ClientDownload.tracker |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<HostItem> |
ClientManagement.hostList |
protected java.util.List<HostItem> |
ClientDownload.hostList |
protected java.util.Map<HostItem,java.lang.Long> |
ClientDownload.ratioUpdater |
Modifier and Type | Method and Description |
---|---|
HostItem |
ClientDownloadPart.getServer()
Server getter
|
Modifier and Type | Method and Description |
---|---|
protected void |
ClientManagementUDP.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected void |
ClientManagementTCP.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected abstract void |
ClientManagement.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected void |
ClientDownloadUDP.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected void |
ClientDownloadTCP.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected abstract void |
ClientDownload.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected ClientDownloadPart |
ClientDownloadUDP.createDownloadPart(HostItem hostItem)
Create a clientDownloadPart
|
protected ClientDownloadPart |
ClientDownloadTCP.createDownloadPart(HostItem hostItem)
Create a clientDownloadPart
|
protected abstract ClientDownloadPart |
ClientDownload.createDownloadPart(HostItem hostItem)
Create a clientDownloadPart
|
protected byte[] |
ClientDownload.getHashSum512(HostItem hostItem)
Get hashsum from server.
|
protected java.lang.Object |
ClientManagementUDP.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected java.lang.Object |
ClientManagementTCP.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected abstract java.lang.Object |
ClientManagement.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected java.lang.Object |
ClientDownloadUDP.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected java.lang.Object |
ClientDownloadTCP.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected abstract java.lang.Object |
ClientDownload.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
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
|
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.
|
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
|
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
|
Modifier and Type | Field and Description |
---|---|
private HostItem |
ClientP2PGUI.server |
private HostItem |
ClientP2PGUI.tracker |
Modifier and Type | Field and Description |
---|---|
private HostItem |
UpdateRatio.client |
private HostItem |
Unregister.hostItem |
private HostItem |
Register.hostItem |
private HostItem |
RatioResponse.hostItem |
private HostItem |
RatioRequest.hostItem |
private HostItem |
LoadRequest.hostItem |
private HostItem |
ProtocolP2PPacketUDP.remoteHost |
private HostItem |
UpdateRatio.server |
Modifier and Type | Field and Description |
---|---|
private java.util.List<HostItem> |
DiscoverResponse.hostList |
Modifier and Type | Method and Description |
---|---|
HostItem |
UpdateRatio.getClient()
Client getter.
|
HostItem |
Unregister.getHostItem()
HostItem getter.
|
HostItem |
Register.getHostItem()
HostItem getter.
|
HostItem |
RatioResponse.getHostItem()
HostItem getter.
|
HostItem |
RatioRequest.getHostItem()
HostItem getter.
|
HostItem |
ProtocolP2PPacketUDP.getHostItem()
Get hostItem of the sender
|
HostItem |
ProtocolP2PPacketTCP.getHostItem()
Get hostItem of the sender
|
abstract HostItem |
ProtocolP2PPacket.getHostItem()
Get hostItem of the sender
|
HostItem |
LoadRequest.getHostItem()
hostItem getter.
|
HostItem |
UpdateRatio.getServer()
Server getter
|
Modifier and Type | Method and Description |
---|---|
java.util.List<HostItem> |
DiscoverResponse.getHostList()
HostList getter.
|
Constructor and Description |
---|
LoadRequest(java.lang.String filename,
long offset,
long maxSizePartialContent,
HostItem hostItem)
Constructor (typically used by the client) with a filename parameter.
|
RatioRequest(HostItem hostItem)
Constructor with hostItem (typically used by client/server)
|
RatioResponse(HostItem hostItem,
long totalUp,
long totalDown)
Constructor with hostItem (typically used by tracker)
|
Register(HostItem hostItem)
Constructor with hostItem (typically used by client)
|
Unregister(HostItem hostItem)
Constructor with hostItem (typically used by client)
|
UpdateRatio(HostItem client,
HostItem server,
long dataSize)
Constructor with hostItem (typically used by client)
|
Constructor and Description |
---|
DiscoverResponse(java.lang.String filename,
java.util.List<HostItem> hostList)
Constructor with filename (typically used by tracker).
|
Modifier and Type | Field and Description |
---|---|
private HostItem |
ServerManagementTCP.ClientHandler.addr |
private HostItem |
ServerP2P.server |
protected HostItem |
ServerManagement.server |
protected HostItem |
FileWatcher.server |
private HostItem |
ServerP2P.tracker |
protected HostItem |
ServerManagement.tracker |
protected HostItem |
RatioWatcher.tracker |
protected HostItem |
FileWatcher.tracker |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<HostItem,java.lang.Double> |
RatioWatcher.cachePunishmentProbability |
Modifier and Type | Method and Description |
---|---|
protected double |
RatioWatcher.getPunishmentProbability(HostItem application)
Get Up-ratio for an applications
|
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 |
---|---|
private HostItem |
TrackerManagementTCP.ClientHandler.addr |
protected HostItem |
TrackerManagement.tracker |
private HostItem |
Tracker.tracker |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.List<HostItem>> |
TrackerManagement.fileList |
protected java.util.List<HostItem> |
TrackerManagement.hostList |
protected java.util.Map<HostItem,java.lang.Long> |
TrackerManagement.ratioDown |
protected java.util.Map<HostItem,java.lang.Long> |
TrackerManagement.ratioUp |
Modifier and Type | Method and Description |
---|---|
protected void |
TrackerManagementUDP.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected void |
TrackerManagementTCP.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected abstract void |
TrackerManagement.closeHostItemSocket(HostItem hostItem)
Close HostItem socket
|
protected java.lang.Object |
TrackerManagementUDP.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected java.lang.Object |
TrackerManagementTCP.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected abstract java.lang.Object |
TrackerManagement.getHostItemSocket(HostItem hostItem)
Getter for HostItem socket
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleListResponse(T pd,
HostItem host)
Handle List Responses
|
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.
|