public class NetworkServerList extends Object
Constructor and Description |
---|
NetworkServerList()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addServer(NetworkServer server)
Add a server to the list
|
NetworkServer |
findServer(String name)
Find a server in the list by name
|
NetworkServer |
getServer(int idx)
Return the specified server
|
int |
numberOfServers()
Return the number of servers in the list
|
void |
removeAll()
Remove all servers from the list
|
NetworkServer |
removeServer(int idx)
Remove the server at the specified position within the list
|
NetworkServer |
removeServer(String proto)
Remove the server with the specified protocol name
|
public final int numberOfServers()
public final void addServer(NetworkServer server)
server
- NetworkServerpublic final NetworkServer getServer(int idx)
idx
- intpublic final NetworkServer findServer(String name)
name
- Stringpublic final NetworkServer removeServer(int idx)
idx
- intpublic final NetworkServer removeServer(String proto)
proto
- Stringpublic final void removeAll()
Copyright © 2005–2017 Alfresco Software. All rights reserved.