001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.messaging.bam;
018:
019: import java.io.Serializable;
020: import java.sql.Timestamp;
021: import java.util.ArrayList;
022: import java.util.List;
023:
024: import edu.iu.uis.eden.messaging.AsynchronousCallback;
025:
026: /**
027: * An entry in the BAM representing a service method invocation.
028: *
029: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
030: */
031: public class BAMTargetEntry implements Serializable {
032:
033: private static final long serialVersionUID = -8376674801367598316L;
034:
035: private Long bamId;
036: private String serviceName;
037: private String methodName;
038: private String threadName;
039: private Timestamp callDate;
040: private String serviceURL;
041: private String targetToString;
042: private String exceptionToString;
043: private String exceptionMessage;
044: private Boolean serverInvocation;
045: private List<BAMParam> bamParams = new ArrayList<BAMParam>();
046:
047: //for async calls not bam
048: private AsynchronousCallback callback;
049:
050: public void addBamParam(BAMParam bamParam) {
051: this .bamParams.add(bamParam);
052: }
053:
054: public String getExceptionToString() {
055: return this .exceptionToString;
056: }
057:
058: public void setExceptionToString(String exceptionToString) {
059: this .exceptionToString = exceptionToString;
060: }
061:
062: public String getServiceName() {
063: return this .serviceName;
064: }
065:
066: public void setServiceName(String serviceName) {
067: this .serviceName = serviceName;
068: }
069:
070: public String getServiceURL() {
071: return this .serviceURL;
072: }
073:
074: public void setServiceURL(String serviceURL) {
075: this .serviceURL = serviceURL;
076: }
077:
078: public String getTargetToString() {
079: return this .targetToString;
080: }
081:
082: public void setTargetToString(String targetToString) {
083: this .targetToString = targetToString;
084: }
085:
086: public Long getBamId() {
087: return this .bamId;
088: }
089:
090: public void setBamId(Long bamId) {
091: this .bamId = bamId;
092: }
093:
094: public String getExceptionMessage() {
095: return this .exceptionMessage;
096: }
097:
098: public void setExceptionMessage(String exceptionMessage) {
099: this .exceptionMessage = exceptionMessage;
100: }
101:
102: public Boolean getServerInvocation() {
103: return this .serverInvocation;
104: }
105:
106: public void setServerInvocation(Boolean clientInvocation) {
107: this .serverInvocation = clientInvocation;
108: }
109:
110: public Timestamp getCallDate() {
111: return this .callDate;
112: }
113:
114: public void setCallDate(Timestamp callDate) {
115: this .callDate = callDate;
116: }
117:
118: public String getMethodName() {
119: return this .methodName;
120: }
121:
122: public void setMethodName(String methodName) {
123: this .methodName = methodName;
124: }
125:
126: public String getThreadName() {
127: return this .threadName;
128: }
129:
130: public void setThreadName(String threadName) {
131: this .threadName = threadName;
132: }
133:
134: public List<BAMParam> getBamParams() {
135: return this .bamParams;
136: }
137:
138: public void setBamParams(List<BAMParam> bamParams) {
139: this .bamParams = bamParams;
140: }
141:
142: public AsynchronousCallback getCallback() {
143: return this .callback;
144: }
145:
146: public void setCallback(AsynchronousCallback callback) {
147: this.callback = callback;
148: }
149: }
|