org.edg.info
Class Message

java.lang.Object
  extended byorg.edg.info.Message

public class Message
extends java.lang.Object

Simple wrapper of a servlet connection to make it easier to find and compare messages.


Method Summary
 java.lang.Object clone()
          Makes a copy of this Message.
 boolean equals(java.lang.Object obj)
           
 int getAttemptCount()
          Gets the number of attempts to send.
 java.lang.String getCommand()
          Gets the command to send.
 java.util.Date getCreationDate()
          Gets the creation date.
 int getDestinationID()
          Gets the ID for the destination servlet.
 java.lang.String getDestinationURL()
          Gets the URL of the destination servlet.
 int getLastCallDuration()
          Gets the duration of the last call in seconds.
 java.lang.String getLastResult()
          Gets the result of the last call.
 int getLastResultCode()
          Gets the result code for the last call.
 long getStartTimeMS()
          Gets the start time of the current call.
 void setStartTimeMS(long startTimeMS)
          Sets the start time of the current call.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object obj)
See Also:
Object.equals(java.lang.Object)

getCommand

public java.lang.String getCommand()
Gets the command to send.

Returns:
Command to send.

getCreationDate

public java.util.Date getCreationDate()
Gets the creation date.

Returns:
The creation date.

getAttemptCount

public int getAttemptCount()
Gets the number of attempts to send.

Returns:
The number of attempts to send.

toString

public java.lang.String toString()
See Also:
Object.toString()

getLastResultCode

public int getLastResultCode()
Gets the result code for the last call.

Returns:
The result code for the last call.

getLastResult

public java.lang.String getLastResult()
Gets the result of the last call.

Returns:
The result of the last call.

getLastCallDuration

public int getLastCallDuration()
Gets the duration of the last call in seconds.

Returns:
The duration of the last call in seconds.

getDestinationURL

public java.lang.String getDestinationURL()
Gets the URL of the destination servlet.

Returns:
The URL of the destination servlet.

getDestinationID

public int getDestinationID()
Gets the ID for the destination servlet.

Returns:
The ID for the destination servlet.

clone

public java.lang.Object clone()
Makes a copy of this Message.

Returns:
A copy of this message.

getStartTimeMS

public long getStartTimeMS()
Gets the start time of the current call.

Returns:
Start time of the current call in millis.

setStartTimeMS

public void setStartTimeMS(long startTimeMS)
Sets the start time of the current call.

Parameters:
startTimeMS - Start time of the current call in millis.