01: /*
02: * <copyright>
03: *
04: * Copyright 1997-2004 BBNT Solutions, LLC
05: * under sponsorship of the Defense Advanced Research Projects
06: * Agency (DARPA).
07: *
08: * You can redistribute this software and/or modify it under the
09: * terms of the Cougaar Open Source License as published on the
10: * Cougaar Open Source Website (www.cougaar.org).
11: *
12: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
13: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
14: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
15: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
16: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23: *
24: * </copyright>
25: */
26:
27: package org.cougaar.core.mts;
28:
29: /**
30: * Message attribute key/value constants.
31: */
32: public interface AttributeConstants {
33: String IS_STREAMING_ATTRIBUTE = "IsStreaming";
34: String ENCRYPTED_SOCKET_ATTRIBUTE = "EncryptedSocket";
35:
36: String DELIVERY_ATTRIBUTE = "DeliveryStatus";
37: String DELIVERY_STATUS_DELIVERED = "Delivered";
38: String DELIVERY_STATUS_CLIENT_ERROR = "ClientException";
39: String DELIVERY_STATUS_DROPPED_DUPLICATE = "DroppedDuplicate";
40: String DELIVERY_STATUS_HELD = "Held";
41: String DELIVERY_STATUS_STORE_AND_FORWARD = "Store&Forward";
42: String DELIVERY_STATUS_BEST_EFFORT = "BestEffort";
43: String DELIVERY_STATUS_OLD_INCARNATION = "OldIncarnaion";
44:
45: String MESSAGE_BYTES_ATTRIBUTE = "MessageBytes";
46: String HEADER_BYTES_ATTRIBUTE = "HeaderBytes";
47: String SENT_BYTES_ATTRIBUTE = "SentBytes";
48: String RECEIVED_BYTES_ATTRIBUTE = "ReceivedBytes";
49:
50: String INCARNATION_ATTRIBUTE = "AgentIncarnationNumber";
51:
52: String DELIVERY_STATUS_DROPPED = "Dropped";
53:
54: // System clock when the client sent the message
55: String MESSAGE_SEND_TIME_ATTRIBUTE = "MessageSendTime";
56:
57: // Relative Timeout Attribute - 5000=5 seconds
58: String MESSAGE_SEND_TIMEOUT_ATTRIBUTE = "MessageSendTimeout";
59: // Absolute Timeout Attribute - 1060280361356 the system clock
60: String MESSAGE_SEND_DEADLINE_ATTRIBUTE = "MessageSendDeadline";
61: }
|