com.bytex.snamp.connector.dataStream.DerivedAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of data-stream Show documentation
Show all versions of data-stream Show documentation
Framework for writing connectors based on message processing
The newest version!
package com.bytex.snamp.connector.dataStream;
import com.bytex.snamp.connector.attributes.AttributeDescriptor;
import com.bytex.snamp.connector.attributes.AttributeSpecifier;
import com.bytex.snamp.connector.attributes.AttributeSupport;
import javax.management.Notification;
import javax.management.openmbean.OpenType;
/**
* Represents attribute which value is derived from the value of another attribute in repository.
* @author Roman Sakno
* @version 2.0
* @since 2.0
* @implNote By default, this attribute doesn't respond to the received measurement notifications.
*/
public abstract class DerivedAttribute extends SyntheticAttribute {
private static final long serialVersionUID = 2475124771284618979L;
protected DerivedAttribute(final String name,
final OpenType type,
final String description,
final AttributeSpecifier specifier,
final AttributeDescriptor descriptor) {
super(name, type, description, specifier, descriptor);
}
protected abstract T getValue(final AttributeSupport support) throws Exception;
@Override
protected NotificationProcessingResult handleNotification(final Notification notification) {
return notificationIgnored();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy