[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use NodeCache.EventHandler?
> >> I don't know why this happened.Do you have any idea?
> >
> >Which version of ants are you using? I think this is fixed in=
> the cvs
> I am using ANTS-2.0.0.
> CVS version?
The cvs version contains any incremental updates, check out:
http://www.cs.utah.edu/flux/janos/cvs.html
> ANTS-2.0.2,or ANTS-2.0.3 or something else?
We released 2.0.3 on march 17, its at:
http://www.cs.utah.edu/flux/janos/downloads/ants-2.0.3.tar.gz
> >version. Basically you need to add the string:
> >
> >=09"ants.core.NodeCache$EventHandler",
> >
> >to the PrimordialNode.exportedAntsClasses array. This will give
> > untrusted code access to the class.
> I did just as you told me.But it doesnot work if the subclass of
> EventHandler exists as a inner class of capsule class.But if I
> put the code in a standalone class,not an inner class,it will
> work. So,I think,current version of ANTS doesnot support inner
> class of capsule,right?
Thats odd, i can't seem to replicate it here. Did you add the inner class
to the protocol, for example:
addCapsule("apps.ping.PingCapsule$PingEventHandler");
> >> Yours Sincerely
> >>
> >> Jianfeng Liu
tim stack
[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah