public class RemoteMethod extends Method implements Handler
Modifier and Type | Class and Description |
---|---|
static class |
RemoteMethod.FuturePreparator<FutureDataType>
Instances of this class are used to prepare a
Future instance
containing the desired result of the client from the reply Event
instance. |
Constructor and Description |
---|
RemoteMethod(ParticipantCreateArgs<?> args)
Create a new RemoteMethod object that represent the remote method named @a
name provided by @a server.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDataType()
Returns the data type transfered by this participant.
|
String |
getKind()
Returns kind of participant in RSB terminology.
|
Set<URI> |
getTransportUris()
Returns URIs describing the transports configured for this participants.
|
void |
internalNotify(Event event)
Internal notification with a received event.
|
activate, deactivate, getFactory, getInformer, getListener, getName, isActive, setInformer, setListener, toString
getConfig, getId, getObserverManager, getScope, setObserverManager
close
public RemoteMethod(ParticipantCreateArgs<?> args) throws InterruptedException, InitializeException
args
- the arguments used to create this methodInterruptedException
- error while installing methodInitializeException
- error initializing the method or one of the underlying
participantspublic void internalNotify(Event event)
Handler
internalNotify
in interface Handler
event
- the received event the handler should processpublic String getKind()
Participant
getKind
in class Participant
public Class<?> getDataType()
Participant
getDataType
in class Participant
null
if not applicable for this type of
participantpublic Set<URI> getTransportUris()
Participant
getTransportUris
in class Participant
null
Copyright © 2018 CoR-Lab. All rights reserved.