[Payara-Server] Get Datagrid's member informations

29 views
Skip to first unread message

Le Bail Florent

unread,
Mar 18, 2019, 9:45:20 AM3/18/19
to Payara Forum
Hi everyone,

I can't found with Payara (Full version) how get list of payara instance in my Datagrid.

With PayaraMicro I can use : 

PayaraMicro.getInstance.getRuntime().getClusteredPayaras()

But I can't found the same api with Payara Server, do you have any idea ?

I use it to know my http/https port of each application/payara-micro on my server

Thanks, have a good day!


Ondro Mihályi

unread,
Mar 20, 2019, 7:15:21 AM3/20/19
to Payara Forum
Hi,

Payara Server doesn't offer Java API like this. You may be able to get this information via the REST management interface of the Admin Server, e.g. http://localhost:4848/management/domain/{resource}. This is documented at https://docs.payara.fish/documentation/payara-server/rest-api/rest-api-documentation.html.

All the best,
Ondro

Le Bail Florent

unread,
Mar 28, 2019, 8:56:33 AM3/28/19
to Payara Forum
Hi Ondro,

Thanks for you answer, I used HealthCheck API of my payara micros instead.
Reply all
Reply to author
Forward
0 new messages