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

Ask Your Question
0

Access the deployment properties

Hi,

We want to access the deployment properties (the ones you pass through the -properties option and you can see from GS UI when clicking in the processing unit). I see that the ProcessingUnit interface contains a method called getBeanLevelProperties() that seems to do what I need (I'm not sure). The thing is I don't know how to get the processing unit that the code is running on. Do you know how can I do that?

Thanks!

Diego

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3726]{quote}

asked 2011-08-03 14:07:04 -0600

dgaviola gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

See http://www.gigaspaces.com/wiki/display/XAP8/AdministrationandMonitoringAPI

You need to get the Processing Unit based on its name and fetch the BeanLevelProperties:

Admin admin = new AdminFactory().createAdmin();
ProcessingUnit myPU = admin.getProcessingUnits().waitFor("myPUName",5,TimeUnit.SECONDS);
BeanLevelProperties bp = myPU.getBeanLevelProperties();

Shay

answered 2011-08-07 09:13:56 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thanks Shay!

dgaviola gravatar image dgaviola  ( 2011-08-09 15:12:23 -0600 )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: 2011-08-03 14:07:04 -0600

Seen: 60 times

Last updated: Aug 07 '11