Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.osee.ote.messaging.dds/src/org/eclipse/osee/ote/messaging/dds/status/OfferedDeadlineMissedStatus.java')
-rw-r--r--org.eclipse.osee.ote.messaging.dds/src/org/eclipse/osee/ote/messaging/dds/status/OfferedDeadlineMissedStatus.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/org.eclipse.osee.ote.messaging.dds/src/org/eclipse/osee/ote/messaging/dds/status/OfferedDeadlineMissedStatus.java b/org.eclipse.osee.ote.messaging.dds/src/org/eclipse/osee/ote/messaging/dds/status/OfferedDeadlineMissedStatus.java
new file mode 100644
index 000000000..10cb9de20
--- /dev/null
+++ b/org.eclipse.osee.ote.messaging.dds/src/org/eclipse/osee/ote/messaging/dds/status/OfferedDeadlineMissedStatus.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ote.messaging.dds.status;
+
+import org.eclipse.osee.ote.messaging.dds.InstanceHandle;
+
+/**
+ * Maintains counts of the number of times the {@link org.eclipse.osee.ote.messaging.dds.entity.DataWriter} failed to
+ * write within the offered deadline.
+ *
+ * @author Robert A. Fisher
+ * @author David Diepenbrock
+ */
+public class OfferedDeadlineMissedStatus extends CountedStatus {
+ private final InstanceHandle lastInstanceHandle;
+
+ /**
+ * @param totalCount The cumulative count of offered deadlines missed.
+ * @param totalCountChange The change in count since the last time the listener was called or the status was read.
+ * @param lastInstanceHandle The last instance in the <code>DataWriter</code> for which the deadline was missed.
+ */
+ public OfferedDeadlineMissedStatus(long totalCount, long totalCountChange, InstanceHandle lastInstanceHandle) {
+ super(totalCount, totalCountChange);
+ this.lastInstanceHandle = lastInstanceHandle;
+ }
+
+ /**
+ * Gets a handle to the instance in the <code>DataWriter</code> for which the last offered deadline that was missed.
+ *
+ * @return Returns the lastInstanceHandle.
+ */
+ public InstanceHandle getLastInstanceHandle() {
+ return lastInstanceHandle;
+ }
+}

Back to the top