Socket Factory and Event Interfaces

Socket Factory Interfaces

Overview

The ProSyst Util Bundle exports the com.prosyst.util.net package, which can be used for developing socket-provider services. Besides the interfaces, the package contains their default implementations.

System Properties

Use the mbs.putil.unix_new_line system property to specify if a com.prosyst.util.net.ProxySocket should use a UNIX new line or a Windows new line, depending on the proxy server. If the property is true, the ProxySocket will use "\n" new line as in UNIX. If the property is false or is missing, the ProxySocket will use "\r\n" as in Windows.

Event Interfaces

The com.prosyst.util.event.EventCollector interface of the ProSyst Util Bundle allows you to create services or other types of modules that provide definition and dispatching of events to interested listeners. It can be used when a direct connection between the event source and the event listener cannot be established (for example if the listener works in a different VM).

The com.prosyst.util.event.EventsManager interface can be implemented in order to manage registration and notification of event listeners for miscellaneous events. Listeners are provided as implementations of the com.prosyst.util.event.EventListener interface. Events are represented by BasicEvent objects which can related to changes in the state of the framework, of a bundle or of a service.

Tip: An EventsManager implementation is provided by the PMP, which is capable of remote exchange of events over PMP.


System Service Log Reference Utility