public class ServerConnectionHandler extends AbstractServerConnectionHandler implements ItemChangeListener, FolderListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION |
connectionInformation, ioSession, messenger, pingService| Constructor and Description |
|---|
ServerConnectionHandler(Hive hive,
IoSession ioSession,
ConnectionInformation connectionInformation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp() |
void |
dataChanged(java.lang.String itemId,
Variant value,
java.util.Map<java.lang.String,Variant> attributes,
boolean cache)
A change on the data item occurred.
|
void |
folderChanged(Location location,
java.util.List<Entry> added,
java.util.Set<java.lang.String> removed,
boolean full) |
protected void |
handleCreateSessionComplete(java.util.concurrent.Future<Session> future,
Message message,
java.util.Properties props) |
void |
subscriptionChanged(java.lang.String item,
SubscriptionState subscriptionState)
Indicating a change in the item subscription
|
exceptionCaught, getBooleanProperty, getIntProperty, getMessageTimeout, getPingPeriod, getTransportProperties, messageReceived, messageSent, modifyFilterChain, replySessionCreated, sendPrivilegeChange, sessionClosed, sessionConfigured, sessionCreated, sessionIdle, sessionOpened, startSessionpublic static final java.lang.String VERSION
public ServerConnectionHandler(Hive hive, IoSession ioSession, ConnectionInformation connectionInformation)
protected void handleCreateSessionComplete(java.util.concurrent.Future<Session> future, Message message, java.util.Properties props)
protected void cleanUp()
cleanUp in class AbstractServerConnectionHandlerpublic void dataChanged(java.lang.String itemId,
Variant value,
java.util.Map<java.lang.String,Variant> attributes,
boolean cache)
ItemChangeListenerdataChanged in interface ItemChangeListeneritemId - The item id that changedvalue - The new value, or null if the value did not
changeattributes - The attributes that changed, may be null if no
attribute change at allcache - Indicating that the change came from the cache, this means
that the change was not triggered by a device and that
all attribute where sent, not only the changed onespublic void subscriptionChanged(java.lang.String item,
SubscriptionState subscriptionState)
ItemChangeListenersubscriptionChanged in interface ItemChangeListeneritem - The item ID that changedsubscriptionState - the new subscription statepublic void folderChanged(Location location, java.util.List<Entry> added, java.util.Set<java.lang.String> removed, boolean full)
folderChanged in interface FolderListener
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