Package org.openscada.opc.lib.da
Class AccessBase
java.lang.Object
org.openscada.opc.lib.da.AccessBase
- All Implemented Interfaces:
ServerConnectionStateListener
- Direct Known Subclasses:
Async20Access,SyncAccess,WriteableAccessBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.slf4j.Loggerprotected Groupprotected Map<Item, DataCallback> Holds the item to callback assignmentprotected Map<String, DataCallback> protected Stringprotected Server -
Constructor Summary
ConstructorsConstructorDescriptionAccessBase(Server server, int period) AccessBase(Server server, int period, String logTag) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(String itemId, DataCallback dataCallback) voidaddStateListener(AccessStateListener listener) voidbind()voidclear()voidconnectionStateChanged(boolean connected) intprotected voidbooleanisActive()booleanisBound()protected voidprotected voidnotifyStateListenersState(boolean state) protected voidprotected voidrealizeItem(String itemId) voidremoveItem(String itemId) voidremoveStateListener(AccessStateListener listener) protected voidstart()protected voidstop()voidunbind()protected voidprotected voidunrealizeItem(String itemId) protected voidupdateItem(Item item, ItemState itemState)
-
Field Details
-
server
-
group
-
active
protected boolean active -
items
Holds the item to callback assignment -
itemMap
-
itemCache
-
itemSet
-
logTag
-
dataLogger
protected org.slf4j.Logger dataLogger
-
-
Constructor Details
-
AccessBase
public AccessBase(Server server, int period) throws IllegalArgumentException, UnknownHostException, NotConnectedException, org.jinterop.dcom.common.JIException, DuplicateGroupException - Throws:
IllegalArgumentExceptionUnknownHostExceptionNotConnectedExceptionorg.jinterop.dcom.common.JIExceptionDuplicateGroupException
-
AccessBase
-
-
Method Details
-
isBound
public boolean isBound() -
bind
public void bind() -
unbind
public void unbind() throws org.jinterop.dcom.common.JIException- Throws:
org.jinterop.dcom.common.JIException
-
isActive
public boolean isActive() -
addStateListener
-
removeStateListener
-
notifyStateListenersState
protected void notifyStateListenersState(boolean state) -
notifyStateListenersError
-
getPeriod
public int getPeriod() -
addItem
public void addItem(String itemId, DataCallback dataCallback) throws org.jinterop.dcom.common.JIException, AddFailedException - Throws:
org.jinterop.dcom.common.JIExceptionAddFailedException
-
removeItem
-
connectionStateChanged
public void connectionStateChanged(boolean connected) - Specified by:
connectionStateChangedin interfaceServerConnectionStateListener
-
start
protected void start() throws org.jinterop.dcom.common.JIException, IllegalArgumentException, UnknownHostException, NotConnectedException, DuplicateGroupException- Throws:
org.jinterop.dcom.common.JIExceptionIllegalArgumentExceptionUnknownHostExceptionNotConnectedExceptionDuplicateGroupException
-
realizeItem
protected void realizeItem(String itemId) throws org.jinterop.dcom.common.JIException, AddFailedException - Throws:
org.jinterop.dcom.common.JIExceptionAddFailedException
-
unrealizeItem
-
realizeAll
protected void realizeAll() -
unrealizeAll
protected void unrealizeAll() -
stop
protected void stop() throws org.jinterop.dcom.common.JIException- Throws:
org.jinterop.dcom.common.JIException
-
clear
public void clear() -
updateItem
-
handleError
-