Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Custom Governor-Policy instances

Hi,

In the RAM documentation for policies there is a governor that constructs its policies in advance and keeps them in a Map (i.e. singleton).

A few questions about this:

1. Is the governor also a singleton for the entire repository?
2. Should we avoid using read/write instance attributes in a policy in case invocations from different lifecycles overlap?
3. Are invocations of the test() method externally synchronized? test() isn't marked as synchronized in the base class.
4. Would it be a better (safer) practice for the governor to create a new instance every time getPolicy() is called?

Thanks in advance for your insight!

0 votes



One answer

Permanent link
Hi,

Governors are not saved. Each time a governor or a policy is required a
new governor instance is created.

--
Rich Kulp
Rational Asset Manager developer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 23 '11, 6:02 p.m.

Question was seen: 4,804 times

Last updated: Feb 23 '11, 6:02 p.m.

Confirmation Cancel Confirm