Class ClientIDManagerImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.clientid.ClientIDManagerImpl
-
- All Implemented Interfaces:
ClientIDManager
public class ClientIDManagerImpl extends java.lang.Object implements ClientIDManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ClientIDManagerImpl.httpFilter
-
Field Summary
Fields Modifier and Type Field Description private static int
connect_timeout
protected static char
CR
protected static char
FF
private java.lang.Object
filter_lock
private boolean
filter_override
private int
filter_port
private ClientIDGenerator
generator
private static LogIDs
LOGID
protected static java.lang.String
NL
private static int
read_timeout
protected static ClientIDManagerImpl
singleton
private ThreadPool
thread_pool
private boolean
use_filter
-
Constructor Summary
Constructors Constructor Description ClientIDManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateHTTPProperties(byte[] hash, java.util.Properties properties)
byte[]
generatePeerID(byte[] hash, boolean for_tracker)
ClientIDGenerator
getGenerator()
java.lang.Object
getProperty(byte[] hash, java.lang.String property_name)
static ClientIDManagerImpl
getSingleton()
void
setGenerator(ClientIDGenerator _generator, boolean _use_filter)
private void
setupFilter(boolean force)
-
-
-
Field Detail
-
LOGID
private static final LogIDs LOGID
-
singleton
protected static ClientIDManagerImpl singleton
-
CR
protected static final char CR
- See Also:
- Constant Field Values
-
FF
protected static final char FF
- See Also:
- Constant Field Values
-
NL
protected static final java.lang.String NL
- See Also:
- Constant Field Values
-
connect_timeout
private static final int connect_timeout
-
read_timeout
private static final int read_timeout
-
generator
private ClientIDGenerator generator
-
use_filter
private volatile boolean use_filter
-
filter_override
private boolean filter_override
-
thread_pool
private ThreadPool thread_pool
-
filter_lock
private java.lang.Object filter_lock
-
filter_port
private int filter_port
-
-
Method Detail
-
getSingleton
public static ClientIDManagerImpl getSingleton()
-
setGenerator
public void setGenerator(ClientIDGenerator _generator, boolean _use_filter)
-
setupFilter
private void setupFilter(boolean force)
-
getGenerator
public ClientIDGenerator getGenerator()
- Specified by:
getGenerator
in interfaceClientIDManager
-
generatePeerID
public byte[] generatePeerID(byte[] hash, boolean for_tracker) throws ClientIDException
- Throws:
ClientIDException
-
getProperty
public java.lang.Object getProperty(byte[] hash, java.lang.String property_name)
-
generateHTTPProperties
public void generateHTTPProperties(byte[] hash, java.util.Properties properties) throws ClientIDException
- Throws:
ClientIDException
-
-