1 package org
.argeo
.slc
.detached
;
3 import java
.util
.Properties
;
5 /** A request sent to the detached server. */
6 public class DetachedRequest
implements DetachedCommunication
{
7 static final long serialVersionUID
= 1l;
10 private Properties properties
= new Properties();
12 private String path
= "";
14 private Object cachedObject
= null;
16 public DetachedRequest() {
20 public DetachedRequest(String uuid
) {
24 /** The properties configuring this request. */
25 public Properties
getProperties() {
29 public void setProperties(Properties inputParameters
) {
30 this.properties
= inputParameters
;
34 * A reference to the underlying implementation which will process the
37 public String
getRef() {
41 public void setRef(String stepRef
) {
45 /** A path identifying the request within its source context. */
46 public String
getPath() {
50 public void setPath(String path
) {
54 /** The unique identifier of this request. */
55 public String
getUuid() {
59 public void setUuid(String uuid
) {
63 public String
toString() {
64 StringBuffer buf
= new StringBuffer("detached request for ref ");
66 buf
.append(" #").append(uuid
);
67 buf
.append(" cachedObject=").append((cachedObject
!= null));
68 buf
.append(" path=").append(path
);
69 buf
.append(" properties=").append(properties
);
70 return buf
.toString();
74 * Optimization. Allows the driver to eagerly cache the object in the
75 * request, in order to relieve the detached server of the task to look for
76 * it. No implementation should rely on this to be set.
78 public Object
getCachedObject() {
82 public void setCachedObject(Object cachedObject
) {
83 this.cachedObject
= cachedObject
;