com.aelitis.azureus.core.pairing.impl
Class PairingManagerImpl
java.lang.Object
com.aelitis.azureus.core.pairing.impl.PairingManagerImpl
- All Implemented Interfaces:
- PairingManager, AEDiagnosticsEvidenceGenerator
public class PairingManagerImpl
- extends Object
- implements PairingManager, AEDiagnosticsEvidenceGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PairingManagerImpl
protected PairingManagerImpl()
getSingleton
public static PairingManager getSingleton()
initialise
protected void initialise(AzureusCore _core)
waitForInitialisation
protected void waitForInitialisation()
throws PairingException
- Throws:
PairingException
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface PairingManager
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interface PairingManager
isSRPEnabled
public boolean isSRPEnabled()
- Specified by:
isSRPEnabled
in interface PairingManager
setSRPEnabled
public void setSRPEnabled(boolean enabled)
- Specified by:
setSRPEnabled
in interface PairingManager
setGroup
public void setGroup(String group)
- Specified by:
setGroup
in interface PairingManager
getGroup
public String getGroup()
- Specified by:
getGroup
in interface PairingManager
listGroup
public List<PairedNode> listGroup()
throws PairingException
- Specified by:
listGroup
in interface PairingManager
- Throws:
PairingException
lookupServices
public List<PairedService> lookupServices(String access_code)
throws PairingException
- Specified by:
lookupServices
in interface PairingManager
- Throws:
PairingException
setStatus
protected void setStatus(String str)
getStatus
public String getStatus()
- Specified by:
getStatus
in interface PairingManager
getSRPStatus
public String getSRPStatus()
- Specified by:
getSRPStatus
in interface PairingManager
setLastServerError
protected void setLastServerError(String error)
getLastServerError
public String getLastServerError()
- Specified by:
getLastServerError
in interface PairingManager
hasActionOutstanding
public boolean hasActionOutstanding()
- Specified by:
hasActionOutstanding
in interface PairingManager
readAccessCode
protected String readAccessCode()
writeAccessCode
protected void writeAccessCode(String ac)
getQRCode
public File getQRCode()
- Specified by:
getQRCode
in interface PairingManager
allocateAccessCode
protected String allocateAccessCode(boolean updating)
throws PairingException
- Throws:
PairingException
peekAccessCode
public String peekAccessCode()
- Specified by:
peekAccessCode
in interface PairingManager
getAccessCode
public String getAccessCode()
throws PairingException
- Specified by:
getAccessCode
in interface PairingManager
- Throws:
PairingException
getAccessCode
public void getAccessCode(PairingManagerListener listener)
throws PairingException
- Throws:
PairingException
getReplacementAccessCode
public String getReplacementAccessCode()
throws PairingException
- Specified by:
getReplacementAccessCode
in interface PairingManager
- Throws:
PairingException
addService
public PairedService addService(String sid,
PairedServiceRequestHandler handler)
- Specified by:
addService
in interface PairingManager
getService
public PairingManagerImpl.PairedServiceImpl getService(String sid)
- Specified by:
getService
in interface PairingManager
remove
protected void remove(PairingManagerImpl.PairedServiceImpl service)
sync
protected void sync(PairingManagerImpl.PairedServiceImpl service)
updateAddress
protected InetAddress updateAddress(InetAddress current,
InetAddress latest,
boolean v6)
updateGlobals
protected void updateGlobals(boolean is_updating)
getString
protected String getString(Set<String> set)
enableUpdates
protected void enableUpdates()
updateNeeded
protected void updateNeeded()
doUpdate
protected void doUpdate()
deferUpdate
protected void deferUpdate(long millis)
testService
public PairingTest testService(String sid,
PairingTestListener listener)
throws PairingException
- Specified by:
testService
in interface PairingManager
- Throws:
PairingException
updateSRPState
protected void updateSRPState()
setSRPPassword
public void setSRPPassword(char[] password)
- Specified by:
setSRPPassword
in interface PairingManager
handleLocalTunnel
public boolean handleLocalTunnel(TrackerWebPageRequest request,
TrackerWebPageResponse response)
throws IOException
- Specified by:
handleLocalTunnel
in interface PairingManager
- Throws:
IOException
recordRequest
public void recordRequest(String name,
String ip,
boolean good)
- Specified by:
recordRequest
in interface PairingManager
fireChanged
protected void fireChanged()
addListener
public void addListener(PairingManagerListener l)
- Specified by:
addListener
in interface PairingManager
removeListener
public void removeListener(PairingManagerListener l)
- Specified by:
removeListener
in interface PairingManager
getString
protected String getString(Map<String,Object> map,
String name)
throws IOException
- Throws:
IOException
generate
public void generate(IndentWriter writer)
- Specified by:
generate
in interface AEDiagnosticsEvidenceGenerator