public class ORemoteURLs extends Object
| Constructor and Description |
|---|
ORemoteURLs(String[] hosts,
OContextConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(List<String> toAdd,
OContextConfiguration clientConfiguration) |
protected String |
addHost(String host,
OContextConfiguration clientConfiguration)
Registers the remote server with port.
|
protected int |
getDefaultPort() |
protected int |
getDefaultSSLPort() |
String |
getNextAvailableServerURL(boolean iIsConnectOperation,
OStorageRemoteSession session,
OContextConfiguration contextConfiguration,
OStorageRemote.CONNECTION_STRATEGY strategy) |
String |
getServerURFromList(boolean iNextAvailable,
OStorageRemoteSession session,
OContextConfiguration contextConfiguration) |
List<String> |
getUrls() |
String |
parseServerUrls(String url,
OContextConfiguration contextConfiguration) |
void |
reloadOriginalURLs() |
void |
remove(String serverUrl) |
String |
removeAndGet(String url) |
void |
updateDistributedNodes(List<String> hosts,
OContextConfiguration clientConfiguration) |
public ORemoteURLs(String[] hosts, OContextConfiguration config)
public void remove(String serverUrl)
public void addAll(List<String> toAdd, OContextConfiguration clientConfiguration)
protected String addHost(String host, OContextConfiguration clientConfiguration)
protected int getDefaultPort()
protected int getDefaultSSLPort()
public String parseServerUrls(String url, OContextConfiguration contextConfiguration)
public void reloadOriginalURLs()
public String getServerURFromList(boolean iNextAvailable, OStorageRemoteSession session, OContextConfiguration contextConfiguration)
public String getNextAvailableServerURL(boolean iIsConnectOperation, OStorageRemoteSession session, OContextConfiguration contextConfiguration, OStorageRemote.CONNECTION_STRATEGY strategy)
public void updateDistributedNodes(List<String> hosts, OContextConfiguration clientConfiguration)
Copyright © 2009–2023 OrientDB. All rights reserved.