ETAJ: Receive F9: Service has gone down but not receive any message on up

altman.wong
altman.wong Newcomer

I am using ETA Java to connect TREP

I've receive the SourceDirectoryUpdate from server with the following message

F9: Service has gone down, Will recall when service become available

I have the following questions:
1. After the service is up, what message will I be received?
2. Should I do reconnect when I receive this message? Or I could pend the connection and wait until it recover?


Thanks!

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @altman.wong

    Thanks for reaching out to us.

    When the service is down, the application will get a source directory message that indicates the service is down and a source directory group status message that indicates that all items in the group are in the Open/Suspect state.

    <UPDATE domainType="SOURCE" streamId="2" containerType="MAP" flags="0xC0 (DO_NOT_CACHE|DO_NOT_CONFLATE)" updateType="0" dataSize="115">
        <dataBody>
            <map flags="0x00" countHint="0" keyPrimitiveType="UINT" containerType="FILTER_LIST" >
                <mapEntry flags="0x00" action="UPDATE" key="5001" >
                    <filterList containerType="ELEMENT_LIST" countHint="0" flags="0x00">
                        <filterEntry id="3" action="SET" flags="0x00" containerType="ELEMENT_LIST">
                            <elementList flags="0x08 (HAS_STANDARD_DATA)">
                                <elementEntry name="Group" dataType="BUFFER" data="1"/>
                                <elementEntry name="Status" dataType="STATE" State: Open/Suspect/None - text: "F9: Service has gone down. Will recall when service becomes available."/>
                            </elementList>
                        </filterEntry>
                    </filterList>
                </mapEntry>
            </map>
        </dataBody>
    </UPDATE>

    If you use ETA VA with WatchList enabled, the API will fanout this message to all items in this group. Therefore, the application will retrieve the Open/Suspect status messages for all subscribed items in this group.

    DefaultMsgCallback Status -- ItemName: TRI.N Domain: MARKET_PRICE, StreamId: 5
    State: Open/Suspect/None - text: "F9: Service has gone down. Will recall when service becomes available."

    When the service is up, the application will get the source directory messages that indicate the service is up. Because the item state is still Open, the application doesn't need to re-subscribe to items. The server will recover items and send new refresh messages to the application.

    In short, the application needs to check the stream state of the subscribed items. If the stream state is Open, the application doesn't need to re-subscribe to items.

    This one applies to the service down, not disconnection.

    I hope that this information is of help.

Answers