public class IntrospectionParticipantObserver extends Object implements ParticipantObserver
Constructor and Description |
---|
IntrospectionParticipantObserver(String processDisplayName)
Constructs a new instance and accepts a display name to describe the
process this instance is operating in.
|
Modifier and Type | Method and Description |
---|---|
void |
created(Participant participant,
ParticipantCreateArgs<?> args)
Will be called in case a new
Participant has just been created. |
void |
destroyed(Participant participant)
Will be called in case a
Participant is about to be destroyed. |
public IntrospectionParticipantObserver(String processDisplayName)
processDisplayName
- human-readable name of the process this instance operates in,
may be null
if not providedLacksOsInformationException
- thrown in case required information from the operating system
are not available. This makes the introspection unusable.public void created(Participant participant, ParticipantCreateArgs<?> args)
ParticipantObserver
Participant
has just been created.created
in interface ParticipantObserver
participant
- the newly created participantargs
- the arguments used for creating this participantpublic void destroyed(Participant participant)
ParticipantObserver
Participant
is about to be destroyed.destroyed
in interface ParticipantObserver
participant
- the participant that will be destroyedCopyright © 2018 CoR-Lab. All rights reserved.