Skip navigation links
A B C D E F G H I J L M O P Q R S T U V W 

A

AbstractBencodedValue - Class in org.johnnei.javatorrent.bittorrent.encoding
Base class for implementations for IBencodedValue which implements all asX methods to throw UnsupportedOperationException
AbstractBencodedValue() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
AbstractBlockMessage - Class in org.johnnei.javatorrent.internal.bittorrent.protocol.messages
The base class for messages which contains a request about a block.
AbstractBlockMessage() - Constructor for class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
AbstractFileSet - Class in org.johnnei.javatorrent.torrent
 
AbstractFileSet(int) - Constructor for class org.johnnei.javatorrent.torrent.AbstractFileSet
 
AbstractPeerConnectionAcceptor - Class in org.johnnei.javatorrent.network
Created by johnn on 14/05/2016.
AbstractPeerConnectionAcceptor(TorrentClient) - Constructor for class org.johnnei.javatorrent.network.AbstractPeerConnectionAcceptor
 
acceptIncomingConnections(boolean) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Enables (or disables) the starting of the peer connection accepts upon building of the torrent client.
acceptSocket() - Method in class org.johnnei.javatorrent.network.AbstractPeerConnectionAcceptor
 
acceptSocket() - Method in class org.johnnei.javatorrent.network.TcpPeerConnectionAcceptor
 
add(IBencodedValue) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
Adds a value to the bencoded list.
addBlockRequest(int, int, int, PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Adds a download or upload job to the peer.
addConnectionFailure(ISocket, IOException) - Method in exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
addDiskJob(IDiskJob) - Method in class org.johnnei.javatorrent.torrent.Torrent
Adds a task to the IOManager of this torrent
addDiskJob(IDiskJob) - Method in class org.johnnei.javatorrent.TorrentClient
Submits the disk job to be processed by the IO manager.
addJob(Job) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Adds a job to the working queue
addModuleInfo(Object) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Registers the IModule peer specific information based on the class
addPeer(Peer) - Method in class org.johnnei.javatorrent.torrent.Torrent
Adds a peer to the torrent if not already registered to the torrent.
addStrike(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Adds an amount of strikes to the peer
addTask(IDiskJob) - Method in class org.johnnei.javatorrent.internal.disk.IOManager
Adds a task to the queue
addTorrent(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Adds a torrent to the torrentMap if not already on it
addTorrent(Torrent) - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Registers a new torrent
addTorrent(Torrent, String) - Method in class org.johnnei.javatorrent.internal.tracker.TrackerManager
Adds the torrent to the tracker and registers the tracker.
addUploadedBytes(long) - Method in class org.johnnei.javatorrent.torrent.Torrent
Adds the amount of bytes to the uploaded count
announce(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Requests the tracker to execute an announce event.
announce(Torrent) - Method in class org.johnnei.javatorrent.internal.tracker.TrackerManager
Invokes the ITracker.announce(Torrent) method for all trackers having the given torrent.
apply(T, U) - Method in interface org.johnnei.javatorrent.utils.CheckedBiFunction
 
Argument - Class in org.johnnei.javatorrent.utils
A class which mimics Objects but throws IllegalArgumentException instead of NullPointerException
asBigInteger() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asBigInteger() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
asBigInteger() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asBytes() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asBytes() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
asBytes() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asList() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asList() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
 
asList() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asLong() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asLong() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
asLong() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asMap() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asMap() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
 
asMap() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
asString() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
available() - Method in class org.johnnei.javatorrent.network.InStream
Calculates the amount of bytes still remaining to read on the stream.

B

BencodedInteger - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded integer.
BencodedInteger(long) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
Creates a new bencoded long.
BencodedInteger(BigInteger) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
Creates a new bencoded integer.
BencodedList - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded list.
BencodedList() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
Creates a new empty bencoded list.
BencodedMap - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded dictionary.
BencodedMap() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Creates a new empty bencoded map.
BencodedString - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded string.
BencodedString(String) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
Creates a new bencoded string based on the given value.
BencodedString(byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
Creates a new bencoded string based on the given value.
Bencoding - Class in org.johnnei.javatorrent.bittorrent.encoding
A decoder for Bencoding.
Bencoding() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.Bencoding
 
Bitfield - Class in org.johnnei.javatorrent.internal.torrent.peer
 
Bitfield(int) - Constructor for class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
 
BitTorrent - Class in org.johnnei.javatorrent.bittorrent.protocol
 
BitTorrentHandshake - Class in org.johnnei.javatorrent.bittorrent.protocol
 
BitTorrentHandshake(byte[], byte[], byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
BitTorrentSocket - Class in org.johnnei.javatorrent.network
 
BitTorrentSocket(MessageFactory) - Constructor for class org.johnnei.javatorrent.network.BitTorrentSocket
Creates a new unbound BitTorrent socket.
BitTorrentSocket(MessageFactory, ISocket) - Constructor for class org.johnnei.javatorrent.network.BitTorrentSocket
Creates a new bound BitTorrent socket.
BitTorrentSocketException - Exception in org.johnnei.javatorrent.network
 
BitTorrentSocketException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
BitTorrentSocketException(String) - Constructor for exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
Block - Class in org.johnnei.javatorrent.torrent.files
 
Block(int, int) - Constructor for class org.johnnei.javatorrent.torrent.files.Block
Creates a new block which is part of a Piece.
BLOCK_SIZE - Static variable in class org.johnnei.javatorrent.torrent.MetadataFileSet
 
BlockStatus - Enum in org.johnnei.javatorrent.torrent.files
The statuses which a Block can have which can be aggregated to create a status for a Piece
build() - Method in class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory.Builder
 
build() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
build() - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
 
build() - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
 
build() - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
build() - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Creates a torrent without metadata information (the .torrent file is not present).
build() - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
BUILD - Static variable in class org.johnnei.javatorrent.Version
 
Builder() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.torrent.Torrent.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.TorrentClient.Builder
 
buildFromMetata(File, File) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Creates a torrent with metadata information (the .torrent file is present).
byteArrayToString(byte[]) - Static method in class org.johnnei.javatorrent.utils.StringUtils
 
ByteInputStream - Class in org.johnnei.javatorrent.internal.network
 
ByteInputStream(InputStream) - Constructor for class org.johnnei.javatorrent.internal.network.ByteInputStream
 
ByteOutputStream - Class in org.johnnei.javatorrent.internal.network
 
ByteOutputStream(OutputStream) - Constructor for class org.johnnei.javatorrent.internal.network.ByteOutputStream
 

C

CallbackFuture<V> - Class in org.johnnei.javatorrent.async
 
CallbackFuture(Callable<V>, Consumer<FutureTask<V>>) - Constructor for class org.johnnei.javatorrent.async.CallbackFuture
 
cancelBlockRequest(int, int, int, PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Removes the download or upload job from the peer.
canDownload() - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
This method check if Torrent.Builder.setHash(byte[]) has been called as depending on the configured BEPs that requirements before something is 'downloadable' changes.
canReadMessage() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Buffers the next message for reading.
ceilDivision(int, int) - Static method in class org.johnnei.javatorrent.utils.MathUtils
 
ceilDivision(long, int) - Static method in class org.johnnei.javatorrent.utils.MathUtils
 
checkDisconnect() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
 
CheckedBiFunction<T,U,R,E extends Exception> - Interface in org.johnnei.javatorrent.utils
 
CheckedRunnable<E extends Exception> - Interface in org.johnnei.javatorrent.internal.utils
 
CheckedSupplier<T,E extends Exception> - Interface in org.johnnei.javatorrent.internal.utils
A supplier which can throw a checked exception.
checkHash() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Checks if the received bytes hash matches with the hash which was given in the metadata
checkProgress() - Method in class org.johnnei.javatorrent.torrent.Torrent
Calculates the current progress based on all available files on the HDD
choke() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Marks the client as choked.
clearJobs() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Clears all jobs from the queue.
Client - Class in org.johnnei.javatorrent.internal.torrent.peer
 
Client() - Constructor for class org.johnnei.javatorrent.internal.torrent.peer.Client
Creates a new Client.
close() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Formally closes the connection
close() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
close() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Closes the connection with the socket
closed() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Checks if the socket is closed
configureTorrentClient(TorrentClient.Builder) - Method in interface org.johnnei.javatorrent.module.IModule
Registers all the mandatory components to the TorrentClient.Builder.
connect(InetSocketAddress) - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Connects the underlaying Socket to the endpoint
connect(InetSocketAddress) - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
connect(ConnectionDegradation, InetSocketAddress) - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Attempts to connect to the given endpoint in a blocking manner.
ConnectionDegradation - Class in org.johnnei.javatorrent.network
Controls the degradation of socket types ordered from most preferred to least preferred.
ConnectionDegradation.Builder - Class in org.johnnei.javatorrent.network
 
connectPeer(PeerConnectInfo) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Dispatches the connecting of a peer by the tracker.
countBlocksWithStatus(BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Piece
 
countCompletedPieces() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Calculates the amount of pieces which still need to be downloaded
countHavePieces() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
Goes through the bitfieldBytes and checks how many pieces the client has
countHavePieces() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the amount of pieces this peer has
countRemainingBytes() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Calculates the amount of bytes which still need to be downloaded
countRemainingBytes() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Counts all block sizes which are not done yet
createById(int) - Method in class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory
Creates a new message instance which maps to the given ID
createInitialPhase(TorrentClient, Torrent) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator
 
createNextPhase(IDownloadPhase, TorrentClient, Torrent) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator
 
createPreferredSocket() - Method in class org.johnnei.javatorrent.network.ConnectionDegradation
Creates a new unconnected socket based on the most prefered connection type.
createUniqueTransactionId() - Method in class org.johnnei.javatorrent.TorrentClient
 

D

decode(InStream) - Method in class org.johnnei.javatorrent.bittorrent.encoding.Bencoding
Decodes the given string reader into the bencoded data structure.
degradeSocket(ISocket) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation
Degrades the given socket into the next type
discardAllBlockRequests() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Cancels all pieces
DiskJobCheckHash - Class in org.johnnei.javatorrent.disk
A job to check the hash of a piece for a given torrent
DiskJobCheckHash(Piece, Consumer<DiskJobCheckHash>) - Constructor for class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
DiskJobPriority - Enum in org.johnnei.javatorrent.internal.disk
A set of default priorities
DiskJobReadBlock - Class in org.johnnei.javatorrent.disk
 
DiskJobReadBlock(Piece, int, int, Consumer<DiskJobReadBlock>) - Constructor for class org.johnnei.javatorrent.disk.DiskJobReadBlock
 
DiskJobWriteBlock - Class in org.johnnei.javatorrent.disk
 
DiskJobWriteBlock(Piece, int, byte[], Consumer<DiskJobWriteBlock>) - Constructor for class org.johnnei.javatorrent.disk.DiskJobWriteBlock
Creates a new job to store a block of a piece.
done() - Method in class org.johnnei.javatorrent.async.CallbackFuture
 
download(Torrent, Collection<String>) - Method in class org.johnnei.javatorrent.TorrentClient
Initiates the downloading of a torrent.
download(Torrent) - Method in class org.johnnei.javatorrent.TorrentClient
Initiates the downloading of a torrent.

E

enableConnectionAcceptor() - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Attempts to start a server socket to accept incoming TCP connections.
enableExtensionBit(int) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Enables a bit in the extension bytes.
enqueueMessage(IMessage) - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Queues the message to be send
enqueuePeer(PeerConnectInfo) - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Queues a peer to be connected
enqueuePeer(PeerConnectInfo) - Method in class org.johnnei.javatorrent.tracker.PeerConnector
Adds a pending connection peer to the connection cycle
enqueuePeer(PeerConnectInfo) - Method in class org.johnnei.javatorrent.tracker.PeerConnectorPool
Queues a peer to be connected
EqualDistributor - Class in org.johnnei.javatorrent.tracker
An implementation of IPeerDistributor which attempts to equally distribute the peers.
EqualDistributor(TorrentClient, int) - Constructor for class org.johnnei.javatorrent.tracker.EqualDistributor
Creates a distributor which attempts to equally distribute the peers over the torrents.
equals(Object) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
equals(Object) - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
equals(Object) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Job
 
equals(Object) - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
equals(Object) - Method in class org.johnnei.javatorrent.torrent.FileInfo
equals(Object) - Method in class org.johnnei.javatorrent.torrent.files.Piece
equals(Object) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
equals(Object) - Method in class org.johnnei.javatorrent.torrent.Torrent
 

F

FileInfo - Class in org.johnnei.javatorrent.torrent
 
FileInfo(long, long, File, int) - Constructor for class org.johnnei.javatorrent.torrent.FileInfo
 
fileInfos - Variable in class org.johnnei.javatorrent.torrent.AbstractFileSet
The file info about all the files which are contained within this AbstractFileSet
fileLock - Variable in class org.johnnei.javatorrent.torrent.FileInfo
A lock to prevent concurrent writes to a single file
files - Variable in class org.johnnei.javatorrent.torrent.files.Piece
The files associated with this piece
flush() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Forces the socket to send all data
flush() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
FullPieceSelect - Class in org.johnnei.javatorrent.torrent.algos.pieceselector
A Piece selection algorithm which favors completing a started piece over starting a second piece.
FullPieceSelect(Torrent) - Constructor for class org.johnnei.javatorrent.torrent.algos.pieceselector.FullPieceSelect
 

G

get(int) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
Gets an item from the bencoded list.
get(String) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Gets the value from the map if available.
get() - Method in interface org.johnnei.javatorrent.internal.utils.CheckedSupplier
 
getAddress() - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
getBitfieldBytes() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the have pieces in bitfield format as specified by BEP #3.
getBitfieldBytes() - Method in class org.johnnei.javatorrent.torrent.MetadataFileSet
 
getBitfieldBytes() - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
 
getBitTorrentSocket() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the socket handler which handles the socket of this peer
getBlockCount() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the amount of blocks in this piece
getBlockData() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
The read data from the piece
getBlockIndex() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
Gets the block index within the owning piece.
getBlockIndex() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Job
 
getBlockSize() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the size of a non-truncated block
getBlockSize(int) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the size of the specified block
getBlockStatus(int) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the block status for the block at the given index
getBytes() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
Returns a copy of the internal byte array
getChokingStrategy() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Gets the choking strategy which is optimal for this phase.
getChokingStrategy() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
getChokingStrategy() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
getClientName() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the client name as reported by the BEP #10 extension if supported.
getConnectingCount() - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Gets the amount of peers are pending to be connected.
getConnectingCount() - Method in class org.johnnei.javatorrent.tracker.PeerConnector
Gets the amount of peers are pending to be connected.
getConnectingCount() - Method in class org.johnnei.javatorrent.tracker.PeerConnectorPool
Gets the amount of peers are pending to be connected.
getConnectingCountFor(Torrent) - Method in class org.johnnei.javatorrent.internal.tracker.TrackerManager
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectingCountFor(Torrent) - Method in class org.johnnei.javatorrent.TorrentClient
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectingCountFor(Torrent) - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectingCountFor(Torrent) - Method in class org.johnnei.javatorrent.tracker.PeerConnector
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectingCountFor(Torrent) - Method in class org.johnnei.javatorrent.tracker.PeerConnectorPool
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectionDegradation() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the configured connection degradation rules.
getDependsOn() - Method in interface org.johnnei.javatorrent.module.IModule
Returns the extensions which must be present to allow this module to work at all.
getDisplayName() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
getDownloadCount() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The amount of times this torrent has been downloaded
If the tracker returns 0 it will return N/A as the tracker apparently doesn't support it
getDownloadedBytes() - Method in class org.johnnei.javatorrent.torrent.Torrent
The amount of bytes downloaded
getDownloadPort() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the port at which we are listening for peers
getDownloadRate() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Returns the last polled download rate.
getDownloadRate() - Method in class org.johnnei.javatorrent.torrent.Torrent
Sums the download rates of all peers.
getEvent() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Gets the current tracker event for this Torrent
getExecutorService() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the ScheduledExecutorService which will execute the small tasks
getExtensionBytes() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the eight extension bytes which represent which BitTorrent extensions are enabled on this client.
getFileAccess() - Method in class org.johnnei.javatorrent.torrent.FileInfo
Gets the handle to write/read from this file.
getFileForBytes(int, int, int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the FileInfo for the given piece and block
getFileName() - Method in class org.johnnei.javatorrent.torrent.FileInfo
Gets the name of this file.
getFiles() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Creates an unmodifiable view of the list of files in this fileset.
getFileSet() - Method in class org.johnnei.javatorrent.torrent.Torrent
Gets the files which are being downloaded within this torrent.
getFirstByteOffset() - Method in class org.johnnei.javatorrent.torrent.FileInfo
The offset of the first byte as if the entire torrent is a single file
getFreeWorkTime() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Calculates the amount of blocks we can request without overflowing the peer and without slowing us down.
getHash() - Method in class org.johnnei.javatorrent.torrent.Torrent
Gets the Torrent.getHashArray() formatted as hexadecimal.
getHashArray() - Method in class org.johnnei.javatorrent.torrent.Torrent
Gets the 20 byte BTIH hash of the torrent.
getId() - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
The id of this message
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
getId() - Method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
getId() - Method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 
getIndex() - Method in class org.johnnei.javatorrent.torrent.files.Block
Gets the index of this block within the owning Piece
getIndex() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the index of this Piece
The index is equal to the offset in the file divided by the default piece size
getInfo(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Retrieves the torrent information which is stored for this tracker.
getInputStream() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Gets the inputstream from the underlaying socket
getInputStream() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
getJobs() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Gets an iterable to allow iteration over the job list.
getLastActivity() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Gets the time at which the last byte has been read or written to the socket.
getLastActivity() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the time at which the last byte has been read or written to the socket.
getLeecherCount() - Method in class org.johnnei.javatorrent.torrent.Torrent
Counts the amount of peers which don't have all pieces yet.
getLeechers() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The amount of leechers as reported by the tracker
getLength() - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
The length of the message (only needed on writing)
The length should include the byte for the message id
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
getLength() - Method in class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
getLength() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Job
 
getMessage() - Method in exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
getMessageFactory() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the message factory for this client
getMetadata() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
getModule(Class<T>) - Method in class org.johnnei.javatorrent.TorrentClient
Gets the module instance if it is registered to this Torrent Client.
getModuleInfo(Class<T>) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the info object registered with Peer.addModuleInfo(Object)
getModules() - Method in class org.johnnei.javatorrent.TorrentClient
Gets an unmodifiable view of the registered modules to this torrent client.
getName() - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Returns a user friendly name for this tracker.
getNeededPieces() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Creates a stream with only the pieces which are not done
getOffset() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
Gets the offset at which the data started reading.
getOutputStream() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Gets the outputstream from the underlaying socket
getOutputStream() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
getPassedHandshake() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Gets if this socket has completed the BitTorrent handshake
getPeerConnector() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the IPeerConnector which connects new peers
getPeerDistributor() - Method in class org.johnnei.javatorrent.TorrentClient
 
getPeerExtensionBytes() - Method in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
getPeerId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
getPeerId() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the 20-byte peer ID associated to this tracker manager
getPeers() - Method in class org.johnnei.javatorrent.torrent.Torrent
Creates a copy of the list of connected peers.
getPhaseRegulator() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the PhaseRegulator which manages the ordering of the download states.
getPiece() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
Gets the piece for which the hash has been verified.
getPiece() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
The piece from which data was read.
getPiece() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
Gets the piece for which this store task is being used.
getPiece(int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the piece with the given index
getPieceCount() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the amount of pieces in this torrent
getPieceCount() - Method in class org.johnnei.javatorrent.torrent.FileInfo
The amount of pieces which contain a part of data for this file
getPieceForPeer(Peer) - Method in class org.johnnei.javatorrent.torrent.algos.pieceselector.FullPieceSelect
 
getPieceForPeer(Peer) - Method in interface org.johnnei.javatorrent.torrent.algos.pieceselector.IPieceSelector
Gets the next piece to download
getPieceIndex() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Job
 
getPieceSelector() - Method in class org.johnnei.javatorrent.torrent.Torrent
The regulator which is managing this download
getPieceSize() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the size of a non-truncated piece.
getPieceSize() - Method in class org.johnnei.javatorrent.torrent.MetadataFileSet
 
getPieceSize() - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
Gets the default piece size
getPriority() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
getPriority() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
The priority of this job
getPriority() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
The priority of this job
getPriority() - Method in interface org.johnnei.javatorrent.disk.IDiskJob
The priority of this job
getPriority() - Method in enum org.johnnei.javatorrent.internal.disk.DiskJobPriority
 
getQueueSize() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
The amount of jobs on the working queue
getReadDuration() - Method in class org.johnnei.javatorrent.network.InStream
Gets the duration it took to read this message.
getRelatedBep() - Method in interface org.johnnei.javatorrent.module.IModule
Returns the number of the BEP to which this module is related.
getRequestBlock() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets a new block to be requested
getRequestLimit() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the amount of requests we are allowed to make to this peer
getSeedCount() - Method in class org.johnnei.javatorrent.torrent.Torrent
Counts the amount of peers which have all pieces.
getSeeders() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The amount of seeders as reported by the tracker
getSize() - Method in class org.johnnei.javatorrent.torrent.FileInfo
Gets the size of this file
getSize() - Method in class org.johnnei.javatorrent.torrent.files.Block
Gets the amount of bytes expected for this block.
getSize() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the total size of all blocks in bytes
getSocketName() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Gets the class simple name of the underlying socket.
getStatus() - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Returns the a user friendly name for the current action which the being executed.
getStatus() - Method in class org.johnnei.javatorrent.torrent.files.Block
Gets the current status of this block.
getTimeSinceLastAnnounce() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The time since the last announce
getTorrent() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Gets the associated torrent
getTorrent(byte[]) - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Gets the torrent associated with the given hash.
getTorrent() - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
getTorrent() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the torrent to which this peer is linked.
getTorrentByHash(byte[]) - Method in class org.johnnei.javatorrent.TorrentClient
Gets the torrent associated with the given hash.
getTorrentCount() - Method in class org.johnnei.javatorrent.TorrentClient
 
getTorrentHash() - Method in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
getTorrents() - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Creates a copy of the list containing the torrents
getTotalFileSize() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the sum of the file sizes which are defined in this AbstractFileSet
getTrackerFor(String) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
Either creates or returns the tracker implementation for the given url
getTrackersFor(Torrent) - Method in class org.johnnei.javatorrent.internal.tracker.TrackerManager
Gets all trackers which know the given torrent
getTrackersFor(Torrent) - Method in class org.johnnei.javatorrent.TorrentClient
Gets all trackers which know the given torrent
getTrackersHavingTorrent(Torrent) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
 
getUploadedBytes() - Method in class org.johnnei.javatorrent.torrent.Torrent
The amount of bytes we have uploaded this session
getUploadRate() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Returns the last polled upload rate.
getUploadRate() - Method in class org.johnnei.javatorrent.torrent.Torrent
Sums the upload rates of all peers.
getWorkQueueSize(PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the amount of pieces the client still needs to send

H

hasBlockWithStatus(BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Tests if any of the blocks have the given status.
hasExtension(int, int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the Peer.extensionBytes has the given bit set for the extension which is part of the extension bytes in the handshake
hash(byte[]) - Static method in class org.johnnei.javatorrent.bittorrent.encoding.SHA1
Hashes the given data into SHA-1 Hashing
hashCode() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
hashCode() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
hashCode() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Job
 
hashCode() - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
hashCode() - Method in class org.johnnei.javatorrent.torrent.FileInfo
hashCode() - Method in class org.johnnei.javatorrent.torrent.files.Piece
hashCode() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
hashCode() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
hasOutboundMessages() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Checks if this socket has messages queued for sending
hasPiece(int) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
Checks the bitfieldBytes if we have the given piece
hasPiece(int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Checks if this piece has been completed.
hasPiece(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the peer has the piece with the given index
hasReachedPeerLimit(Torrent) - Method in class org.johnnei.javatorrent.tracker.EqualDistributor
 
hasReachedPeerLimit(Torrent) - Method in interface org.johnnei.javatorrent.tracker.IPeerDistributor
 
hasReachedPeerLimit(Torrent) - Method in class org.johnnei.javatorrent.tracker.UncappedDistributor
 
hasTorrent(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Checks if the tracker can request information about the torrent
havePiece(int) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
Notify that we have the given piece
This will update the bitfieldBytes to bitwise OR the bit to 1
havePiece(int, boolean) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
Notify that we have the given piece
This will update the bitfieldBytes to bitwise OR the bit to 1

I

IBencodedValue - Interface in org.johnnei.javatorrent.bittorrent.encoding
Represents a value which was bencoded.
IChokingStrategy - Interface in org.johnnei.javatorrent.torrent.algos.choking
Strategy to handle the interested and choke states of Peer
IDiskJob - Interface in org.johnnei.javatorrent.disk
 
IDownloadPhase - Interface in org.johnnei.javatorrent.phases
A phase in the download which will be regulated by this phase
IMessage - Interface in org.johnnei.javatorrent.bittorrent.protocol.messages
 
IModule - Interface in org.johnnei.javatorrent.module
 
index - Variable in class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
InStream - Class in org.johnnei.javatorrent.network
 
InStream(byte[]) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the given byte array.
InStream(byte[], Duration) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the given byte array.
InStream(byte[], int, int) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the section in the given byte array.
InStream(byte[], int, int, Duration) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the section in the given byte array.
interested() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Marks the client as interested.
IOManager - Class in org.johnnei.javatorrent.internal.disk
 
IOManager() - Constructor for class org.johnnei.javatorrent.internal.disk.IOManager
 
IPeerConnector - Interface in org.johnnei.javatorrent.tracker
Interface which defines a system to establish connections with PeerConnectInfo received from ITracker.
IPeerDistributor - Interface in org.johnnei.javatorrent.tracker
An interface which defines how peers get distributed over all the torrents within TorrentClient
IPieceSelector - Interface in org.johnnei.javatorrent.torrent.algos.pieceselector
 
isChoked() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Returns if the client is choked or not.
isChoked(PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the client is choked.
isClosed() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Checks if the connection has been closed
isClosed() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
isDone() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Checks if the phase has been finished
isDone() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
isDone() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
isDone() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Tests if all pieces of this fileset have been completed.
isDone() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Checks if all blocks are done
isDownloadingMetadata() - Method in class org.johnnei.javatorrent.torrent.Torrent
If the Torrent should be downloading the metadata information.
isInputShutdown() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Checks if there will be no more data incoming
isInputShutdown() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
isInterested() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Returns if the client is interested or not.
isInterested(PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the client is interested.
isMatchingHash() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
This method returns the result of the DiskJobCheckHash.process() call.
ISocket - Interface in org.johnnei.javatorrent.internal.network.socket
A socket facade to get multiple socket protocols work on the some functions
isOutputShutdown() - Method in interface org.johnnei.javatorrent.internal.network.socket.ISocket
Checks if no more data can be send on this socket
isOutputShutdown() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
isStarted() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Checks all blockStates if they have been started
ITracker - Interface in org.johnnei.javatorrent.bittorrent.tracker
 

J

Job - Class in org.johnnei.javatorrent.internal.torrent.peer
A handler to manage the peer their work queue
Job(int, int) - Constructor for class org.johnnei.javatorrent.internal.torrent.peer.Job
 
Job(int, int, int) - Constructor for class org.johnnei.javatorrent.internal.torrent.peer.Job
 

L

length - Variable in class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
loadPiece(int, int) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Loads a bit of data from the file but it is not strictly a block as I use it
LoopingRunnable - Class in org.johnnei.javatorrent.async
A Runnable wrapper which handles the stopping of a runnable which should be looping.
LoopingRunnable(Runnable) - Constructor for class org.johnnei.javatorrent.async.LoopingRunnable
 

M

mark() - Method in class org.johnnei.javatorrent.network.InStream
Marks the current position.
MathUtils - Class in org.johnnei.javatorrent.utils
 
MESSAGE_BITFIELD - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used as a quick-have message.
Only allowed just after an handshake
Each bit represents the have state of a piece: 1 - have, 0 - not have.
Payload:
x times: ubyte - Bitfield data
(x will be Math.ceil(pieceCount / 8);)
The last byte will be padded with zero's so the message will be exactly x bytes
MESSAGE_CANCEL - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Cancel a send piece request
payload:
uint index
uint offset
uint length

MESSAGE_CHOKE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we choked them
No payload
MESSAGE_HAVE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Notify the peer that we have a piece
Payload:
1x: (u)int - Piece Index
MESSAGE_INTERESTED - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we got interest in them
No payload
MESSAGE_PIECE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
The data of a piece
Payload:
uint index - Piece Index
uint offset - Offset within the piece
x ubyte - The data, the length is equal the rest of the message bytes
MESSAGE_PORT - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
This has something to do with DHT
payload:
listen-port

This is not yet implemented in this client
MESSAGE_REQUEST - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Request a piece part from the peer
Payload:
uint index - Piece index
uint offset - Offset within the piece
uint length - The amount of data (Commenly 2^14/2^15), I use 2^14
MESSAGE_UNCHOKE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we unchoked them
No payload
MESSAGE_UNINTERESTED - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we got no interest in them
No payload
MessageBitfield - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageBitfield() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
MessageBitfield(byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
MessageBlock - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageBlock() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
MessageBlock(int, int, byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
MessageCancel - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageCancel() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
MessageCancel(int, int, int) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
MessageChoke - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageChoke() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
MessageFactory - Class in org.johnnei.javatorrent.bittorrent.protocol
The factory which maps the message IDs to the IMessage instances.
MessageFactory.Builder - Class in org.johnnei.javatorrent.bittorrent.protocol
 
MessageHave - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageHave() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
MessageHave(int) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
MessageInterested - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageInterested() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
MessageKeepAlive - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
A message object which represents the KeepAlive case of the protocol.
MessageKeepAlive() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
MessageRequest - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageRequest() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
MessageRequest(int, int, int) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
MessageUnchoke - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageUnchoke() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
MessageUninterested - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageUninterested() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
MetadataFileSet - Class in org.johnnei.javatorrent.torrent
 
MetadataFileSet(Torrent, File) - Constructor for class org.johnnei.javatorrent.torrent.MetadataFileSet
 
ModuleBuildException - Exception in org.johnnei.javatorrent.module
An exception which gets thrown on the IModule.onBuild(TorrentClient) action when it can complete successfully.
ModuleBuildException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.module.ModuleBuildException
 
ModuleBuildException(String) - Constructor for exception org.johnnei.javatorrent.module.ModuleBuildException
 
moveBack(int) - Method in class org.johnnei.javatorrent.network.InStream
Moves the read pointer back with n position.

O

of(int) - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
offset - Variable in class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
onBuild(TorrentClient) - Method in interface org.johnnei.javatorrent.module.IModule
Event called as the last method in the build process of the TorrentClient.Builder#build() call.
onHashMismatch() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Drops ceil(10%) of the blocks in order to maintain speed and still try to *not* redownload the entire piece
onPhaseEnter() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Prepare the phase
onPhaseEnter() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
onPhaseEnter() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
onPhaseExit() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Clean up the phase
onPhaseExit() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
onPhaseExit() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
onPostHandshake(Peer) - Method in interface org.johnnei.javatorrent.module.IModule
Called when the peer has successfully passed the handshake with us.
onReceivedBlock(int, int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Indicates that we've successfully received the requested block from the peer.
onReceivedBlock(AbstractFileSet, int, int, byte[]) - Method in class org.johnnei.javatorrent.torrent.Torrent
Tells the torrent to save a block of data
onShutdown() - Method in interface org.johnnei.javatorrent.module.IModule
Event called when the TorrentClient is being shutdown.
onTorrentPhaseChange() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
A callback method which gets invoked when the torrent starts a new phase
org.johnnei.javatorrent - package org.johnnei.javatorrent
 
org.johnnei.javatorrent.async - package org.johnnei.javatorrent.async
 
org.johnnei.javatorrent.bittorrent.encoding - package org.johnnei.javatorrent.bittorrent.encoding
 
org.johnnei.javatorrent.bittorrent.protocol - package org.johnnei.javatorrent.bittorrent.protocol
 
org.johnnei.javatorrent.bittorrent.protocol.messages - package org.johnnei.javatorrent.bittorrent.protocol.messages
 
org.johnnei.javatorrent.bittorrent.tracker - package org.johnnei.javatorrent.bittorrent.tracker
 
org.johnnei.javatorrent.disk - package org.johnnei.javatorrent.disk
 
org.johnnei.javatorrent.internal.bittorrent.protocol.messages - package org.johnnei.javatorrent.internal.bittorrent.protocol.messages
 
org.johnnei.javatorrent.internal.disk - package org.johnnei.javatorrent.internal.disk
 
org.johnnei.javatorrent.internal.network - package org.johnnei.javatorrent.internal.network
 
org.johnnei.javatorrent.internal.network.socket - package org.johnnei.javatorrent.internal.network.socket
 
org.johnnei.javatorrent.internal.torrent - package org.johnnei.javatorrent.internal.torrent
 
org.johnnei.javatorrent.internal.torrent.peer - package org.johnnei.javatorrent.internal.torrent.peer
 
org.johnnei.javatorrent.internal.tracker - package org.johnnei.javatorrent.internal.tracker
 
org.johnnei.javatorrent.internal.utils - package org.johnnei.javatorrent.internal.utils
 
org.johnnei.javatorrent.module - package org.johnnei.javatorrent.module
 
org.johnnei.javatorrent.network - package org.johnnei.javatorrent.network
 
org.johnnei.javatorrent.phases - package org.johnnei.javatorrent.phases
 
org.johnnei.javatorrent.torrent - package org.johnnei.javatorrent.torrent
 
org.johnnei.javatorrent.torrent.algos.choking - package org.johnnei.javatorrent.torrent.algos.choking
 
org.johnnei.javatorrent.torrent.algos.pieceselector - package org.johnnei.javatorrent.torrent.algos.pieceselector
 
org.johnnei.javatorrent.torrent.files - package org.johnnei.javatorrent.torrent.files
 
org.johnnei.javatorrent.torrent.peer - package org.johnnei.javatorrent.torrent.peer
 
org.johnnei.javatorrent.tracker - package org.johnnei.javatorrent.tracker
 
org.johnnei.javatorrent.utils - package org.johnnei.javatorrent.utils
 
OutStream - Class in org.johnnei.javatorrent.network
 
OutStream() - Constructor for class org.johnnei.javatorrent.network.OutStream
 
OutStream(int) - Constructor for class org.johnnei.javatorrent.network.OutStream
 

P

Peer - Class in org.johnnei.javatorrent.torrent.peer
 
Peer.Builder - Class in org.johnnei.javatorrent.torrent.peer
 
PeerConnectInfo - Class in org.johnnei.javatorrent.network
A small class which holds information about the peer which is trying to connect
PeerConnectInfo(Torrent, InetSocketAddress) - Constructor for class org.johnnei.javatorrent.network.PeerConnectInfo
 
PeerConnector - Class in org.johnnei.javatorrent.tracker
 
PeerConnector(TorrentClient) - Constructor for class org.johnnei.javatorrent.tracker.PeerConnector
 
PeerConnectorPool - Class in org.johnnei.javatorrent.tracker
 
PeerConnectorPool(TorrentClient, int) - Constructor for class org.johnnei.javatorrent.tracker.PeerConnectorPool
Creates a new pool of PeerConnectors.
PeerDirection - Enum in org.johnnei.javatorrent.torrent.peer
 
PeerIoRunnable - Class in org.johnnei.javatorrent.internal.network
 
PeerIoRunnable(TorrentManager) - Constructor for class org.johnnei.javatorrent.internal.network.PeerIoRunnable
 
PermissiveStrategy - Class in org.johnnei.javatorrent.torrent.algos.choking
A simple choking strategy which attempt to get unchoked by everyone who has any piece we don't have and unchokes anyone who's interested in us.
PermissiveStrategy() - Constructor for class org.johnnei.javatorrent.torrent.algos.choking.PermissiveStrategy
 
PermissiveUploadStrategy - Class in org.johnnei.javatorrent.torrent.algos.choking
A choking strategy which doesn't care about us downloading and allows everyone to download from us.
PermissiveUploadStrategy() - Constructor for class org.johnnei.javatorrent.torrent.algos.choking.PermissiveUploadStrategy
 
PhaseData - Class in org.johnnei.javatorrent.phases
 
PhaseData(TorrentClient, Torrent) - Constructor for class org.johnnei.javatorrent.phases.PhaseData
 
PhaseRegulator - Class in org.johnnei.javatorrent.phases
 
PhaseRegulator.Builder - Class in org.johnnei.javatorrent.phases
 
PhaseSeed - Class in org.johnnei.javatorrent.phases
A phase which is meant to be used for seeding torrents.
PhaseSeed(TorrentClient, Torrent) - Constructor for class org.johnnei.javatorrent.phases.PhaseSeed
Creates a new seeding phase.
Piece - Class in org.johnnei.javatorrent.torrent.files
Represents a piece within a AbstractFileSet.
Piece(AbstractFileSet, byte[], int, int, int) - Constructor for class org.johnnei.javatorrent.torrent.files.Piece
Creates a new piece.
pieces - Variable in class org.johnnei.javatorrent.torrent.AbstractFileSet
The pieces which contain all the information to complete the downloading of the files.
pollRates() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Polls all the transfer speeds.
pollRates() - Method in class org.johnnei.javatorrent.torrent.Torrent
Polls all peers transfer speeds.
pollSpeed() - Method in class org.johnnei.javatorrent.internal.network.ByteInputStream
 
pollSpeed() - Method in class org.johnnei.javatorrent.internal.network.ByteOutputStream
 
popNextJob() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Grabs the first job on the workingQueue
process(Peer) - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
Process the message
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
process() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
process() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
Processes the disk job
process() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
 
process() - Method in interface org.johnnei.javatorrent.disk.IDiskJob
Processes the disk job
process() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Processing the phase of the torrent
process() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
process() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
put(String, IBencodedValue) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Associates the given bencoded value with the given key.

Q

queueNextPieceForSending() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Requests to queue the next piece in the socket for sending

R

read(InStream) - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
Read a message from the inputStream
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
read(InStream) - Method in class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
read() - Method in class org.johnnei.javatorrent.internal.network.ByteInputStream
 
readBoolean() - Method in class org.johnnei.javatorrent.network.InStream
Reads a boolean value from the stream.
readByte() - Method in class org.johnnei.javatorrent.network.InStream
Reads a signed byte from the stream.
readByteArray(int) - Method in class org.johnnei.javatorrent.internal.network.ByteInputStream
 
readChar() - Method in class org.johnnei.javatorrent.network.InStream
Reads a character from the stream.
readFully(byte[]) - Method in class org.johnnei.javatorrent.network.InStream
Fills the given byte array with data read from the stream.
readFully(byte[], int, int) - Method in class org.johnnei.javatorrent.network.InStream
Fills the given section of the byte array with data read from the stream.
readFully(int) - Method in class org.johnnei.javatorrent.network.InStream
Reads length bytes into a new byte array.
readHandshake() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Reads the handshake information from the peer
readInt() - Method in class org.johnnei.javatorrent.network.InStream
Reads an integer from the stream.
readLong() - Method in class org.johnnei.javatorrent.network.InStream
Reads a long from the stream.
readMessage() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
 
readShort() - Method in class org.johnnei.javatorrent.network.InStream
Reads a short from the stream.
readString(int) - Method in class org.johnnei.javatorrent.internal.network.ByteInputStream
 
readString(int) - Method in class org.johnnei.javatorrent.network.InStream
Reads a string from the stream.
readUnsignedByte() - Method in class org.johnnei.javatorrent.network.InStream
Reads an unsigned byte from the stream.
readUnsignedShort() - Method in class org.johnnei.javatorrent.network.InStream
Reads an unsigned short from the stream.
registerConnectionType(Class<T>, Supplier<T>, Optional<Class<? extends ISocket>>) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
 
registerDefaultConnectionType(Class<T>, Supplier<T>, Optional<Class<? extends ISocket>>) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
 
registerInitialPhase(Class<T>, BiFunction<TorrentClient, Torrent, T>, Optional<Class<? extends IDownloadPhase>>) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
 
registerMessage(int, Supplier<IMessage>) - Method in class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory.Builder
 
registerMessage(int, Supplier<IMessage>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
registerModule(IModule) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
registerPhase(Class<T>, BiFunction<TorrentClient, Torrent, T>, Optional<Class<? extends IDownloadPhase>>) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
 
registerProtocol(String, CheckedBiFunction<String, TorrentClient, ITracker, TrackerException>) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
registerTrackerProtocol(String, CheckedBiFunction<String, TorrentClient, ITracker, TrackerException>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
remove(String) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Removes a value from the map.
removeJob(Job) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Removes a job from the working queue if it was listed
removePeer(Peer) - Method in class org.johnnei.javatorrent.torrent.Torrent
Removes a peer from the torrent.
removeTorrent(Torrent) - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Removes a torrent from the list
requireNonNull(T, String) - Static method in class org.johnnei.javatorrent.utils.Argument
Tests for null and throws IllegalArgumentException when null.
requirePositive(int, String) - Static method in class org.johnnei.javatorrent.utils.Argument
Tests if the given integer is positive.
requireWithinBounds(int, int, int, String) - Static method in class org.johnnei.javatorrent.utils.Argument
Tests if the given amount is within the bounds.
resetToMark() - Method in class org.johnnei.javatorrent.network.InStream
Returns to the last marked position with InStream.mark() or 0 if no mark has happened before.
run() - Method in class org.johnnei.javatorrent.async.LoopingRunnable
 
run() - Method in class org.johnnei.javatorrent.internal.disk.IOManager
Processes all pending tasks.
run() - Method in class org.johnnei.javatorrent.internal.network.PeerIoRunnable
 
run() - Method in interface org.johnnei.javatorrent.internal.utils.CheckedRunnable
 
run() - Method in class org.johnnei.javatorrent.network.AbstractPeerConnectionAcceptor
 
run() - Method in class org.johnnei.javatorrent.tracker.PeerConnector
Attempts to establish and process the handshake of a single peer.

S

scrape() - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Requests a scrape off all known torrent in this tracker.
sendHandshake(byte[], byte[], byte[]) - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Writes the handshake onto the output stream
sendMessage() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Sends at most 1 pending message.
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
 
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
 
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
serialize() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
setAbsoluteRequestLimit(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets the amount of requests this peer can support at most
setBlockStatus(int, BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Updates the block status of the block at the given index.
setChoked(PeerDirection, boolean) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets if this peer is choked or not.
setClientName(String) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets the client as reported by the Client in BEP #10.
setConnectionDegradation(ConnectionDegradation) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setDownloadPort(int) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Sets the download port at which we are listening
setEvent(TrackerEvent) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Sets the current event for this Torrent
setExecutorService(ScheduledExecutorService) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setExtensionBytes(byte[]) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setFileSet(AbstractFileSet) - Method in class org.johnnei.javatorrent.torrent.Torrent
Sets the current set of files this torrent is downloading.
setHash(byte[]) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Sets the hash of the torrent.
setHavingPiece(int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Marks a piece as completed.
setHavingPiece(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Registers that this peer has the given piece
setHavingPiece(int) - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
Adds the have to the bitfield and updates the correct fileInfo have counts
setId(byte[]) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setInfo(int, int) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Updates the seeder and leecher counts.
setInfo(int, int, int) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Updates the seeder, leecher and completed downloads count.
setInterested(PeerDirection, boolean) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets if this peer is interested or not.
setMetadata(MetadataFileSet) - Method in class org.johnnei.javatorrent.torrent.Torrent
Sets the associated metadata file of the torrent
setName(String) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Sets the display name for this torrent.
setPassedHandshake() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Marks that this socket has passed the BitTorrent handshake and therefor is a valid BitTorrent socket.
setPeerConnector(Function<TorrentClient, IPeerConnector>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setPeerDistributor(Function<TorrentClient, IPeerDistributor>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Sets the peer distributor which is being used by the IPeerConnector implementation.
setPhaseRegulator(PhaseRegulator) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setPieceSelector(IPieceSelector) - Method in class org.johnnei.javatorrent.torrent.Torrent
 
setRequestLimit(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets the amount of requests we think this peer can handle properly.
This amount will be limited by Peer.absoluteRequestLimit
setSize(int) - Method in class org.johnnei.javatorrent.internal.torrent.peer.Bitfield
Increases or decreased the bitfieldBytes size but it will preserve the old data
setSocket(BitTorrentSocket) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setStatus(BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Block
Updates the status of the block.
setTorrent(Torrent) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setTorrentClient(TorrentClient) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
setTorrentClient(TorrentClient) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Sets the torrent client on which this torrent will be registered.
SHA1 - Class in org.johnnei.javatorrent.bittorrent.encoding
 
shutdown() - Method in class org.johnnei.javatorrent.TorrentClient
Shuts down all components of the TorrentClient.
shutdownTorrent(Torrent) - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Shuts down the torrent processing cleanly.
size() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
 
size() - Method in class org.johnnei.javatorrent.network.OutStream
 
skipBytes(int) - Method in class org.johnnei.javatorrent.network.InStream
Skips the next n bytes on the stream.
start(TorrentClient) - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Starts the connnection listener which will accept new peers
start() - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Starts the peer connector
start() - Method in class org.johnnei.javatorrent.tracker.PeerConnector
Starts the peer connector
start() - Method in class org.johnnei.javatorrent.tracker.PeerConnectorPool
Starts the peer connector
stop() - Method in class org.johnnei.javatorrent.async.LoopingRunnable
Stops the runnable once it has completed its cycle.
stop() - Method in class org.johnnei.javatorrent.internal.torrent.TorrentManager
Gracefully stops the connection processing.
stop() - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Stops the peer connector.
stop() - Method in class org.johnnei.javatorrent.tracker.PeerConnector
Stops the peer connector.
stop() - Method in class org.johnnei.javatorrent.tracker.PeerConnectorPool
Stops the peer connector.
storeBlock(int, byte[]) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Writes the block into the correct file(s)
StringUtils - Class in org.johnnei.javatorrent.utils
 

T

TcpPeerConnectionAcceptor - Class in org.johnnei.javatorrent.network
 
TcpPeerConnectionAcceptor(TorrentClient) - Constructor for class org.johnnei.javatorrent.network.TcpPeerConnectionAcceptor
 
TcpSocket - Class in org.johnnei.javatorrent.internal.network.socket
 
TcpSocket() - Constructor for class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
TcpSocket(Socket) - Constructor for class org.johnnei.javatorrent.internal.network.socket.TcpSocket
Creates a TcpSocket on a pre-connected socket
toByteArray() - Method in class org.johnnei.javatorrent.network.OutStream
 
Torrent - Class in org.johnnei.javatorrent.torrent
 
Torrent(Torrent.Builder) - Constructor for class org.johnnei.javatorrent.torrent.Torrent
Creates a new Torrent.
Torrent.Builder - Class in org.johnnei.javatorrent.torrent
A builder to create new instances of Torrent
torrentClient - Variable in class org.johnnei.javatorrent.network.AbstractPeerConnectionAcceptor
 
TorrentClient - Class in org.johnnei.javatorrent
The Torrent Client is the main entry point for the configuration and initiation of downloads/uploads.
TorrentClient.Builder - Class in org.johnnei.javatorrent
 
TorrentException - Exception in org.johnnei.javatorrent.torrent
An exception class which allows for checked exception which cannot be gracefully handled within the Torrent logic to be thrown.
TorrentException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.torrent.TorrentException
Creates a new torrent exception.
TorrentException(String) - Constructor for exception org.johnnei.javatorrent.torrent.TorrentException
Creates a new torrent exception.
TorrentFileSet - Class in org.johnnei.javatorrent.torrent
 
TorrentFileSet(File, File) - Constructor for class org.johnnei.javatorrent.torrent.TorrentFileSet
Creates a TorrentFileSet instance based upon a .torrent file
TorrentInfo - Class in org.johnnei.javatorrent.bittorrent.tracker
 
TorrentInfo(Torrent, Clock) - Constructor for class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
 
TorrentManager - Class in org.johnnei.javatorrent.internal.torrent
 
TorrentManager(TrackerManager) - Constructor for class org.johnnei.javatorrent.internal.torrent.TorrentManager
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
 
toString() - Method in class org.johnnei.javatorrent.internal.network.socket.TcpSocket
 
toString() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Job
 
toString() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
toString() - Method in class org.johnnei.javatorrent.network.ConnectionDegradation
 
toString() - Method in class org.johnnei.javatorrent.phases.PhaseRegulator
 
toString() - Method in class org.johnnei.javatorrent.torrent.FileInfo
toString() - Method in class org.johnnei.javatorrent.torrent.files.Block
 
toString() - Method in class org.johnnei.javatorrent.torrent.files.Piece
toString() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
toString() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
TrackerAction - Enum in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerEvent - Enum in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerException - Exception in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.bittorrent.tracker.TrackerException
 
TrackerException(String) - Constructor for exception org.johnnei.javatorrent.bittorrent.tracker.TrackerException
 
TrackerFactory - Class in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerFactory.Builder - Class in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerManager - Class in org.johnnei.javatorrent.internal.tracker
Managers the trackers which are used to collect Peers for Torrents
TrackerManager(IPeerConnector, TrackerFactory) - Constructor for class org.johnnei.javatorrent.internal.tracker.TrackerManager
 

U

UncappedDistributor - Class in org.johnnei.javatorrent.tracker
An implementation of IPeerDistributor which does not cap the amount of peers.
UncappedDistributor() - Constructor for class org.johnnei.javatorrent.tracker.UncappedDistributor
Creates an instance of UncappedDistributor
UncappedDistributor(TorrentClient) - Constructor for class org.johnnei.javatorrent.tracker.UncappedDistributor
Creates an instance of UncappedDistributor which allows for UncappedDistributor::new to be used in TorrentClient.Builder.setPeerDistributor(Function)
unchoke() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Marks the client as unchoked.
uninterested() - Method in class org.johnnei.javatorrent.internal.torrent.peer.Client
Marks the client as uninterested.
updateChoking(Peer) - Method in interface org.johnnei.javatorrent.torrent.algos.choking.IChokingStrategy
Checks and possibly updates the choke states of the Peer.
updateChoking(Peer) - Method in class org.johnnei.javatorrent.torrent.algos.choking.PermissiveStrategy
Checks and possibly updates the choke states of the Peer.
updateChoking(Peer) - Method in class org.johnnei.javatorrent.torrent.algos.choking.PermissiveUploadStrategy
 

V

valueOf(String) - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.internal.disk.DiskJobPriority
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.torrent.files.BlockStatus
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.torrent.peer.PeerDirection
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.internal.disk.DiskJobPriority
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.torrent.files.BlockStatus
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.torrent.peer.PeerDirection
Returns an array containing the constants of this enum type, in the order they are declared.
Version - Class in org.johnnei.javatorrent
 
VERSION - Static variable in class org.johnnei.javatorrent.Version
 
VERSION_MAJOR - Static variable in class org.johnnei.javatorrent.Version
 
VERSION_MINOR - Static variable in class org.johnnei.javatorrent.Version
 
VERSION_PATCH - Static variable in class org.johnnei.javatorrent.Version
 

W

write(OutStream) - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
Writes the message to the output stream
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
write(OutStream) - Method in class org.johnnei.javatorrent.internal.bittorrent.protocol.messages.AbstractBlockMessage
 
write(int) - Method in class org.johnnei.javatorrent.internal.network.ByteOutputStream
 
write(byte[]) - Method in class org.johnnei.javatorrent.network.OutStream
 
write(byte[], int, int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeBoolean(boolean) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeByte(int) - Method in class org.johnnei.javatorrent.internal.network.ByteOutputStream
 
writeByte(int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeInt(int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeLong(long) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeShort(int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeString(String) - Method in class org.johnnei.javatorrent.internal.network.ByteOutputStream
 
writeString(String) - Method in class org.johnnei.javatorrent.network.OutStream
 
A B C D E F G H I J L M O P Q R S T U V W 
Skip navigation links

Copyright © 2016. All rights reserved.