|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.protocol.data.EmbeddedBitTorrentServer
public class EmbeddedBitTorrentServer
An object with BT data tracking and sharing capabilities. Data downloading is not directly supported by this object, but you may require the service to be running in order to download BitTorrent data
Constructor Summary | |
---|---|
EmbeddedBitTorrentServer(java.lang.String cacheDirectory,
java.lang.String trackerHost,
int trackerPort,
int btDataPort)
Creates a BitTorrent server. |
Method Summary | |
---|---|
void |
removeFromBitTorrent(Metadata<java.lang.String> meta)
Removes all mention of an entry in BitTorrent structures. |
void |
start()
Starts the BitTorrent service. |
void |
stop()
|
java.lang.String |
toString()
|
TorrentGridData |
track(Metadata<java.lang.String> meta)
Hosts the GridData and render it available for torrenting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedBitTorrentServer(java.lang.String cacheDirectory, java.lang.String trackerHost, int trackerPort, int btDataPort) throws GridException
cacheDirectory
- trackerHost
- The BitTorrent tracker host (i.e. the local host).
Set to null for no tracking possibilites.trackerPort
- The desired BitTorrent tracker port. Will be ignored
if trackerHHost is null.btDataPort
-
GridException
Method Detail |
---|
public void start()
public void stop()
public TorrentGridData track(Metadata<java.lang.String> meta) throws GridException
GridException
public void removeFromBitTorrent(Metadata<java.lang.String> meta) throws GridException
meta
- The entry to remove
GridException
- If a step in removal failed.public java.lang.String toString()
toString
in class java.lang.Object
|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.