ProtocolHandler

public class ProtocolHandler extends AbstractEventHandler implements Activatable, IntrospectionModelObserver

Implementation of the introspection protocol using RSB patterns. Cf. http://docs .cor-lab.de//rsb-manual/trunk/html/specification-introspection.html Activation and deactivation needs to be single-threaded and if not activated, this class must not be actively registered as an IntrospectionModelObserver.

Author

swrede, ssharma, jwienke

Constructors

ProtocolHandler

public ProtocolHandler(IntrospectionModel model, String processDisplayName)

Creates a new instance operating on the provided introspection model.

Parameters
  • model – the mode, not null

  • processDisplayName – human-readable name of the process this instance operates in, may be null if not provided

Throws

LacksOsInformationException – thrown in case required information from the operating system are not available. This makes the introspection unusable.

Methods

activate

public void activate()

close

public void close()

deactivate

public void deactivate()

handleEvent

public void handleEvent(Event query)

isActive

public boolean isActive()

participantAdded

public void participantAdded(ParticipantInfo info)

participantRemoved

public void participantRemoved(ParticipantInfo info)