KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > common > DeadlineInfo


1 package org.enhydra.shark.api.common;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * This class represents the deadline information.
7  *
8  * @author Sasa Bojanic
9  */

10 public final class DeadlineInfo implements Serializable JavaDoc {
11    /** Process Id */
12    public String JavaDoc procId = null;
13
14    /** Activity Id */
15    public String JavaDoc actId = null;
16
17    /** Is executed */
18    public boolean isExecuted = false;
19
20    /** Time limit */
21    public long timeLimit = -1;
22
23    /** Exception name */
24    public String JavaDoc exceptionName = null;
25
26    /** Synchronous deadline. */
27    public boolean isSynchronous = false;
28
29    /**
30     * Creates instance with all object fields initialized to null, and primitive type fields to -1
31     * and false.
32     */

33    public DeadlineInfo() {
34    }
35
36    /**
37     * Creates an instance with fields set to the given parameter values.
38     */

39    public DeadlineInfo(
40          String JavaDoc _procId,
41          String JavaDoc _actId,
42          boolean _isExecuted,
43          long _timeLimit,
44          String JavaDoc _exceptionName,
45          boolean _isSynchronous) {
46
47       procId = _procId;
48       actId = _actId;
49       isExecuted = _isExecuted;
50       timeLimit = _timeLimit;
51       exceptionName = _exceptionName;
52       isSynchronous = _isSynchronous;
53    }
54
55    public String JavaDoc toString() {
56       return "[procId=" + procId + ", actId=" + procId + ", isExecuted=" + isExecuted
57             + ", excName=" + exceptionName + ",timeLimit=" + new java.util.Date JavaDoc(timeLimit)
58             + ",isSynchronous=" + isSynchronous + "]";
59    }
60
61 }
Popular Tags