com.bytex.snamp.connector.dataStream.SyntheticAttribute 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.AbstractOpenAttributeInfo;
import com.bytex.snamp.connector.attributes.AttributeDescriptor;
import com.bytex.snamp.connector.attributes.AttributeSpecifier;
import com.bytex.snamp.instrumentation.measurements.Measurement;
import com.bytex.snamp.instrumentation.measurements.jmx.MeasurementNotification;
import javax.management.MBeanException;
import javax.management.Notification;
import javax.management.NotificationFilter;
import javax.management.openmbean.OpenType;
import java.util.Optional;
/**
* Represents attribute which value can be inferred from the input stream of notifications.
* @author Roman Sakno
* @version 2.0
* @since 2.0
* @see DistributedAttribute
* @see DerivedAttribute
*/
public abstract class SyntheticAttribute extends AbstractOpenAttributeInfo {
/**
* Represents notification processing result.
*/
public interface NotificationProcessingResult {
/**
* Determines whether the notification is processed successfully.
* @return {@literal true}, if notification was processed; otherwise {@literal false}.
*/
boolean isProcessed();
/**
* Gets error produced during notification processing.
* @return Optional processing error.
*/
Optional getProcessingError();
/**
* Gets new attribute value produced after processing.
* @return Optional attribute value.
*/
Optional
© 2015 - 2024 Weber Informatics LLC | Privacy Policy