Name
Mesos::Channel - perl interface to the channel proxy schedulers and executors write events to
Synopsis
Mesos channels are blessed filehandles, so can be passed directly to IO::Select, AnyEvent->io, or any other function expecting a filehandle.
Methods
- recv()
-
Main entry point to this class. Returns and deserializes any events logged by proxy schedulers or drivers. This is non-blocking and will immediately return undef if no events are queued. The first argument returned is the name of the event logged. The remaining return values are the arguments received from MesosSchedulerDriver.
- fd()
-
Return the underlying file descriptor for the read end of the channel. Mainly used for passing to IO::Select or AnyEvent.