Class: OpenWFE::XmlSocketParticipant

Inherits:
SocketParticipant show all
Defined in:
lib/openwfe/participants/socketparticipants.rb

Overview

This extension of of SocketParticipant can be used to dispatch workitems towards an OpenWFEja instance, but OpenWFEru’s SocketListener understands XML workitems as well.

Instance Attribute Summary

Attributes inherited from SocketParticipant

#host, #port

Class Method Summary collapse

Methods inherited from SocketParticipant

#consume, #dispatch, #initialize

Constructor Details

This class inherits a constructor from OpenWFE::SocketParticipant

Class Method Details

.dispatch(host, port, workitem) ⇒ Object

A ‘static’ method for dispatching workitems, you can use it directly, without instantiating the SocketParticipant :

require 'openwfe/participants/socketparticipants'

SocketParticipant.dispatch("127.0.0.1", 7007, workitem)


177
178
179
180
# File 'lib/openwfe/participants/socketparticipants.rb', line 177

def XmlSocketParticipant.dispatch (host, port, workitem)

    XmlSocketParticipant.new(host, port).consume(workitem)
end