Do states have namespace?

Alex Kavanagh alex.kavanagh at canonical.com
Tue Apr 18 12:56:29 UTC 2017


Hi


On Tue, Apr 18, 2017 at 1:50 PM, fengxia <fxia1 at lenovo.com> wrote:

> I did a quick experiment:
>
> 1. Created two layers in one charm, each layer has a few states,
> set_state() can trigger @when defined in other layers.
>
> 2. Use the same set of states, now splitting them in two charms => @when
> don't trigger anymore.
>
> So does this mean states have a namespace by the charm it belongs?


States are stored on the individual instance of the charm.  They are
private and no other charm can see those states.

Cheers
Alex.


>
>
> --
> Feng xia
> Engineer
> Lenovo USA
>
> Phone: 5088011794
> fxia1 at lenovo.com
>
> Lenovo.com
> Twitter | Facebook | Instagram | Blogs | Forums
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/juju
>



-- 
Alex Kavanagh - Software Engineer
Cloud Dev Ops - Solutions & Product Engineering - Canonical Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170418/5a448304/attachment.html>


More information about the Juju mailing list