Package org.openscada.opc.dcom.da.impl
Class OPCServer
java.lang.Object
org.openscada.opc.dcom.common.impl.BaseCOMObject
org.openscada.opc.dcom.da.impl.OPCServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroup(String name, boolean active, int updateRate, int clientHandle, Integer timeBias, Float percentDeadband, int localeID) Get the browser object (IOPCBrowseServerAddressSpace) from the server instanceGet the common interface if supportedgetGroupByName(String name) getGroups(OPCENUMSCOPE scope) Get the groupsRetrieve the current server statusvoidremoveGroup(int serverHandle, boolean force) voidremoveGroup(OPCGroupStateMgt group, boolean force) Methods inherited from class org.openscada.opc.dcom.common.impl.BaseCOMObject
getCOMObject
-
Constructor Details
-
OPCServer
public OPCServer(org.jinterop.dcom.core.IJIComObject opcServer) throws IllegalArgumentException, UnknownHostException, org.jinterop.dcom.common.JIException - Throws:
IllegalArgumentExceptionUnknownHostExceptionorg.jinterop.dcom.common.JIException
-
-
Method Details
-
getStatus
Retrieve the current server status- Returns:
- the current server status
- Throws:
org.jinterop.dcom.common.JIException
-
addGroup
public OPCGroupStateMgt addGroup(String name, boolean active, int updateRate, int clientHandle, Integer timeBias, Float percentDeadband, int localeID) throws org.jinterop.dcom.common.JIException, IllegalArgumentException, UnknownHostException - Throws:
org.jinterop.dcom.common.JIExceptionIllegalArgumentExceptionUnknownHostException
-
removeGroup
public void removeGroup(int serverHandle, boolean force) throws org.jinterop.dcom.common.JIException - Throws:
org.jinterop.dcom.common.JIException
-
removeGroup
public void removeGroup(OPCGroupStateMgt group, boolean force) throws org.jinterop.dcom.common.JIException - Throws:
org.jinterop.dcom.common.JIException
-
getGroupByName
public OPCGroupStateMgt getGroupByName(String name) throws org.jinterop.dcom.common.JIException, IllegalArgumentException, UnknownHostException - Throws:
org.jinterop.dcom.common.JIExceptionIllegalArgumentExceptionUnknownHostException
-
getGroups
public EnumString getGroups(OPCENUMSCOPE scope) throws org.jinterop.dcom.common.JIException, IllegalArgumentException, UnknownHostException Get the groups- Parameters:
scope- The scope to get- Returns:
- A string enumerator with the groups
- Throws:
org.jinterop.dcom.common.JIExceptionIllegalArgumentExceptionUnknownHostException
-
getItemPropertiesService
-
getItemIOService
-
getBrowser
Get the browser object (IOPCBrowseServerAddressSpace) from the server instance- Returns:
- the browser object
-
getCommon
Get the common interface if supported- Returns:
- the common interface or
nullif it is not supported
-