public class Connection extends SessionConnectionBase implements Connection
| Modifier and Type | Class and Description |
|---|---|
static class |
Connection.WriteAttributeOperationFuture |
static class |
Connection.WriteOperationFuture |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION |
executor, SESSION_CLIENT_VERSIONmessenger, session, statistics| Constructor and Description |
|---|
Connection(ConnectionInformation connectionInformantion) |
| Modifier and Type | Method and Description |
|---|---|
void |
browse(Location location,
BrowseOperationCallback callback)
Browse a server folder for items.
|
Entry[] |
browse(Location location,
int timeout) |
protected Entry[] |
completeBrowse(LongRunningOperation operation) |
protected void |
completeWrite(LongRunningOperation operation) |
WriteAttributeResults |
completeWriteAttributes(LongRunningOperation operation) |
java.util.concurrent.ScheduledExecutorService |
getExecutor()
Retrieve the executor that is currently set
|
java.lang.String |
getRequiredVersion() |
protected void |
onConnectionClosed() |
protected void |
performSubscriptionChange(Message message) |
FolderListener |
setFolderListener(Location location,
FolderListener listener)
Set the listener for this location.
|
ItemUpdateListener |
setItemUpdateListener(java.lang.String itemId,
ItemUpdateListener listener)
Set the listener for this item.
|
|
startWrite(java.lang.String itemId,
Variant value,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
|
startWriteAttributes(java.lang.String itemId,
java.util.Map<java.lang.String,Variant> attributes,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
void |
subscribeFolder(Location location) |
void |
subscribeItem(java.lang.String itemId) |
void |
unsubscribeFolder(Location location) |
void |
unsubscribeItem(java.lang.String itemId) |
void |
write(java.lang.String item,
Variant value,
OperationParameters operationParameters,
WriteOperationCallback callback) |
void |
writeAttributes(java.lang.String item,
java.util.Map<java.lang.String,Variant> attributes,
OperationParameters operationParameters,
WriteAttributeOperationCallback callback) |
addPrivilegeListener, dispose, getPrivileges, handlePrivChange, modifyFilterChain, onConnectionEstablished, processSessionReply, removePrivilegeListener, requestSessionaddConnectionStateListener, cancelConnection, connect, connect, connectFailed, disconnect, disconnect, exceptionCaught, finalize, getConnectionInformation, getConnectTimeout, getIntProperty, getMessageTimeout, getPingPeriod, getSessionProperties, getSocketReceiveBufferSize, getSocketSendBufferSize, getState, getStatistics, isConnected, messageReceived, messageSent, onConnectionBound, performConnect, performLookup, removeConnectionStateListener, resolvedRemoteAddress, sessionClosed, sessionCreated, sessionIdle, sessionOpened, setBound, setCallbackFactory, setupConnector, switchStateclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionStateListener, addPrivilegeListener, connect, connect, disconnect, dispose, getConnectionInformation, getPrivileges, getSessionProperties, getState, removeConnectionStateListener, removePrivilegeListener, setCallbackFactorypublic static final java.lang.String VERSION
public java.lang.String getRequiredVersion()
getRequiredVersion in class SessionConnectionBasepublicstartWrite(java.lang.String itemId, Variant value, OperationParameters operationParameters, CallbackHandler callbackHandler)
public void write(java.lang.String item,
Variant value,
OperationParameters operationParameters,
WriteOperationCallback callback)
protected void completeWrite(LongRunningOperation operation)
throws OperationException
OperationExceptionpublicstartWriteAttributes(java.lang.String itemId, java.util.Map<java.lang.String,Variant> attributes, OperationParameters operationParameters, CallbackHandler callbackHandler)
public void writeAttributes(java.lang.String item,
java.util.Map<java.lang.String,Variant> attributes,
OperationParameters operationParameters,
WriteAttributeOperationCallback callback)
public WriteAttributeResults completeWriteAttributes(LongRunningOperation operation) throws OperationException
OperationExceptionprotected Entry[] completeBrowse(LongRunningOperation operation) throws OperationException
OperationExceptionpublic void subscribeItem(java.lang.String itemId)
throws NoConnectionException
NoConnectionExceptionpublic void unsubscribeItem(java.lang.String itemId)
throws NoConnectionException
NoConnectionExceptionpublic ItemUpdateListener setItemUpdateListener(java.lang.String itemId, ItemUpdateListener listener)
ConnectionitemId - The item for which to set the listenerlistener - The listener to setnull if there was no
previous listenerpublic FolderListener setFolderListener(Location location, FolderListener listener)
Connectionlocation - The location for which to set the listenerlistener - The listener to setnull if there was no
previous listenerpublic void subscribeFolder(Location location) throws NoConnectionException, OperationException
NoConnectionExceptionOperationExceptionpublic void unsubscribeFolder(Location location) throws NoConnectionException, OperationException
NoConnectionExceptionOperationExceptionprotected void onConnectionClosed()
onConnectionClosed in class SessionConnectionBaseprotected void performSubscriptionChange(Message message)
public Entry[] browse(Location location, int timeout) throws NoConnectionException, OperationException
NoConnectionExceptionOperationExceptionpublic void browse(Location location, BrowseOperationCallback callback)
Connectionlocation - The path to browsecallback - The callback that shall receive notifications of the operationpublic java.util.concurrent.ScheduledExecutorService getExecutor()
Connectionnull
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0