public abstract class ServerListBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DateTime |
lastCounterResetTime |
protected List<ApplicationDescription> |
servers |
protected List<ServerOnNetwork> |
serversOnNetwork |
| Constructor and Description |
|---|
ServerListBase() |
ServerListBase(String uri)
Create a new list of servers, containing the servers discovered from a discoveryServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the list.
|
abstract void |
discover(String discoveryServerUri)
Discover OPCUA applications from a discovery server.
|
ApplicationDescription |
get(int index)
Get the description of a server.
|
DateTime |
getLastCounterResetTime()
The last time the counters were reset
|
ApplicationDescription[] |
getServers()
The current list of discovered servers.
|
ServerOnNetwork[] |
getServersOnNetwork()
Get the discovered ServerOnNetwork records
|
boolean |
isEmpty()
Check if the
getServers() list is empty. |
int |
size() |
protected DateTime lastCounterResetTime
protected final List<ApplicationDescription> servers
protected final List<ServerOnNetwork> serversOnNetwork
public ServerListBase()
public ServerListBase(String uri) throws ServerListException
uri - The URI of the discovery server to discover.ServerListException - if the discovery failspublic void clear()
public abstract void discover(String discoveryServerUri) throws ServerListException
discoveryServerUri - URI of the discovery serverServerListException - if the discoverypublic ApplicationDescription get(int index)
index - the index of the server in the listpublic DateTime getLastCounterResetTime()
public ApplicationDescription[] getServers()
public ServerOnNetwork[] getServersOnNetwork()
public boolean isEmpty()
getServers() list is empty. Note that getServersOnNetwork() may
still provide entries.public int size()
Copyright © 2026. All rights reserved.