The class representing a PVA Server context.
More...
#include <server/pv/serverContext.h>
|
| virtual | ~ServerContext () |
| | Destructor.
|
| |
| virtual const ServerGUID & | getGUID ()=0 |
| | Returns GUID (12-byte array).
|
| |
| virtual const Version & | getVersion ()=0 |
| | Get context implementation version.
|
| |
| virtual void | run (epics::pvData::uint32 seconds)=0 |
| | Run server (process events).
|
| |
|
virtual void | shutdown ()=0 |
| |
|
void | printInfo (int lvl=0) |
| | Prints detailed information about the context to the standard output stream.
|
| |
| virtual void | printInfo (std::ostream &str, int lvl=0)=0 |
| | Prints detailed information about the context to the specified output stream.
|
| |
|
virtual epicsTimeStamp & | getStartTime ()=0 |
| |
| virtual epics::pvData::int32 | getServerPort ()=0 |
| | Get server port.
|
| |
| virtual epics::pvData::int32 | getBroadcastPort ()=0 |
| | Get broadcast port.
|
| |
|
virtual Configuration::shared_pointer | getCurrentConfig ()=0 |
| | Return a Configuration with the actual values being used, including defaults used, and bounds limits applied.
|
| |
|
virtual const std::vector< ChannelProvider::shared_pointer > & | getChannelProviders ()=0 |
| |
| virtual void | setBeaconServerStatusProvider (BeaconServerStatusProvider::shared_pointer const &beaconServerStatusProvider)=0 |
| | Set beacon server status provider.
|
| |
|
| static ServerContext::shared_pointer | create (const Config &conf=Config()) |
| | Start a new PVA server.
|
| |
The class representing a PVA Server context.
Definition at line 27 of file serverContext.h.
◆ const_shared_pointer
| std::tr1::shared_ptr<const ServerContext> epics::pvAccess::ServerContext::const_shared_pointer |
◆ const_weak_pointer
| std::tr1::weak_ptr<const ServerContext> epics::pvAccess::ServerContext::const_weak_pointer |
◆ shared_pointer
| std::tr1::shared_ptr<ServerContext> epics::pvAccess::ServerContext::shared_pointer |
◆ weak_pointer
| std::tr1::weak_ptr<ServerContext> epics::pvAccess::ServerContext::weak_pointer |
◆ ~ServerContext()
| virtual epics::pvAccess::ServerContext::~ServerContext |
( |
| ) |
|
|
inlinevirtual |
◆ create()
| static ServerContext::shared_pointer epics::pvAccess::ServerContext::create |
( |
const Config & | conf = Config() | ) |
|
|
static |
Start a new PVA server.
By default the server will select ChannelProviders using the EPICS_PVAS_PROVIDER_NAMES Configuration key.
If a list of provided is given with Config::providers() then this overrides any Configuration.
If a specific Configuration is given with Config::config() then this overrides the default Configuration.
- Returns
- shared_ptr<ServerContext> which will automatically shutdown() when the last reference is released.
◆ getBroadcastPort()
Get broadcast port.
- Returns
- broadcast port.
◆ getGUID()
| virtual const ServerGUID & epics::pvAccess::ServerContext::getGUID |
( |
| ) |
|
|
pure virtual |
Returns GUID (12-byte array).
- Returns
- GUID.
◆ getServerPort()
Get server port.
- Returns
- server port.
◆ getVersion()
| virtual const Version & epics::pvAccess::ServerContext::getVersion |
( |
| ) |
|
|
pure virtual |
Get context implementation version.
- Returns
- version of the context implementation.
◆ printInfo()
| virtual void epics::pvAccess::ServerContext::printInfo |
( |
std::ostream & | str, |
|
|
int | lvl = 0 ) |
|
pure virtual |
Prints detailed information about the context to the specified output stream.
- Parameters
-
| lvl | detail level |
| str | stream to which to print the info |
◆ run()
Run server (process events).
- Parameters
-
| seconds | time in seconds the server will process events (method will block), if 0 the method would block until destroy() is called. |
- Exceptions
-
| BaseException | if server is already destroyed. |
◆ setBeaconServerStatusProvider()
| virtual void epics::pvAccess::ServerContext::setBeaconServerStatusProvider |
( |
BeaconServerStatusProvider::shared_pointer const & | beaconServerStatusProvider | ) |
|
|
pure virtual |
Set beacon server status provider.
- Parameters
-
The documentation for this class was generated from the following file: