Hitachi

uCosminexus Application Server Maintenance and Migration Guide


8.26.2 When a message is received

The following figure shows the trace collection points in WebSocket.

Figure 8‒101: Trace collection points of WebSocket (when a message (data frame) is received)

[Figure]

Figure 8‒102: Trace collection points of WebSocket (when a split message is received by a message handler with a Reader or InputStream type argument)

[Figure]

The following table describes the event IDs, trace levels, trace collection points, and information that can be collected.

Table 8‒136: Details of the trace collection points of WebSocket (when a message is received)

Event ID

No. in the figures#

Level

Trace acquisition points

Information that you can acquire

Interface name

Operation name

Optional

0xE102

5

A

Immediately before the start of processing for the received WebSocket frame

READ

--

--

0xE103

12

A

Immediately after the completion of processing for the received WebSoket frame

READ

--

  • In a normal state:

    None

  • In an abnormal state:

    Exception name

0xE140

6

A

Immediately before the start of processing after receiving a data frame

MESSAGE

One of the following:

  • onMessage(String)

  • onMessage(ByteBuffer)

  • onPartialMessage(String)

  • onPartialMessage(ByteBuffer)

--

0xE141

11

A

Immediately after the completion of processing after receiving a data frame

MESSAGE

One of the following:

  • onMessage(String)

  • onMessage(ByteBuffer)

  • onPartialMessage(String)

  • onPartialMessage(ByteBuffer)

  • In a normal state:

    None

  • In an abnormal state:

    Exception name

0xE122

7

A

Immediately before invoking a method annotated with @OnMessage

Class name of the endpoint

Method name

--

0xE123

8

A

Immediately after the processing of a method annotated with @OnOpen is complete

Class name of the endpoint

Method name

  • In a normal state:

    None

  • In an abnormal state:

    Exception name

0xE124

7

A

Immediately before invoking the onMessage method of the implementation class of javax.websocket.MessageHandler.Whole

Implementation class name of javax.websocket.MessageHandler.Whole

Method name

--

0xE125

8

A

Immediately after the processing of the onMessage method of the implementation class of javax.websocket.MessageHandler.Whole is complete

Implementation class name of javax.websocket.MessageHandler.Whole

Method name

  • In a normal state:

    None

  • In an abnormal state:

    Exception name

0xE126

7

A

Immediately before invoking the onMessage method of the implementation class of javax.websocket.MessageHandler.Partial

Implementation class name of javax.websocket.MessageHandler.Partial

Method name

--

0xE127

8

A

Immediately after the processing of the onMessage method of the implementation class of javax.websocket.MessageHandler.Partial is complete

Implementation class name of javax.websocket.MessageHandler.Partial

Method name

  • In a normal state:

    None

  • In an abnormal state:

    Exception name

0xE128

9

A

Immediately before invoking a method annotated with @OnError or the onError method of the javax.websocket.Endpoint implementation class

Class name of the endpoint

Method name

--

0xE129

10

A

Immediately after the processing of the method annotated with @OnError or the processing of the onError method of the javax.websocket.Endpoint implementation class is complete

Class name of the endpoint

Method name

  • In a normal state:

    None

  • In an abnormal state:

    Exception name

Legend:

A: Standard

--: Not applicable

#

Corresponds to the numbers in Figure 8-101 and Figure 8-102.