pmdaeventclient(3)


NAME

   pmdaEventNewClient, pmdaEventEndClient, pmdaEventClients - client
   context tracking interfaces for event queues

C SYNOPSIS

   #include <pcp/pmapi.h>
   #include <pcp/impl.h>
   #include <pcp/pmda.h>

   int pmdaEventNewClient(int context);
   int pmdaEventEndClient(int context);
   int pmdaEventClients(pmAtomValue *avp);

   cc ... -lpcp_pmda -lpcp

DESCRIPTION

   A Performance Metrics Domain Agent (PMDA) that  exports  event  records
   needs  to track which clients are connected to it, in order that it can
   track which events have been sent to which clients so far.   Only  once
   an  event  has  been  sent  to  all monitoring tools that registered an
   interest can the event be discarded and any memory reclaimed.

   The PMDA(3) library provides callback routines for PMDA  developers  to
   provide  custom  handling of client connections and disconnections.  If
   the PMDA is making use of the  event  queueing  mechanism  provided  by
   pmdaEventNewQueue(3) and friends, client connections and disconnections
   must be tracked via calls to pmdaEventNewClient and  pmdaEventEndClient
   respectively.  This allows the library to keep track of when events can
   be discarded from a queue, for  example,  for  the  context  specified.
   This  parameter is passed into the e_endCallBack function directly, and
   for other callback functions is available via the  e_context  field  of
   the  pmdaExt  structure.   Additionally,  it can be queried at any time
   using pmdaGetContext(3).

   Sometimes it is useful for the PMDA to export a metric  indicating  the
   current  count  of  attached  clients  -  this  is  available using the
   pmdaEventClients routine,  which  will  fill  in  the  avp  pmAtomValue
   structure on behalf of a PMDA fetch callback routine.

SEE ALSO

   pmdaEventNewArray(3),   pmdaEventNewQueue(3),   PMAPI(3),  PMDA(3)  and
   pmEventFlagsStr(3).





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.