public class ServerList extends Object
OPCServerList class which makes the handling somewhat easier.| Constructor and Description |
|---|
ServerList(JISession session,
String host)
Create a new instance with an already existing session
|
ServerList(String host,
String user,
String password)
Create a new instance and a new DCOM session
|
ServerList(String host,
String user,
String password,
String domain)
Create a new instance and a new DCOM session
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClsIdFromProgId(String progId)
Fetch the class id of a prog id
|
ClassDetails |
getDetails(String clsId)
Get the details of a opc class
|
Collection<String> |
listServers(Category[] implemented,
Category[] required)
List all servers that match the requirements
|
Collection<ClassDetails> |
listServersWithDetails(Category[] implemented,
Category[] required)
List all servers that match the requirements and return the class details
|
public ServerList(JISession session, String host) throws IllegalArgumentException, UnknownHostException, JIException
session - the DCOM sessionhost - the host to queryIllegalArgumentExceptionUnknownHostExceptionJIExceptionpublic ServerList(String host, String user, String password) throws IllegalArgumentException, UnknownHostException, JIException
host - the host to contactuser - the user to use for authenticationpassword - the password to use for authenticationIllegalArgumentExceptionUnknownHostExceptionJIExceptionpublic ServerList(String host, String user, String password, String domain) throws IllegalArgumentException, UnknownHostException, JIException
host - the host to contactuser - the user to use for authenticationpassword - the password to use for authenticationdomain - The domain to use for authenticationIllegalArgumentExceptionUnknownHostExceptionJIExceptionpublic ClassDetails getDetails(String clsId) throws JIException
clsId - the class to request details forJIExceptionpublic String getClsIdFromProgId(String progId) throws JIException
progId - The prog id to look upnull if none could be found.JIExceptionpublic Collection<String> listServers(Category[] implemented, Category[] required) throws IllegalArgumentException, UnknownHostException, JIException
implemented - All implemented categoriesrequired - All required categoriesclass ids
IllegalArgumentExceptionUnknownHostExceptionJIExceptionpublic Collection<ClassDetails> listServersWithDetails(Category[] implemented, Category[] required) throws IllegalArgumentException, UnknownHostException, JIException
implemented - All implemented categoriesrequired - All required categoriesIllegalArgumentExceptionUnknownHostExceptionJIExceptionCopyright © 2017 LSST. All rights reserved.