public class ServiceCall
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IComponentIdentifier |
caller
The calling component.
|
static java.lang.String |
CAUSE
The cause constant.
|
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.
|
protected 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 |
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.
|
Cause |
getCause()
Get the cause.
|
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.
|
java.lang.Boolean |
getRealtime()
Get the realtime flag.
|
long |
getTimeout()
Get the timeout value.
|
boolean |
hasUserTimeout()
Test if the user has set a timeout.
|
boolean |
isRealtime()
Get the realtime flag.
|
void |
removeProperty(java.lang.String name)
Remove a property.
|
void |
setCause(Cause cause)
Set the cause.
|
void |
setProperty(java.lang.String name,
java.lang.Object val)
Set a property.
|
void |
setRealtime(java.lang.Boolean realtime)
Set the realtime 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 CAUSE
public static final java.lang.String MONITORING
public static final java.lang.String INHERIT
protected static final java.lang.ThreadLocal<ServiceCall> CURRENT
protected static final java.lang.ThreadLocal<ServiceCall> NEXT
protected static final java.lang.ThreadLocal<ServiceCall> LAST
protected IComponentIdentifier caller
protected 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 java.lang.Boolean getRealtime()
public void setRealtime(java.lang.Boolean realtime)
public boolean isRealtime()
public Cause getCause()
public void setCause(Cause cause)
cause
- The cause.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