addp settings and its logging

Hi!

I can’t figure out how to show addp logging in using platform SDK.

Here is how I set it up:

PropertyConfiguration propertyCfg = new PropertyConfiguration();
propertyCfg.SetOption(“protocol”, “addp”);
propertyCfg.SetOption(“addp-timeout”, “5”);
propertyCfg.SetOption(“addp-remote-timeout”, “10”);
propertyCfg.SetOption(“addp-trace”, “both”);

tserverProtocol.Configuration = propertyCfg;   
tserverProtocol.Open(); 

I see addp trace in T-server logs, but what do I need to do to see addp trace inside my program?
I heard that there is a Log property for tserverProtocol object, but I cannot find it. tserverProtocol.Log does not exist! :-\

Where is .Log property and how do I use it?

M.

Hi, Minoru,

as far as I know, there is no way to log addp trace in Java SDK 7.2 . I am praying they will add it in later releases of 7.5.xxxx .

What I do find bewildering is that what is the point of addp’s “number-attempts” and “reconnect-timeout”, if addp’s timeout forces SDK protocol to issue a disconnect and it is up to a client to try to reconnect.

How does addp-reconnect, number-attempts work in Java SDK?

Hi, Minoru,

There is method called EnableLogging(ILogger). Using this method You can have access to interal library logging. I’ve checked it - there 2 messages for addp:

Addp packet received: p
Addp packet received: P

I hope it helps. ( I’ve checked in .Net 7.2 SDK so it should work in 7.5 )

Paul

1 Like

Hi,

I little update - in 7.5 ILogger interface was changed and message about addp additionaly contains server address and port.

Paul

1 Like

Bubblepaw,

Judging by Minoru’s code, it seems to be Java. I could bet there was no such a function for Platform SDK for Java in 7.2! :-\

2 Likes