+1, we switched to the data source only for bam as well for some sections because of this reason...
On Wed, Mar 21, 2012 at 12:16 PM, Lahiru Sandaruwan <[email protected]>wrote: > Hi, > This was regarding the Non Java Hosting Platform currently under > development. After the discussion we had yesterday (Daimtha, AmilaM > and Srinath) it's decided to move whole data source to a database. > Because the some parts of this data source are accessed at run time > and not good to have them in registry. > > Thanks. > > On Tue, Mar 20, 2012 at 2:52 PM, Lahiru Sandaruwan <[email protected]> > wrote: > > Hi Tharindu, > > > > These are added when new worker node is added to prevailing set. So > > this data is config data and wont modified frequently. Sorry , my > > understanding was wrong initially and clarified with Damitha. > > > > Thanks. > > > > On Tue, Mar 20, 2012 at 12:55 PM, Tharindu Mathew <[email protected]> > wrote: > >> Runtime data should not be stored in the registry. You will run into > trouble > >> during concurrent executions and frequent modifications. > >> > >> > >> On Tue, Mar 20, 2012 at 12:52 PM, Lahiru Sandaruwan <[email protected]> > >> wrote: > >>> > >>> Hi Tharindu, > >>> > >>> On Tue, Mar 20, 2012 at 12:26 PM, Tharindu Mathew <[email protected]> > >>> wrote: > >>> > Are these runtime data or config data? > >>> > > >>> Runtime data. > >>> Thanks. > >>> > > >>> > On Tue, Mar 20, 2012 at 11:36 AM, Lahiru Sandaruwan < > [email protected]> > >>> > wrote: > >>> >> > >>> >> Thanks Subash and Ashansa for quick replies. , > >>> >> > >>> >> I'll follow the adding resources and properties way. > >>> >> > >>> >> Thanks. > >>> >> > >>> >> > >>> >> On Tue, Mar 20, 2012 at 10:03 AM, Ashansa Perera <[email protected]> > >>> >> wrote: > >>> >> > Hi, > >>> >> > If you are using registry resource to keep this mapping, you can > have > >>> >> > a > >>> >> > resource object for each workerNode and as a property you can > store > >>> >> > this > >>> >> > Bridge ArrayList. But you have to convert the values as > List<String> > >>> >> > to > >>> >> > store as a registry resource property. Then again for the IP > mappings > >>> >> > of > >>> >> > the > >>> >> > Bridge you can have another property ( say userIPList) and store > the > >>> >> > user > >>> >> > IPs as a List<String> as the property value. > >>> >> > > >>> >> > On Tue, Mar 20, 2012 at 9:44 AM, Subash Chaturanga < > [email protected]> > >>> >> > wrote: > >>> >> >> > >>> >> >> Hi Lahiru, > >>> >> >> > >>> >> >> On Tue, Mar 20, 2012 at 9:02 AM, Lahiru Sandaruwan > >>> >> >> <[email protected]> > >>> >> >> wrote: > >>> >> >>> > >>> >> >>> Hi , > >>> >> >>> > >>> >> >>> I'm adding some resources to registry at [1] path as in attached > >>> >> >>> diagram. There I need to add a property to Worker node which is > a > >>> >> >>> Array list (ArrayList<Bridge>). Bridge is also having Array > lists > >>> >> >>> of > >>> >> >>> IPs[2]. > >>> >> >>> > >>> >> >>> I can do this by adding Bridge as a resource to Worker node and > >>> >> >>> again > >>> >> >>> adding IPs to Bridge as properties. Can anyone please advice me > if > >>> >> >>> there is a better way to proceed? > >>> >> >>> > >>> >> >> > >>> >> >> For the registry, what you can put is only resources. Is your > Bridge > >>> >> >> class > >>> >> >> serializable ? If so you can do it in your way, which I also > seems > >>> >> >> as a > >>> >> >> better way. > >>> >> >> ( i.e you can save an instance inside resource's content). If the > >>> >> >> IPs > >>> >> >> are > >>> >> >> again objects, you can maintain child IP resources inside Bridge > >>> >> >> resources. > >>> >> >> Unless you can easily use resource.setProperty(String) or > >>> >> >> resource.setPropertyValues(List<String>) > >>> >> >> > >>> >> >> Hope I answered your question. > >>> >> >> > >>> >> >>> > >>> >> >>> Thanks. > >>> >> >>> > >>> >> >>> [1] /_system/config/repository/hosting/zones > >>> >> >>> > >>> >> >>> > >>> >> >>> [2] private ArrayList<String> usedIpList; > >>> >> >>> > >>> >> >>> private ArrayList<String> availableIpList; > >>> >> >>> > >>> >> >>> > >>> >> >>> > >>> >> >>> -- > >>> >> >>> -- > >>> >> >>> > >>> >> >>> Lahiru Sandaruwan > >>> >> >>> Software Engineer, > >>> >> >>> Cloud Team, > >>> >> >>> WSO2 Inc., http://wso2.com > >>> >> >>> lean.enterprise.middleware > >>> >> >>> > >>> >> >>> email: [email protected] cell: (+94) 773 325 954 > >>> >> >>> blog: http://lahiruwrites.blogspot.com/ > >>> >> >>> twitter: http://twitter.com/lahirus > >>> >> >>> linked-in: > http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > >>> >> >>> > >>> >> >>> _______________________________________________ > >>> >> >>> Dev mailing list > >>> >> >>> [email protected] > >>> >> >>> http://wso2.org/cgi-bin/mailman/listinfo/dev > >>> >> >>> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> -- > >>> >> >> > >>> >> >> Subash Chaturanga > >>> >> >> Software Engineer > >>> >> >> WSO2 Inc. http://wso2.com > >>> >> >> > >>> >> >> email - [email protected] > >>> >> >> phone - 077 2225922 > >>> >> >> > >>> >> >> > >>> >> >> _______________________________________________ > >>> >> >> Dev mailing list > >>> >> >> [email protected] > >>> >> >> http://wso2.org/cgi-bin/mailman/listinfo/dev > >>> >> >> > >>> >> > > >>> >> > > >>> >> > > >>> >> > -- > >>> >> > Ashansa Perera > >>> >> > Software Engineer > >>> >> > WSO2, Inc > >>> >> > > >>> >> > >>> >> > >>> >> > >>> >> -- > >>> >> -- > >>> >> Lahiru Sandaruwan > >>> >> Software Engineer, > >>> >> Cloud Team, > >>> >> WSO2 Inc., http://wso2.com > >>> >> lean.enterprise.middleware > >>> >> > >>> >> email: [email protected] cell: (+94) 773 325 954 > >>> >> blog: http://lahiruwrites.blogspot.com/ > >>> >> twitter: http://twitter.com/lahirus > >>> >> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > >>> >> _______________________________________________ > >>> >> Dev mailing list > >>> >> [email protected] > >>> >> http://wso2.org/cgi-bin/mailman/listinfo/dev > >>> > > >>> > > >>> > > >>> > > >>> > -- > >>> > Regards, > >>> > > >>> > Tharindu > >>> > > >>> > blog: http://mackiemathew.com/ > >>> > M: +94777759908 > >>> > > >>> > >>> > >>> > >>> -- > >>> -- > >>> Lahiru Sandaruwan > >>> Software Engineer, > >>> Cloud Team, > >>> WSO2 Inc., http://wso2.com > >>> lean.enterprise.middleware > >>> > >>> email: [email protected] cell: (+94) 773 325 954 > >>> blog: http://lahiruwrites.blogspot.com/ > >>> twitter: http://twitter.com/lahirus > >>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > >> > >> > >> > >> > >> -- > >> Regards, > >> > >> Tharindu > >> > >> blog: http://mackiemathew.com/ > >> M: +94777759908 > >> > > > > > > > > -- > > -- > > Lahiru Sandaruwan > > Software Engineer, > > Cloud Team, > > WSO2 Inc., http://wso2.com > > lean.enterprise.middleware > > > > email: [email protected] cell: (+94) 773 325 954 > > blog: http://lahiruwrites.blogspot.com/ > > twitter: http://twitter.com/lahirus > > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > > > -- > -- > Lahiru Sandaruwan > Software Engineer, > Cloud Team, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > email: [email protected] cell: (+94) 773 325 954 > blog: http://lahiruwrites.blogspot.com/ > twitter: http://twitter.com/lahirus > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > -- Regards, Tharindu blog: http://mackiemathew.com/ M: +94777759908
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
