1 /*
2 * Licensed under the GPL License. You may not use this file except in compliance with the License.
3 * You may obtain a copy of the License at
4 *
5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 *
7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9 * PURPOSE.
10 */
11 package psiprobe.model;
12
13 /**
14 * The Class SunThread.
15 */
16 public class SunThread {
17
18 /** The id. */
19 private long id;
20
21 /** The name. */
22 private String name;
23
24 /** The state. */
25 private String state;
26
27 /** The deadlocked. */
28 private boolean deadlocked;
29
30 /** The suspended. */
31 private boolean suspended;
32
33 /** The in native. */
34 private boolean inNative;
35
36 /** The lock name. */
37 private String lockName;
38
39 /** The lock owner name. */
40 private String lockOwnerName;
41
42 /** The waited count. */
43 private long waitedCount;
44
45 /** The blocked count. */
46 private long blockedCount;
47
48 /** The execution point. */
49 private ThreadStackElement executionPoint;
50
51 /**
52 * Gets the id.
53 *
54 * @return the id
55 */
56 public long getId() {
57 return id;
58 }
59
60 /**
61 * Sets the id.
62 *
63 * @param id the new id
64 */
65 public void setId(long id) {
66 this.id = id;
67 }
68
69 /**
70 * Gets the name.
71 *
72 * @return the name
73 */
74 public String getName() {
75 return name;
76 }
77
78 /**
79 * Sets the name.
80 *
81 * @param name the new name
82 */
83 public void setName(String name) {
84 this.name = name;
85 }
86
87 /**
88 * Gets the state.
89 *
90 * @return the state
91 */
92 public String getState() {
93 return state;
94 }
95
96 /**
97 * Sets the state.
98 *
99 * @param state the new state
100 */
101 public void setState(String state) {
102 this.state = state;
103 }
104
105 /**
106 * Checks if is deadlocked.
107 *
108 * @return true, if is deadlocked
109 */
110 public boolean isDeadlocked() {
111 return deadlocked;
112 }
113
114 /**
115 * Sets the deadlocked.
116 *
117 * @param deadlocked the new deadlocked
118 */
119 public void setDeadlocked(boolean deadlocked) {
120 this.deadlocked = deadlocked;
121 }
122
123 /**
124 * Checks if is suspended.
125 *
126 * @return true, if is suspended
127 */
128 public boolean isSuspended() {
129 return suspended;
130 }
131
132 /**
133 * Sets the suspended.
134 *
135 * @param suspended the new suspended
136 */
137 public void setSuspended(boolean suspended) {
138 this.suspended = suspended;
139 }
140
141 /**
142 * Checks if is in native.
143 *
144 * @return true, if is in native
145 */
146 public boolean isInNative() {
147 return inNative;
148 }
149
150 /**
151 * Sets the in native.
152 *
153 * @param inNative the new in native
154 */
155 public void setInNative(boolean inNative) {
156 this.inNative = inNative;
157 }
158
159 /**
160 * Gets the lock name.
161 *
162 * @return the lock name
163 */
164 public String getLockName() {
165 return lockName;
166 }
167
168 /**
169 * Sets the lock name.
170 *
171 * @param lockName the new lock name
172 */
173 public void setLockName(String lockName) {
174 this.lockName = lockName;
175 }
176
177 /**
178 * Gets the lock owner name.
179 *
180 * @return the lock owner name
181 */
182 public String getLockOwnerName() {
183 return lockOwnerName;
184 }
185
186 /**
187 * Sets the lock owner name.
188 *
189 * @param lockOwnerName the new lock owner name
190 */
191 public void setLockOwnerName(String lockOwnerName) {
192 this.lockOwnerName = lockOwnerName;
193 }
194
195 /**
196 * Gets the waited count.
197 *
198 * @return the waited count
199 */
200 public long getWaitedCount() {
201 return waitedCount;
202 }
203
204 /**
205 * Sets the waited count.
206 *
207 * @param waitedCount the new waited count
208 */
209 public void setWaitedCount(long waitedCount) {
210 this.waitedCount = waitedCount;
211 }
212
213 /**
214 * Gets the blocked count.
215 *
216 * @return the blocked count
217 */
218 public long getBlockedCount() {
219 return blockedCount;
220 }
221
222 /**
223 * Sets the blocked count.
224 *
225 * @param blockedCount the new blocked count
226 */
227 public void setBlockedCount(long blockedCount) {
228 this.blockedCount = blockedCount;
229 }
230
231 /**
232 * Gets the execution point.
233 *
234 * @return the execution point
235 */
236 public ThreadStackElement getExecutionPoint() {
237 return executionPoint;
238 }
239
240 /**
241 * Sets the execution point.
242 *
243 * @param executionPoint the new execution point
244 */
245 public void setExecutionPoint(ThreadStackElement executionPoint) {
246 this.executionPoint = executionPoint;
247 }
248
249 }