public class CUEventSubscription extends SVEventSubscription
ControlUnitProxy#subscribe| Modifier and Type | Field and Description |
|---|---|
protected boolean |
receiveCUStates
Flag indicating whether this subscription requests receiving of control unit states.
|
protected boolean |
receiveParentsInfo
Flag indicating whether this subscription requests receiving of control unit parents info.
|
eventTimeout, expiredEventsFilter, listenerRegProps| Constructor and Description |
|---|
CUEventSubscription()
Empty constructor.
|
CUEventSubscription(java.util.Dictionary listenerRegProps,
java.lang.String expiredEventsFilter,
long eventTimeout,
boolean receiveCUStates,
boolean receiveParentsInfo)
Creates a
CUEventSubscription object with given attributes. |
| Modifier and Type | Method and Description |
|---|---|
void |
read(java.io.DataInputStream in)
Method used for serialization.
|
boolean |
receiveCUStates()
Returns the
receiveCUStates flag with which the object is created. |
boolean |
receiveParentsInfo()
Returns the
receiveParentsInfo flag with which the object is created. |
void |
write(java.io.DataOutputStream out)
Method used for serialization.
|
getExpiredEventsFilter, getListenerRegProps, getTimeoutprotected boolean receiveCUStates
protected boolean receiveParentsInfo
public CUEventSubscription()
public CUEventSubscription(java.util.Dictionary listenerRegProps,
java.lang.String expiredEventsFilter,
long eventTimeout,
boolean receiveCUStates,
boolean receiveParentsInfo)
CUEventSubscription object with given attributes.listenerRegProps - registration properties of the listener service. The ControlUnitListener
on the target framework to serve this subscription shall be registered with the registration properties
applied with this argument.expiredEventsFilter - - filter in ldap form, specifying the sub set of control unit events for which
all events (even the expired ones) should be delivered. Events are considered as expired if in the current
event chunk of non sent events, for a particular control unit there are unregistered and registered events (in this sequence).
In this case, both events are considered expired and by default will not be delivered. Applications
that use a state machine logic could apply a expiredEventsFilter to specify the set of
control units for which expired event notifications should not be omitted.eventTimeout - max timeout (in milliseconds) after which a control unit
event should be delivered. Zero or negative number means that every event should
be delivered without any delay. If it is a negative number – then the event
notification shall be sent immediately within synchronous messages.
receiveCUStates - if this flag is raised, the events for registered control units
shall bear the whole cu state of the registered unit(that means – the registered control
unit will come together with the values if its state variables), otherwise the events
shall bear the cu identification only (cuType + cuId). The control unit states delivered,
depend on the stateInterfaces parameter passed to the
ControlUnitProxy#subscribe method.
The control unit state shall be constructed as follows: - If the current subscription defines control unit state interface for control units with the type of the registered control unit, then this is the control unit interface used. - If there are other subscriptions in the scope of this connection defining state interface for control units of type, then the interface provided in the latest subscription is used. - If metatype for control units with the type of the registered control unit is provided in the framework, then control unit state interface is constructed from all the state variables defined in the metatype. - Otherwise, only cuId is delivered.
receiveParentsInfo - if this flag is raised, the events for registered control units shall bear information about its parent units.public boolean receiveCUStates()
receiveCUStates flag with which the object is created.receiveCUStates flag for this object.public boolean receiveParentsInfo()
receiveParentsInfo flag with which the object is created.receiveParentsInfo flag for this object.public void read(java.io.DataInputStream in)
throws java.io.IOException
read in class SVEventSubscriptionin - input stream.java.io.IOException - of error occurs while reading.public void write(java.io.DataOutputStream out)
throws java.io.IOException
write in class SVEventSubscriptionout - output stream.java.io.IOException - if error occurs while writing.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.