Class ServiceCall
java.lang.Object
jadex.providedservice.impl.service.ServiceCall
- Direct Known Subclasses:
CallAccess
Information about a current service call.
Similar to a ThreadLocal in Java but for service calls, i.e.
between different threads and hosts available.
-
Field Summary
FieldsModifier and TypeFieldDescriptionjadex.core.ComponentIdentifier
The calling component.protected static final ThreadLocal
<ServiceCall> The current service calls mapped to threads.static final String
static final String
The inherit constant.protected static final ThreadLocal
<ServiceCall> The upcoming service invocations.protected jadex.execution.impl.ExecutionFeature
static final String
The monitoring constant.protected static final ThreadLocal
<ServiceCall> The upcoming service invocations.The service call properties.static final String
The realtime constant.static final String
The security infos constant.static final String
The timeout constant. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServiceCall
(jadex.core.ComponentIdentifier caller, Map<String, Object> props) Create a service call info object. -
Method Summary
Modifier and TypeMethodDescriptionprotected static ServiceCall
createServiceCall
(jadex.core.ComponentIdentifier caller, Map<String, Object> props) Create a service call.jadex.core.ComponentIdentifier
Get the caller component.static ServiceCall
Get the service call instance corresponding to the current execution context.static ServiceCall
Get the last service call instance corresponding to the current execution context.static ServiceCall
Get the invocation data for the next service call.static ServiceCall
Set the properties of the next invocation.static ServiceCall
getOrCreateNextInvocation
(Map<String, Object> props) Get or create the next servicecall for the next invocation.Get a shallow clone from all props.getProperty
(String name) Get a property.void
setProperty
(String name, Object val) Set a property.toString()
Get the string represntation.
-
Field Details
-
TIMEOUT
The timeout constant.- See Also:
-
DEFTIMEOUT
- See Also:
-
REALTIME
The realtime constant.- See Also:
-
MONITORING
The monitoring constant.- See Also:
-
INHERIT
The inherit constant.- See Also:
-
SECURITY_INFOS
The security infos constant.- See Also:
-
CURRENT
The current service calls mapped to threads. -
NEXT
The upcoming service invocations. -
LAST
The upcoming service invocations. -
caller
public jadex.core.ComponentIdentifier callerThe calling component. -
properties
The service call properties. -
lastmod
protected jadex.execution.impl.ExecutionFeature lastmod
-
-
Constructor Details
-
ServiceCall
Create a service call info object.
-
-
Method Details
-
createServiceCall
protected static ServiceCall createServiceCall(jadex.core.ComponentIdentifier caller, Map<String, Object> props) Create a service call. -
getNextInvocation
Get the invocation data for the next service call. -
getCurrentInvocation
Get the service call instance corresponding to the current execution context.- Returns:
- The service call instance or null.
-
getLastInvocation
Get the last service call instance corresponding to the current execution context.- Returns:
- The service call instance or null.
-
getOrCreateNextInvocation
Set the properties of the next invocation.- Parameters:
timeout
- The timeout.realtime
- The realtime flag.
-
getOrCreateNextInvocation
Get or create the next servicecall for the next invocation.- Parameters:
timeout
- The timeout.realtime
- The realtime flag.
-
getCaller
public jadex.core.ComponentIdentifier getCaller()Get the caller component.- Returns:
- The caller component.
-
getProperty
Get a property.- Parameters:
name
- The property name.- Returns:
- The property.
-
setProperty
Set a property.- Parameters:
name
- The property name.val
- The property value.
-
getPropertiesClone
Get a shallow clone from all props.- Returns:
- The properties clone.
-
toString
Get the string represntation.
-