|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.ConnectionServicesImpl
public class ConnectionServicesImpl
| Constructor Summary | |
|---|---|
ConnectionServicesImpl(com.google.inject.Provider<ConnectionManager> connectionManager,
com.google.inject.Provider<HostCatcher> hostCatcher,
com.google.inject.Provider<UDPMultiplexor> udpMultiplexor,
com.google.inject.Provider<UploadManager> uploadManager,
com.google.inject.Provider<Acceptor> acceptor,
com.google.inject.Provider<SpamServices> spamServices)
|
|
| Method Summary | |
|---|---|
void |
connect()
Connects to the network. |
void |
connectToHostAsynchronously(String hostname,
int portnum,
SocketsManager.ConnectType type)
Creates a new outgoing messaging connection to the given host and port. |
int |
countConnectionsWithNMessages(int messageThreshold)
Count how many connections have already received N messages |
void |
disconnect()
Disconnects from the network. |
int |
getActiveConnectionMessages()
Count up all the messages on active connections |
int |
getNumInitializedConnections()
Returns the number of initialized messaging connections. |
Collection<IpPort> |
getPreferencedHosts(boolean isUltrapeer,
String locale,
int num)
Returns a collection of IpPorts, preferencing hosts with open slots. |
boolean |
isActiveSuperNode()
Tells whether the node is currently connected to the network as a supernode or not. |
boolean |
isConnected()
Returns whether or not this client currently has any initialized connections. |
boolean |
isConnectedTo(InetAddress addr)
Determines if you're connected to the given host. |
boolean |
isConnecting()
Returns whether or not this client is attempting to connect. |
boolean |
isFullyConnected()
Returns whether or not this client currently has any initialized connections. |
boolean |
isShieldedLeaf()
Accessor for whether or not this node is a shielded leaf. |
boolean |
isSupernode()
Tells whether the node is a supernode or not. |
void |
removeConnection(RoutedConnection c)
Closes and removes the given connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public ConnectionServicesImpl(com.google.inject.Provider<ConnectionManager> connectionManager,
com.google.inject.Provider<HostCatcher> hostCatcher,
com.google.inject.Provider<UDPMultiplexor> udpMultiplexor,
com.google.inject.Provider<UploadManager> uploadManager,
com.google.inject.Provider<Acceptor> acceptor,
com.google.inject.Provider<SpamServices> spamServices)
| Method Detail |
|---|
public boolean isShieldedLeaf()
ConnectionServices
isShieldedLeaf in interface ConnectionServicespublic boolean isActiveSuperNode()
ConnectionServices
isActiveSuperNode in interface ConnectionServicespublic boolean isSupernode()
ConnectionServices
isSupernode in interface ConnectionServicespublic boolean isConnecting()
ConnectionServices
isConnecting in interface ConnectionServicespublic boolean isConnected()
ConnectionServices
isConnected in interface ConnectionServicespublic boolean isFullyConnected()
ConnectionServices
isFullyConnected in interface ConnectionServices
public Collection<IpPort> getPreferencedHosts(boolean isUltrapeer,
String locale,
int num)
ConnectionServices
getPreferencedHosts in interface ConnectionServicesnum - How many endpoints to try to getpublic int countConnectionsWithNMessages(int messageThreshold)
ConnectionServices
countConnectionsWithNMessages in interface ConnectionServicespublic int getActiveConnectionMessages()
ConnectionServices
getActiveConnectionMessages in interface ConnectionServicespublic void removeConnection(RoutedConnection c)
ConnectionServices
removeConnection in interface ConnectionServicespublic void disconnect()
ConnectionServices
disconnect in interface ConnectionServicespublic void connect()
ConnectionServices
connect in interface ConnectionServicespublic boolean isConnectedTo(InetAddress addr)
ConnectionServices
isConnectedTo in interface ConnectionServices
public void connectToHostAsynchronously(String hostname,
int portnum,
SocketsManager.ConnectType type)
ConnectionServices
connectToHostAsynchronously in interface ConnectionServicespublic int getNumInitializedConnections()
ConnectionServices
getNumInitializedConnections in interface ConnectionServices
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||