Class SmppErrorEvent
- java.lang.Object
-
- com.opencloud.slee.resources.smpp.SmppErrorEvent
-
- All Implemented Interfaces:
Serializable
public class SmppErrorEvent extends Object implements Serializable
Event fired when an error has occurred, or a timeout has expired.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
SMPP_ERROR_INVALID_RESPONSE
The stack received an invalid response from the other node.static int
SMPP_ERROR_NETWORK
An error occurred with the network connection, probably when asynchronously sending a request that was started earlier.static int
SMPP_ERROR_NONE
No errorstatic int
SMPP_TIMEOUT_ENQUIRE_LINK
This session's Enquire Link timer has fired.static int
SMPP_TIMEOUT_INACTIVITY
This session's Inactivity timer has fired.static int
SMPP_TIMEOUT_RESPONSE_RECEIVED
The stack has timed out waiting for a response to be received from the other node in the session.static int
SMPP_TIMEOUT_RESPONSE_SENT
The stack has timed out waiting for a response to be sent to the other node in the session (that is, the service failed to do so).static int
SMPP_TIMEOUT_SESSION_INIT
This session's Session Init timer has fired, meaning that the session has been too long in the `OPEN` or `OUTBOUND` states before a successful bind.
-
Constructor Summary
Constructors Constructor Description SmppErrorEvent(SmppSession session, PDU message, SmppErrorType errorType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getErrorCode()
Deprecated.UsegetErrorType()
instead.SmppErrorType
getErrorType()
Get the error type.PDU
getMessage()
Get the offending PDU, if any.SmppSession
getSession()
Get the session that the error occurred onString
toString()
-
-
-
Field Detail
-
SMPP_ERROR_NONE
public static final int SMPP_ERROR_NONE
No error- See Also:
- Constant Field Values
-
SMPP_ERROR_INVALID_RESPONSE
public static final int SMPP_ERROR_INVALID_RESPONSE
The stack received an invalid response from the other node. The offending response PDU can be obtained usinggetMessage()
.- See Also:
- Constant Field Values
-
SMPP_ERROR_NETWORK
public static final int SMPP_ERROR_NETWORK
An error occurred with the network connection, probably when asynchronously sending a request that was started earlier.- See Also:
- Constant Field Values
-
SMPP_TIMEOUT_SESSION_INIT
public static final int SMPP_TIMEOUT_SESSION_INIT
This session's Session Init timer has fired, meaning that the session has been too long in the `OPEN` or `OUTBOUND` states before a successful bind. The service should close the session.- See Also:
- Constant Field Values
-
SMPP_TIMEOUT_ENQUIRE_LINK
public static final int SMPP_TIMEOUT_ENQUIRE_LINK
This session's Enquire Link timer has fired. The service should send an `ENQUIRE_LINK` request to the peer to confirm that the session is still alive.- See Also:
- Constant Field Values
-
SMPP_TIMEOUT_INACTIVITY
public static final int SMPP_TIMEOUT_INACTIVITY
This session's Inactivity timer has fired. It has been too long since the last transaction, the service should consider the session to have died and close it.- See Also:
- Constant Field Values
-
SMPP_TIMEOUT_RESPONSE_RECEIVED
public static final int SMPP_TIMEOUT_RESPONSE_RECEIVED
The stack has timed out waiting for a response to be received from the other node in the session. ThegetMessage()
method returns the original request. The service should consider the request to have failed, and may re-send or reconnect as appropriate.- See Also:
- Constant Field Values
-
SMPP_TIMEOUT_RESPONSE_SENT
public static final int SMPP_TIMEOUT_RESPONSE_SENT
The stack has timed out waiting for a response to be sent to the other node in the session (that is, the service failed to do so). ThegetMessage()
method returns the original request. This error is never fired as an event because the service failed to process the request event. The resource adaptor will send a generic_nack to the other node.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SmppErrorEvent
public SmppErrorEvent(SmppSession session, PDU message, SmppErrorType errorType)
-
-
Method Detail
-
getSession
public SmppSession getSession()
Get the session that the error occurred on
-
getMessage
public PDU getMessage()
Get the offending PDU, if any. Will return `null` if there is no PDU associated with this error (eg. Inactivity timeout).
-
getErrorType
public SmppErrorType getErrorType()
Get the error type. SeeSmppErrorType
for possible values.
-
getErrorCode
@Deprecated public int getErrorCode()
Deprecated.UsegetErrorType()
instead.Get the error code. See constants for possible values and their meanings
-
-