Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Find ports of Web PU instances deployed on XAP 10.1

I want to be able to monitor the ports (and/or URLs) of PU services deployed by XAP. What I have found is this:

  gsAdmin.getProcessingUnits().getProcessingUnit("MyWebApp").getInstances()[0].getJeeDetails().getHost();
  gsAdmin.getProcessingUnits().getProcessingUnit("MyWebApp").getInstances()[0].getJeeDetails().getPort();

Is there a way for a PU to know which of those instances belong to it? For example in "MyWebApp" I would like to do:

gsAdmin.getProcessingUnits().getProcessingUnit("MyWebApp").getThisInstance().getJeeDetails.getHost();

Or equivalent.

asked 2015-05-27 06:10:13 -0500

dennisla gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Can you explain a bit better what you are looking for?Are you asking if there is an option for a PU instance to identify itself without iterating the PU instances collection?You need to iterate the collection if you are looking for a specific one with specific property value.Shay-------- Original message --------From: forum@ask.gigaspaces.org

answered 2015-05-30 20:31:23 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I don't mind iterating the instances. I can read all of the ports, but my end goal is to have "this" Web-PU know its own port number. Can a PU query its own details?

dennisla gravatar imagedennisla ( 2015-06-14 05:45:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-27 06:10:13 -0500

Seen: 324 times

Last updated: May 30 '15