View Javadoc
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.java;
12  
13  /**
14   * The Class ThreadModel.
15   */
16  public class ThreadModel {
17  
18    /** The name. */
19    private String name;
20  
21    /** The priority. */
22    private int priority;
23  
24    /** The daemon. */
25    private boolean daemon;
26  
27    /** The interrupted. */
28    private boolean interrupted;
29  
30    /** The runnable class name. */
31    private String runnableClassName;
32  
33    /** The group name. */
34    private String groupName;
35  
36    /** The app name. */
37    private String appName;
38  
39    /** The thread class. */
40    private String threadClass;
41  
42    /** The class loader. */
43    private String classLoader;
44  
45    /**
46     * Gets the name.
47     *
48     * @return the name
49     */
50    public String getName() {
51      return name;
52    }
53  
54    /**
55     * Sets the name.
56     *
57     * @param name the new name
58     */
59    public void setName(String name) {
60      this.name = name;
61    }
62  
63    /**
64     * Gets the priority.
65     *
66     * @return the priority
67     */
68    public int getPriority() {
69      return priority;
70    }
71  
72    /**
73     * Sets the priority.
74     *
75     * @param priority the new priority
76     */
77    public void setPriority(int priority) {
78      this.priority = priority;
79    }
80  
81    /**
82     * Checks if is daemon.
83     *
84     * @return true, if is daemon
85     */
86    public boolean isDaemon() {
87      return daemon;
88    }
89  
90    /**
91     * Sets the daemon.
92     *
93     * @param daemon the new daemon
94     */
95    public void setDaemon(boolean daemon) {
96      this.daemon = daemon;
97    }
98  
99    /**
100    * Checks if is interrupted.
101    *
102    * @return true, if is interrupted
103    */
104   public boolean isInterrupted() {
105     return interrupted;
106   }
107 
108   /**
109    * Sets the interrupted.
110    *
111    * @param interrupted the new interrupted
112    */
113   public void setInterrupted(boolean interrupted) {
114     this.interrupted = interrupted;
115   }
116 
117   /**
118    * Gets the runnable class name.
119    *
120    * @return the runnable class name
121    */
122   public String getRunnableClassName() {
123     return runnableClassName;
124   }
125 
126   /**
127    * Sets the runnable class name.
128    *
129    * @param runnableClassName the new runnable class name
130    */
131   public void setRunnableClassName(String runnableClassName) {
132     this.runnableClassName = runnableClassName;
133   }
134 
135   /**
136    * Gets the group name.
137    *
138    * @return the group name
139    */
140   public String getGroupName() {
141     return groupName;
142   }
143 
144   /**
145    * Sets the group name.
146    *
147    * @param groupName the new group name
148    */
149   public void setGroupName(String groupName) {
150     this.groupName = groupName;
151   }
152 
153   /**
154    * Gets the app name.
155    *
156    * @return the app name
157    */
158   public String getAppName() {
159     return appName;
160   }
161 
162   /**
163    * Sets the app name.
164    *
165    * @param appName the new app name
166    */
167   public void setAppName(String appName) {
168     this.appName = appName;
169   }
170 
171   /**
172    * Gets the thread class.
173    *
174    * @return the thread class
175    */
176   public String getThreadClass() {
177     return threadClass;
178   }
179 
180   /**
181    * Sets the thread class.
182    *
183    * @param threadClass the new thread class
184    */
185   public void setThreadClass(String threadClass) {
186     this.threadClass = threadClass;
187   }
188 
189   /**
190    * Gets the class loader.
191    *
192    * @return the class loader
193    */
194   public String getClassLoader() {
195     return classLoader;
196   }
197 
198   /**
199    * Sets the class loader.
200    *
201    * @param classLoader the new class loader
202    */
203   public void setClassLoader(String classLoader) {
204     this.classLoader = classLoader;
205   }
206 
207 }