public class RemoteResultCommand extends AbstractRemoteCommand
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
callid
The callid.
|
protected java.lang.Exception |
exception
The exception.
|
protected boolean |
isref
The flag if result is declared as reference.
|
protected java.lang.String |
methodname
The method name.
|
protected java.lang.Object |
result
The result.
|
protected jadex.bridge.IComponentIdentifier |
sender
The sending component.
|
nonfunc, receiver
Constructor and Description |
---|
RemoteResultCommand()
Create a new remote result command.
|
RemoteResultCommand(jadex.bridge.IComponentIdentifier sender,
java.lang.Object result,
java.lang.Exception exception,
java.lang.String callid,
boolean isref,
java.lang.String methodname,
java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create a new remote result command.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IIntermediateFuture |
execute(jadex.bridge.IExternalAccess component,
RemoteServiceManagementService rsms)
Execute the command.
|
java.lang.String |
getCallId()
Get the callid.
|
java.lang.Exception |
getException()
Get the exception.
|
java.lang.String |
getMethodName()
Get the methodname.
|
java.lang.Object |
getResult()
Get the result.
|
java.lang.String |
getSecurityLevel()
Get the security level of the request.
|
jadex.bridge.IComponentIdentifier |
getSender()
Get the sender.
|
jadex.commons.future.IFuture<java.lang.Void> |
preprocessCommand(jadex.bridge.IInternalAccess component,
RemoteReferenceModule rrm,
jadex.bridge.IComponentIdentifier target)
Preprocess command and replace if they are remote references.
|
void |
setCallId(java.lang.String callid)
Set the callid.
|
void |
setException(java.lang.Exception exception)
Set the exception.
|
void |
setMethodName(java.lang.String methodname)
Set the methodname.
|
void |
setResult(java.lang.Object result)
Set the result.
|
void |
setSender(jadex.bridge.IComponentIdentifier sender)
Set the sender.
|
java.lang.String |
toString()
Get as string.
|
getNonFunctionalProperties, getNonFunctionalProperty, getOrigin, getRealReceiver, getReceiver, postprocessCommand, setNonFunctionalProperties
getAuthenticationData, getDigestContent, getTimestamp, getValidityDuration, setAuthenticationData, setDigestContent, setTimestamp, setValidityDuration
protected jadex.bridge.IComponentIdentifier sender
protected java.lang.Object result
protected java.lang.Exception exception
protected java.lang.String callid
protected boolean isref
protected java.lang.String methodname
public RemoteResultCommand()
public RemoteResultCommand(jadex.bridge.IComponentIdentifier sender, java.lang.Object result, java.lang.Exception exception, java.lang.String callid, boolean isref, java.lang.String methodname, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
public jadex.commons.future.IFuture<java.lang.Void> preprocessCommand(jadex.bridge.IInternalAccess component, RemoteReferenceModule rrm, jadex.bridge.IComponentIdentifier target)
preprocessCommand
in class AbstractRemoteCommand
public jadex.commons.future.IIntermediateFuture execute(jadex.bridge.IExternalAccess component, RemoteServiceManagementService rsms)
lrms
- The local remote management service.public java.lang.String getSecurityLevel()
getSecurityLevel
in interface jadex.bridge.service.types.security.IAuthorizable
getSecurityLevel
in class jadex.bridge.service.types.security.DefaultAuthorizable
public java.lang.Object getResult()
public void setResult(java.lang.Object result)
result
- The result to set.public java.lang.Exception getException()
public void setException(java.lang.Exception exception)
exception
- The exception to set.public java.lang.String getCallId()
public void setCallId(java.lang.String callid)
callid
- The callid to set.public java.lang.String getMethodName()
public void setMethodName(java.lang.String methodname)
methodname
- The methodname to set.public jadex.bridge.IComponentIdentifier getSender()
getSender
in class AbstractRemoteCommand
public void setSender(jadex.bridge.IComponentIdentifier sender)
sender
- The sender to set.public java.lang.String toString()
toString
in class java.lang.Object