EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: What is the use case of org.phoebus.pv.PV.onAccessRightsEvent().subscribe()
From: "Wang, Lin via Tech-talk" <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Mon, 10 Jun 2024 14:58:29 +0800 (GMT+08:00)

Dear all,


I saw the following code snippet to monitor the PV access right in Phoebus and also similar things in pvws,

writable_flow = pv.onAccessRightsEvent()
                      .subscribe(this::writableChanged);


As I understand, the access right of an IOC or an CA gateway is determined by the Access Security Configuration File when started, and the access right can be obtained by the following code,


/** @return <code>true</code> if PV is read-only */
    public boolean isReadonly()
    {
        return pv.isReadonly();
    }


So my question is, in which scenario does the access right of an IOC dynamically change after started and is necessary to be monitored using the onAccessRightEvent() method?



Thanks,

Lin









Replies:
Re: [EXTERNAL] What is the use case of org.phoebus.pv.PV.onAccessRightsEvent().subscribe() Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: ADSpinnaker, BlackfkyS 161S7M Not enough available memory to allocate buffers for streaming John Dobbins via Tech-talk
Next: CA Lab V1.7.3.3 released (LabVIEW / EPICS interface) Carsten Winkler via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
Navigate by Thread:
Prev: Alarm Handler in Windows Hitesh Dhola via Tech-talk
Next: Re: [EXTERNAL] What is the use case of org.phoebus.pv.PV.onAccessRightsEvent().subscribe() Kasemir, Kay via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
ANJ, 10 Jun 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·