javax.microedition.ipdr.callback
Interface StateMachineListenerIn


public interface StateMachineListenerIn

The interface provides a convenient way to get a notification with regards to incoming events

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

Version:
1.0
Author:
Shai Gotlib
See Also:
StateMachineListenerInFactory

Method Summary
 void notifyConnect(java.lang.String identifier, int port, ConnectInfo info)
          Receives notification regarding receiving connect message
 void notifyConnectResponse(java.lang.String identifier, int port, ConnectResponseInfo info)
          Receives notification regarding receiving connect response message
 void notifyDataAck(java.lang.String identifier, int port, DataAckInfo info)
          Receives notifications regarding receiving Data Ack message
 void notifyDisconnect(java.lang.String identifier, int port, DisconnectInfo info)
          Receives notification regarding receiving disconnection message
 void notifyError(java.lang.String identifier, int port, ErrorInfo info)
          Receives notifications regarding receiving Error message
 void notifyFinalTemplateDataAck(java.lang.String identifier, int port, FinalTemplateDataAckInfo info)
          Receives notifications regarding receiving Final Template Data Ack message
 void notifyFlowStart(java.lang.String identifier, int port, FlowStartInfo info)
          Receives notifications regarding receiving flow start message
 void notifyFlowStop(java.lang.String identifier, int port, FlowStopInfo info)
          Receives notifications regarding receiving flow stop message
 void notifyGetSessions(java.lang.String identifier, int port, GetSessionsInfo info)
          Receives notifications regarding receiving get sessions request message
 void notifyGetTemplates(java.lang.String identifier, int port, GetTemplatesInfo info)
          Receives notifications regarding receiving get templates request message
 void notifyKeepAlive(java.lang.String identifier, int port, KeepAliveInfo info)
          Receives notifications regarding receiving keep alive message
 void notifyModifyTemplate(java.lang.String identifier, int port, ModifyTemplateInfo info)
          Receives notifications regarding receiving Modify Template
 void notifyRequest(java.lang.String identifier, int port, RequestInfo info)
          Receives notifications regarding receiving request message
 void notifyResponse(java.lang.String identifier, int port, ResponseInfo info, java.lang.Object param)
          Receives notifications regarding receiving response message
 void notifyStartNegotiation(java.lang.String identifier, int port, StartNegotiationInfo info)
          Receives notifications regarding receiving Start Negotiation message
 

Method Detail

notifyResponse

public void notifyResponse(java.lang.String identifier,
                           int port,
                           ResponseInfo info,
                           java.lang.Object param)
Receives notifications regarding receiving response message

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)

notifyRequest

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

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

notifyDisconnect

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

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 receiving connect response message

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 receiving connect message

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

notifyFlowStart

public void notifyFlowStart(java.lang.String identifier,
                            int port,
                            FlowStartInfo info)
Receives notifications regarding receiving flow start message

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

notifyFlowStop

public void notifyFlowStop(java.lang.String identifier,
                           int port,
                           FlowStopInfo info)
Receives notifications regarding receiving flow stop message

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

notifyGetSessions

public void notifyGetSessions(java.lang.String identifier,
                              int port,
                              GetSessionsInfo info)
Receives notifications regarding receiving get sessions request message

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

notifyGetTemplates

public void notifyGetTemplates(java.lang.String identifier,
                               int port,
                               GetTemplatesInfo info)
Receives notifications regarding receiving get templates request message

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

notifyKeepAlive

public void notifyKeepAlive(java.lang.String identifier,
                            int port,
                            KeepAliveInfo info)
Receives notifications regarding receiving 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

notifyModifyTemplate

public void notifyModifyTemplate(java.lang.String identifier,
                                 int port,
                                 ModifyTemplateInfo info)
Receives notifications regarding receiving Modify Template

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

notifyFinalTemplateDataAck

public void notifyFinalTemplateDataAck(java.lang.String identifier,
                                       int port,
                                       FinalTemplateDataAckInfo info)
Receives notifications regarding receiving Final Template Data Ack message

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

notifyStartNegotiation

public void notifyStartNegotiation(java.lang.String identifier,
                                   int port,
                                   StartNegotiationInfo info)
Receives notifications regarding receiving Start Negotiation message

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

notifyDataAck

public void notifyDataAck(java.lang.String identifier,
                          int port,
                          DataAckInfo info)
Receives notifications regarding receiving Data Ack message

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

notifyError

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

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