public class ServiceCall
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
IComponentIdentifier |
caller
The calling component.
|
protected static java.lang.ThreadLocal<ServiceCall> |
CURRENT
The current service calls mapped to threads.
|
static java.lang.String |
DEFTIMEOUT |
static java.lang.String |
INHERIT
The inherit constant.
|
protected static java.lang.ThreadLocal<ServiceCall> |
LAST
The upcoming service invocations.
|
IComponentIdentifier |
lastmod |
static java.lang.String |
MONITORING
The monitoring constant.
|
protected static java.lang.ThreadLocal<ServiceCall> |
NEXT
The upcoming service invocations.
|
java.util.Map<java.lang.String,java.lang.Object> |
properties
The service call properties.
|
static java.lang.String |
REALTIME
The realtime constant.
|
static java.lang.String |
SECURITY_INFOS
The security infos constant.
|
static java.lang.String |
TIMEOUT
The timeout constant.
|
Modifier | Constructor and Description |
---|---|
protected |
ServiceCall(IComponentIdentifier caller,
java.util.Map<java.lang.String,java.lang.Object> props)
Create a service call info object.
|
Modifier and Type | Method and Description |
---|---|
protected static ServiceCall |
createServiceCall(IComponentIdentifier caller,
java.util.Map<java.lang.String,java.lang.Object> props)
Create a service call.
|
IComponentIdentifier |
getCaller()
Get the caller component.
|
static ServiceCall |
getCurrentInvocation()
Get the service call instance corresponding
to the current execution context.
|
static ServiceCall |
getLastInvocation()
Get the last service call instance corresponding
to the current execution context.
|
static ServiceCall |
getNextInvocation()
Get the invocation data for the next service call.
|
static ServiceCall |
getOrCreateNextInvocation()
Set the properties of the next invocation.
|
static ServiceCall |
getOrCreateNextInvocation(java.util.Map<java.lang.String,java.lang.Object> props)
Get or create the next servicecall for the next invocation.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get a property.
|
java.lang.Object |
getProperty(java.lang.String name)
Get a property.
|
long |
getTimeout()
Get the timeout value.
|
boolean |
hasUserTimeout()
Test if the user has set a timeout.
|
boolean |
isRemoteCall(IComponentIdentifier callee)
Test if a call is remote.
|
void |
removeProperty(java.lang.String name)
Remove a property.
|
void |
setProperty(java.lang.String name,
java.lang.Object val)
Set a property.
|
void |
setTimeout(long to)
Set the timeout.
|
java.lang.String |
toString()
Get the string represntation.
|
public static final java.lang.String TIMEOUT
public static final java.lang.String DEFTIMEOUT
public static final java.lang.String REALTIME
public static final java.lang.String MONITORING
public static final java.lang.String INHERIT
public static final java.lang.String SECURITY_INFOS
protected static final java.lang.ThreadLocal<ServiceCall> CURRENT
protected static final java.lang.ThreadLocal<ServiceCall> NEXT
protected static final java.lang.ThreadLocal<ServiceCall> LAST
public IComponentIdentifier caller
public java.util.Map<java.lang.String,java.lang.Object> properties
public IComponentIdentifier lastmod
protected ServiceCall(IComponentIdentifier caller, java.util.Map<java.lang.String,java.lang.Object> props)
protected static ServiceCall createServiceCall(IComponentIdentifier caller, java.util.Map<java.lang.String,java.lang.Object> props)
public static ServiceCall getNextInvocation()
public static ServiceCall getCurrentInvocation()
public static ServiceCall getLastInvocation()
public static ServiceCall getOrCreateNextInvocation()
timeout
- The timeout.realtime
- The realtime flag.public static ServiceCall getOrCreateNextInvocation(java.util.Map<java.lang.String,java.lang.Object> props)
timeout
- The timeout.realtime
- The realtime flag.public IComponentIdentifier getCaller()
public long getTimeout()
public boolean hasUserTimeout()
public void setTimeout(long to)
to
- The timeout.public boolean isRemoteCall(IComponentIdentifier callee)
public java.lang.Object getProperty(java.lang.String name)
name
- The property name.public void setProperty(java.lang.String name, java.lang.Object val)
name
- The property name.val
- The property value.public void removeProperty(java.lang.String name)
name
- The property name.public java.util.Map<java.lang.String,java.lang.Object> getProperties()
name
- The property name.public java.lang.String toString()
toString
in class java.lang.Object