public class AnonymousProxyUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AnonymousProxyUtils.GetNumberRunningProxies
A thread to retrieve the number of proxy instances the result is placed in the referenced JLabel
|
static class |
AnonymousProxyUtils.TerminateRunningProxies
A thread to terminate all proxy instances the result is placed in the referenced JLabel
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
anonymousProxyInfoURL |
static java.util.List<ProxyServer> |
automaticAnonymizationProxyServers
This allows us to maintain a central reference to the pool of automatic anonymization proxies.
|
static java.lang.String |
noAnonymousProxyAccountLogMessage |
static java.lang.String |
noAnonymousProxyAccountPopUpMessage |
Constructor and Description |
---|
AnonymousProxyUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<ProxyServer> |
getAutomaticAnonymizationProxyServersList()
Gets the static instance of the
List<ProxyServer> to be used for holding automatic anonymization proxies. |
static void |
getNumberOfRunnigProxies(javax.swing.JLabel lblInstances)
Creates a new GetNumberRunningProxies object and starts a new thread to get the number of running proxies.
|
static int |
getNumProxies()
Gets the number of currently running proxies for this user.
|
static java.util.List<ProxyServer> |
spawnProxyInstances(int numberOfInstances)
Sends a message to the server to spawn the given number of proxy instances.
|
static void |
terminateRunningProxies()
Terminates all the running proxies for this user
|
static void |
terminateRunningProxies(javax.swing.JLabel lblMessage)
Creates a new TerminateRunningProxies object and starts a new thread to terminate the currently running proxies.
|
static void |
updateProxySettings()
Updates the general information for the user
|
@NotNull public static java.lang.String anonymousProxyInfoURL
@NotNull public static java.lang.String noAnonymousProxyAccountLogMessage
@NotNull public static java.lang.String noAnonymousProxyAccountPopUpMessage
public static final java.util.List<ProxyServer> automaticAnonymizationProxyServers
@NotNull public static java.util.List<ProxyServer> getAutomaticAnonymizationProxyServersList()
List<ProxyServer>
to be used for holding automatic anonymization proxies.Vector
.public static int getNumProxies()
public static void updateProxySettings()
public static void terminateRunningProxies()
@NotNull public static java.util.List<ProxyServer> spawnProxyInstances(int numberOfInstances)
numberOfInstances
- the number of proxy instances to spawn.public static void getNumberOfRunnigProxies(javax.swing.JLabel lblInstances)
lblInstances
- the label to put the results inpublic static void terminateRunningProxies(javax.swing.JLabel lblMessage)
lblMessage
- the label to put the results in