You are viewing a plain text version of this content. The canonical link for it is here.
Posted to imperius-user@incubator.apache.org by "Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com> on 2009/10/16 06:10:37 UTC

Can instances be enumerated using imperius

Hi ,
	I intend to use imperius to create policies. Just wanted to know whether its possible to enumerate instances in the Decision section ? Also where can I downlaod the jars for imperius ?

Thanks,
Sahana

Re: Can instances be enumerated using imperius

Posted by David Wood <da...@us.ibm.com>.
We are in the process of building a release, at which point we'll have a 
set of downloadable jars.  For now you have two choices (that I know of)

1) you can build them your self  using the instructions at 
http://incubator.apache.org/imperius/community/contribute.html
2) Or you can use the Policy Management Library that we built on top of 
Imperius (PDPs, PEPs, etc.) which includes the Imperius .class files.  See 
http://www.alphaworks.ibm.com/tech/wpml.

Hope that helps.

David Wood 
Policy Technologies Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)




From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/16/2009 11:46 AM
Subject:
Can instances be enumerated using imperius



Hi ,
                 I intend to use imperius to create policies. Just wanted 
to know whether its possible to enumerate instances in the Decision 
section ? Also where can I downlaod the jars for imperius ?

Thanks,
Sahana


RE: Can instances be enumerated using imperius

Posted by "Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>.
Thanks Neeraj. This answers my question.
Rgds,
Sahana 

-----Original Message-----
From: Neeraj Joshi [mailto:jneeraj@us.ibm.com] 
Sent: Monday, October 19, 2009 7:27 PM
To: imperius-user@incubator.apache.org
Subject: RE: Can instances be enumerated using imperius

Hey Sahana,
According to the CIM-SPL spec any CIM instance used in the policy needs to be accessible by traversing from the 'anchor' class that you specify in the import statement. 
So currently it is not possible to enumerate instances of a class thats unrelated to the anchor class.
You might be able to get around that by using custom expressions though this article talks about adding custom expressions to the Java-SPL (very similar to CIM-SPL except it uses Java objects) http://www.ibm.com/developerworks/autonomic/library/ac-spl2/?S_TACT=105AGX09&S_CMP=HP

Hope that helps
Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by candlelight. - George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/19/2009 12:39 AM
Subject:
RE: Can instances be enumerated using imperius



Hi Neeraj,
This is what I want to do, in the Condition section I want to enumerate a class which is not associated with the current class. I assume the 'collect' function is used to collect associations to the current class. 
So I cant use collect in my use case. In case the number of enumerated instances is > 0 then I take the action. 

Rgds,
Sahana

-----Original Message-----
From: Neeraj Joshi [mailto:jneeraj@us.ibm.com]
Sent: Friday, October 16, 2009 10:57 PM
To: imperius-user@incubator.apache.org
Subject: Re: Can instances be enumerated using imperius

Hello Sahana,

> whether its possible to enumerate instances in the Decision section ?

I assume you wish to use the CIM-SPL. I am not clear what you mean by enumerate instances? Can you elaborate on that?

Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by candlelight. - George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/16/2009 11:49 AM
Subject:
Can instances be enumerated using imperius



Hi ,
                 I intend to use imperius to create policies. Just wanted to know whether its possible to enumerate instances in the Decision section ? Also where can I downlaod the jars for imperius ?

Thanks,
Sahana




RE: Can instances be enumerated using imperius

Posted by Neeraj Joshi <jn...@us.ibm.com>.
Hey Sahana,
According to the CIM-SPL spec any CIM instance used in the policy needs to 
be accessible by traversing from the 'anchor' class that you specify in 
the import statement. 
So currently it is not possible to enumerate instances of a class thats 
unrelated to the anchor class.
You might be able to get around that by using custom expressions though 
this article talks about adding custom expressions to the Java-SPL (very 
similar to CIM-SPL except it uses Java objects)
http://www.ibm.com/developerworks/autonomic/library/ac-spl2/?S_TACT=105AGX09&S_CMP=HP

Hope that helps
Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by 
candlelight. - George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/19/2009 12:39 AM
Subject:
RE: Can instances be enumerated using imperius



Hi Neeraj,
This is what I want to do, in the Condition section I want to enumerate a 
class which is not associated with the current class. I assume the 
'collect' function is used to collect associations to the current class. 
So I cant use collect in my use case. In case the number of enumerated 
instances is > 0 then I take the action. 

Rgds,
Sahana

-----Original Message-----
From: Neeraj Joshi [mailto:jneeraj@us.ibm.com] 
Sent: Friday, October 16, 2009 10:57 PM
To: imperius-user@incubator.apache.org
Subject: Re: Can instances be enumerated using imperius

Hello Sahana,

> whether its possible to enumerate instances in the Decision section ?

I assume you wish to use the CIM-SPL. I am not clear what you mean by 
enumerate instances? Can you elaborate on that?

Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by 
candlelight. - George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/16/2009 11:49 AM
Subject:
Can instances be enumerated using imperius



Hi ,
                 I intend to use imperius to create policies. Just wanted 
to know whether its possible to enumerate instances in the Decision 
section ? Also where can I downlaod the jars for imperius ?

Thanks,
Sahana




RE: Can instances be enumerated using imperius

Posted by "Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>.
Hi Neeraj,
This is what I want to do, in the Condition section I want to enumerate a class which is not associated with the current class. I assume the 'collect' function is used to collect associations to the current class. So I cant use collect in my use case. In case the number of enumerated instances is > 0 then I take the action. 

Rgds,
Sahana

-----Original Message-----
From: Neeraj Joshi [mailto:jneeraj@us.ibm.com] 
Sent: Friday, October 16, 2009 10:57 PM
To: imperius-user@incubator.apache.org
Subject: Re: Can instances be enumerated using imperius

Hello Sahana,

> whether its possible to enumerate instances in the Decision section ?

I assume you wish to use the CIM-SPL. I am not clear what you mean by enumerate instances? Can you elaborate on that?

Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by candlelight. - George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/16/2009 11:49 AM
Subject:
Can instances be enumerated using imperius



Hi ,
                 I intend to use imperius to create policies. Just wanted to know whether its possible to enumerate instances in the Decision section ? Also where can I downlaod the jars for imperius ?

Thanks,
Sahana


Re: Can instances be enumerated using imperius

Posted by Neeraj Joshi <jn...@us.ibm.com>.
Hello Sahana,

> whether its possible to enumerate instances in the Decision section ?

I assume you wish to use the CIM-SPL. I am not clear what you mean by 
enumerate instances? Can you elaborate on that?

Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by 
candlelight. - George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <sa...@hp.com>
To:
"imperius-user@incubator.apache.org" <im...@incubator.apache.org>
Date:
10/16/2009 11:49 AM
Subject:
Can instances be enumerated using imperius



Hi ,
                 I intend to use imperius to create policies. Just wanted 
to know whether its possible to enumerate instances in the Decision 
section ? Also where can I downlaod the jars for imperius ?

Thanks,
Sahana