javax.microedition.ipdr.callback
Interface StateMachineListenerOut


public interface StateMachineListenerOut

The interface provides a convenient way to get a notification with regards to the underline protocol outgoing events

This interface is being returned by the StateMachineListenerOutFactory The ETA implementer MUST instantiate and use at least one StateMachineListenerOut object per thread. Two threads MUST NOT share the same StateMachineListenerOut object. If it is invoked, it MUST be done before open method is invoked (or after close is invoked). Invoking setStateMachineListenerOutFactory after open was invoked will cause the ETA implementation to throw InvalidApplicationStateException exception.

Version:
1.0
Author:
Shai Gotlib
See Also:
StateMachineListenerOutFactory

Method Summary
 void notifyConnect(java.lang.String identifier, int port, ConnectInfo info)
          Receives notification regarding sending connect message
 void notifyConnectResponse(java.lang.String identifier, int port, ConnectResponseInfo info)
          Receives notification regarding sending connect response
 void notifyData(java.lang.String identifier, int port, DataInfo info)
          Receives notifications regarding message data
 void notifyDisconnect(java.lang.String identifier, int port, DisconnectInfo info)
          Receives notification regarding disconnection
 void notifyError(java.lang.String identifier, int port, ErrorInfo info)
          Receives notifications regarding sending Error message
 void notifyGetSessionsResponse(java.lang.String identifier, int port, GetSessionsResponseInfo info)
          Receives notifications regarding sending get sessions response message
 void notifyGetTemplatesResponse(java.lang.String identifier, int port, GetTemplatesResponseInfo info)
          Receives notifications regarding sending get templates response message
 void notifyKeepAlive(java.lang.String identifier, int port, KeepAliveInfo info)
          Receives notifications regarding sending keep alive message
 void notifyModifyTemplateResponse(java.lang.String identifier, int port, ModifyTemplateResponseInfo info)
          Receives notifications regarding sending Modify Template Response message
 void notifyRequest(java.lang.String identifier, int port, RequestInfo info, java.lang.Object param)
          Receives notifications regarding message request
 void notifyResponse(java.lang.String identifier, int port, ResponseInfo info)
          Receives notifications regrding message response
 void notifySessionStart(java.lang.String identifier, int port, SessionStartInfo info)
          Receives notification regarding sending session start message
 void notifySessionStop(java.lang.String identifier, int port, SessionStopInfo info)
          Receives notifications regarding sending session stop message
 void notifyStartNegotiationReject(java.lang.String identifier, int port, StartNegotiationRejectInfo info)
          Receives notifications regarding sending Start Negotiation Reject message
 void notifyTemplateData(java.lang.String identifier, int port, TemplateDataInfo info)
          Receives notifications regarding sending Template Data message
 

Method Detail

notifyResponse

public void notifyResponse(java.lang.String identifier,
                           int port,
                           ResponseInfo info)
Receives notifications regrding message response

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the response message information
Returns:
void

notifyData

public void notifyData(java.lang.String identifier,
                       int port,
                       DataInfo info)
Receives notifications regarding message data

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the data message information
Returns:
void

notifyRequest

public void notifyRequest(java.lang.String identifier,
                          int port,
                          RequestInfo info,
                          java.lang.Object param)
Receives notifications regarding message request

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the response message information
param - the object send as param to the sendRequest
Returns:
void
See Also:
ExporterManager.sendRequest(byte, short, java.util.Hashtable, java.lang.Object)

notifyDisconnect

public void notifyDisconnect(java.lang.String identifier,
                             int port,
                             DisconnectInfo info)
Receives notification regarding disconnection

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the disconnect message information
Returns:
void

notifyConnectResponse

public void notifyConnectResponse(java.lang.String identifier,
                                  int port,
                                  ConnectResponseInfo info)
Receives notification regarding sending connect response

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the connect response message information
Returns:
void

notifyConnect

public void notifyConnect(java.lang.String identifier,
                          int port,
                          ConnectInfo info)
Receives notification regarding sending connect message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the connect message information
Returns:
void

notifySessionStart

public void notifySessionStart(java.lang.String identifier,
                               int port,
                               SessionStartInfo info)
Receives notification regarding sending session start message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the session start message information
Returns:
void

notifySessionStop

public void notifySessionStop(java.lang.String identifier,
                              int port,
                              SessionStopInfo info)
Receives notifications regarding sending session stop message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the session stop message information
Returns:
void

notifyGetSessionsResponse

public void notifyGetSessionsResponse(java.lang.String identifier,
                                      int port,
                                      GetSessionsResponseInfo info)
Receives notifications regarding sending get sessions response message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the get sessions response message information
Returns:
void

notifyGetTemplatesResponse

public void notifyGetTemplatesResponse(java.lang.String identifier,
                                       int port,
                                       GetTemplatesResponseInfo info)
Receives notifications regarding sending get templates response message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the get templates response message information
Returns:
void

notifyKeepAlive

public void notifyKeepAlive(java.lang.String identifier,
                            int port,
                            KeepAliveInfo info)
Receives notifications regarding sending keep alive message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the keep alive message information
Returns:
void

notifyTemplateData

public void notifyTemplateData(java.lang.String identifier,
                               int port,
                               TemplateDataInfo info)
Receives notifications regarding sending Template Data message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the templates data message information
Returns:
void

notifyModifyTemplateResponse

public void notifyModifyTemplateResponse(java.lang.String identifier,
                                         int port,
                                         ModifyTemplateResponseInfo info)
Receives notifications regarding sending Modify Template Response message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the modify template response message information
Returns:
void

notifyStartNegotiationReject

public void notifyStartNegotiationReject(java.lang.String identifier,
                                         int port,
                                         StartNegotiationRejectInfo info)
Receives notifications regarding sending Start Negotiation Reject message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the start negotiation reject message information
Returns:
void

notifyError

public void notifyError(java.lang.String identifier,
                        int port,
                        ErrorInfo info)
Receives notifications regarding sending Error message

Parameters:
identifier - the collector identifier (IPv4 "dotted decimal notation")
port - TCP port of the collector
info - the error message information
Returns:
void