Changes from 1.3.5 to 1.3.6

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Changes from 1.3.5 to 1.3.6

Vin Baines
Hi,

Just trying to compile against the new 1.3.6, and hit a couple of problems.

The bigger one seems to be the change in AgentParameters:

In .5:
public ClassParameters      archClass = null;
In .6:
private List<ClassParameters> archClasses = new ArrayList<ClassParameters>();

I'm not sure I quite understand the reasoning behind the change?  
Agents can now have multiple instances of ClassParameters?

Previously the code was using a method to get a comma seperated list  
of agent names, whenever agParameter.archClass.getClassName() matched  
the name of the custom extension class of AgArch - I've attached the  
code snippit.

I can see there are some new get methods.. but this just returns a  
list of strings, I can't think how to check if the class matches?

Thanks!




------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users
Reply | Threaded
Open this post in threaded view
|

Re: Changes from 1.3.5 to 1.3.6

Vin Baines
Sorry, forgot to attach the code!

Quoting Vin Baines <[hidden email]>:

> Hi,
>
> Just trying to compile against the new 1.3.6, and hit a couple of problems.
>
> The bigger one seems to be the change in AgentParameters:
>
> In .5:
> public ClassParameters      archClass = null;
> In .6:
> private List<ClassParameters> archClasses = new ArrayList<ClassParameters>();
>
> I'm not sure I quite understand the reasoning behind the change? Agents
> can now have multiple instances of ClassParameters?
>
> Previously the code was using a method to get a comma seperated list of
> agent names, whenever agParameter.archClass.getClassName() matched the
> name of the custom extension class of AgArch - I've attached the code
> snippit.
>
> I can see there are some new get methods.. but this just returns a list
> of strings, I can't think how to check if the class matches?
>
> Thanks!


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users

snippit.txt (747 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Changes from 1.3.5 to 1.3.6

Jomi Hubner
In reply to this post by Vin Baines
Dear Vin,

As you realised, in Jason 1.3.6 an agent can have several architectures. This chance forced us to change also the API of AgentParameteres class. In the default implementation, architectures are composed in a chain of responsibility pattern. But if you are sure that only one customisation will be used, you get get only the first arch given by getAgArchClasses() -- this method returns a list of class names as informed in the mas2j file.

You may also consider to take a look at the code of RunCentralisedMAS to get an example (see method createAgs())

HTH

Jomi


On 08/10/2011, at 09:43, Vin Baines wrote:

> Hi,
>
> Just trying to compile against the new 1.3.6, and hit a couple of problems.
>
> The bigger one seems to be the change in AgentParameters:
>
> In .5:
> public ClassParameters      archClass = null;
> In .6:
> private List<ClassParameters> archClasses = new ArrayList<ClassParameters>();
>
> I'm not sure I quite understand the reasoning behind the change?  
> Agents can now have multiple instances of ClassParameters?
>
> Previously the code was using a method to get a comma seperated list  
> of agent names, whenever agParameter.archClass.getClassName() matched  
> the name of the custom extension class of AgArch - I've attached the  
> code snippit.
>
> I can see there are some new get methods.. but this just returns a  
> list of strings, I can't think how to check if the class matches?
>
> Thanks!
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Jason-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jason-users

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florianópolis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users