1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
5 <!-- Generated by javadoc on Mon Jun 09 15:53:38 PDT 2003 -->
9 <META NAME="keywords" CONTENT="org.openafs.jafs.Process,Process class">
10 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
15 parent.document.title="Process (Java AFS API)";
18 <BODY BGCOLOR="white" onload="asd();">
20 <!-- ========== START OF NAVBAR ========== -->
21 <A NAME="navbar_top"><!-- --></A>
22 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
24 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
25 <A NAME="navbar_top_firstrow"><!-- --></A>
26 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
27 <TR ALIGN="center" VALIGN="top">
28 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
29 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
30 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Process.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
31 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
32 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
33 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
34 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
38 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
39 <B>JAFS API v2</B></EM>
44 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
45 <A HREF="../../../org/openafs/jafs/Partition.html"><B>PREV CLASS</B></A>
46 <A HREF="../../../org/openafs/jafs/Server.html"><B>NEXT CLASS</B></A></FONT></TD>
47 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
48 <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
49 <A HREF="Process.html" TARGET="_top"><B>NO FRAMES</B></A>
54 document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
59 <A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
64 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
65 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
66 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
67 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
70 <!-- =========== END OF NAVBAR =========== -->
73 <!-- ======== START OF CLASS DATA ======== -->
76 org.openafs.jafs</FONT>
80 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">java.lang.Object</A>
82 +--<B>org.openafs.jafs.Process</B>
85 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html">Comparable</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html">Serializable</A></DD>
89 <DT>public class <B>Process</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html">Serializable</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html">Comparable</A></DL>
92 An abstract representation of an AFS process. It holds information about
93 the server, such as what its state is.
96 Constructing an instance of a <code>Process</code> does not mean an actual
97 AFS process is created on a server -- usually a <code>Process</code>
98 object is a representation of an already existing AFS process. If,
99 however, the <code>Process</code> is constructed with the name of a
100 process that does not exist in the server represented by the provided
101 <code>Server</code>, a new process with that name can be
102 created on that server by calling one of the <A HREF="../../../org/openafs/jafs/Process.html#createSimple(java.lang.String)"><CODE>createSimple(String)</CODE></A>,
103 <A HREF="../../../org/openafs/jafs/Process.html#createFS(java.lang.String)"><CODE>createFS(String)</CODE></A>, or <A HREF="../../../org/openafs/jafs/Process.html#createCron(java.lang.String, java.lang.String)"><CODE>createCron(String,String)</CODE></A> methods. If
104 such a process does already exist when one of these methods are called,
105 an exception will be thrown.<BR><BR>
107 <!--Information on how member values are set-->
109 <!--Example of how to use class-->
110 The following is a simple example of how to construct and use a
111 <code>Process</code> object. This example obtains the list of all
112 <code>Process</code> objects on a particular server and prints out the
113 name of each one along with its start time.<BR><BR>
116 import org.openafs.jafs.Cell;
117 import org.openafs.jafs.AFSException;
118 import org.openafs.jafs.Process;
119 import org.openafs.jafs.Server;
125 private Server server;
127 public static void main(String[] args) throws Exception
129 String username = arg[0];
130 String password = arg[1];
131 String cellName = arg[2];
132 String serverName = arg[3];
134 token = new Token(username, password, cellName);
135 cell = new Cell(token);
136 server = new Server(serverName, cell);
138 System.out.println("Processes in Server " + server.getName() + ":");
139 Process[] processes = server.getProcesss();
140 for (int i = 0; i < processes.length; i++) {
141 System.out.print("Process " + processes[i].getName());
142 System.out.print("was started: " +
143 processes[i].getStartTimeDate().getTime() + "\n");
153 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html" TARGET="org.openafs.jafs.Process">Serialized Form</A></DL>
157 <!-- ======== NESTED CLASS SUMMARY ======== -->
160 <!-- =========== FIELD SUMMARY =========== -->
162 <A NAME="field_summary"><!-- --></A>
163 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
164 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
165 <TD COLSPAN=2><FONT SIZE="+2">
166 <B>Field Summary</B></FONT></TD>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>protected boolean</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#cachedInfo">cachedInfo</A></B></CODE>
174 </TD>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE>static int</CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#CRON_PROCESS">CRON_PROCESS</A></B></CODE>
182 A process that should be restarted at a specific time either daily
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>protected long</CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#errorCode">errorCode</A></B></CODE>
191 </TD>
193 <TR BGCOLOR="white" CLASS="TableRowColor">
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195 <CODE>protected long</CODE></FONT></TD>
196 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#errorSignal">errorSignal</A></B></CODE>
199 </TD>
201 <TR BGCOLOR="white" CLASS="TableRowColor">
202 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203 <CODE>protected long</CODE></FONT></TD>
204 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#exitErrorTime">exitErrorTime</A></B></CODE>
207 </TD>
209 <TR BGCOLOR="white" CLASS="TableRowColor">
210 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211 <CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A></CODE></FONT></TD>
212 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#exitErrorTimeDate">exitErrorTimeDate</A></B></CODE>
215 </TD>
217 <TR BGCOLOR="white" CLASS="TableRowColor">
218 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219 <CODE>protected long</CODE></FONT></TD>
220 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#exitTime">exitTime</A></B></CODE>
223 </TD>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A></CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#exitTimeDate">exitTimeDate</A></B></CODE>
231 </TD>
233 <TR BGCOLOR="white" CLASS="TableRowColor">
234 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235 <CODE>static int</CODE></FONT></TD>
236 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#FS_PROCESS">FS_PROCESS</A></B></CODE>
239 Combination of File Server, Volume Server, and Salvager processes</TD>
241 <TR BGCOLOR="white" CLASS="TableRowColor">
242 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243 <CODE>protected int</CODE></FONT></TD>
244 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#goal">goal</A></B></CODE>
247 </TD>
249 <TR BGCOLOR="white" CLASS="TableRowColor">
250 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251 <CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
252 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#name">name</A></B></CODE>
255 </TD>
257 <TR BGCOLOR="white" CLASS="TableRowColor">
258 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259 <CODE>protected long</CODE></FONT></TD>
260 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#numberStarts">numberStarts</A></B></CODE>
263 </TD>
265 <TR BGCOLOR="white" CLASS="TableRowColor">
266 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267 <CODE>static int</CODE></FONT></TD>
268 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#RUNNING">RUNNING</A></B></CODE>
271 Process execution state running</TD>
273 <TR BGCOLOR="white" CLASS="TableRowColor">
274 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275 <CODE>protected <A HREF="../../../org/openafs/jafs/Server.html">Server</A></CODE></FONT></TD>
276 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#server">server</A></B></CODE>
279 </TD>
281 <TR BGCOLOR="white" CLASS="TableRowColor">
282 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283 <CODE>protected int</CODE></FONT></TD>
284 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#serverHandle">serverHandle</A></B></CODE>
287 </TD>
289 <TR BGCOLOR="white" CLASS="TableRowColor">
290 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291 <CODE>static int</CODE></FONT></TD>
292 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#SIMPLE_PROCESS">SIMPLE_PROCESS</A></B></CODE>
295 Any standard type of process except for fs (such as kaserver,
296 upclientbin, etc.)</TD>
298 <TR BGCOLOR="white" CLASS="TableRowColor">
299 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300 <CODE>static int</CODE></FONT></TD>
301 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#STARTING">STARTING</A></B></CODE>
304 Process execution state starting</TD>
306 <TR BGCOLOR="white" CLASS="TableRowColor">
307 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
308 <CODE>protected long</CODE></FONT></TD>
309 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#startTime">startTime</A></B></CODE>
312 </TD>
314 <TR BGCOLOR="white" CLASS="TableRowColor">
315 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
316 <CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A></CODE></FONT></TD>
317 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#startTimeDate">startTimeDate</A></B></CODE>
320 </TD>
322 <TR BGCOLOR="white" CLASS="TableRowColor">
323 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324 <CODE>protected int</CODE></FONT></TD>
325 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#state">state</A></B></CODE>
328 </TD>
330 <TR BGCOLOR="white" CLASS="TableRowColor">
331 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
332 <CODE>protected boolean</CODE></FONT></TD>
333 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#stateBadFileAccess">stateBadFileAccess</A></B></CODE>
336 </TD>
338 <TR BGCOLOR="white" CLASS="TableRowColor">
339 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
340 <CODE>protected boolean</CODE></FONT></TD>
341 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#stateOk">stateOk</A></B></CODE>
344 </TD>
346 <TR BGCOLOR="white" CLASS="TableRowColor">
347 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
348 <CODE>protected boolean</CODE></FONT></TD>
349 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#stateTooManyErrors">stateTooManyErrors</A></B></CODE>
352 </TD>
354 <TR BGCOLOR="white" CLASS="TableRowColor">
355 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
356 <CODE>static int</CODE></FONT></TD>
357 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#STOPPED">STOPPED</A></B></CODE>
360 Process execution state stopped</TD>
362 <TR BGCOLOR="white" CLASS="TableRowColor">
363 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
364 <CODE>static int</CODE></FONT></TD>
365 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#STOPPING">STOPPING</A></B></CODE>
368 Process execution state stopping</TD>
370 <TR BGCOLOR="white" CLASS="TableRowColor">
371 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
372 <CODE>protected int</CODE></FONT></TD>
373 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#type">type</A></B></CODE>
376 </TD>
380 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
382 <A NAME="constructor_summary"><!-- --></A>
383 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
384 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
385 <TD COLSPAN=2><FONT SIZE="+2">
386 <B>Constructor Summary</B></FONT></TD>
388 <TR BGCOLOR="white" CLASS="TableRowColor">
389 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
390 <CODE>(package private)</CODE></FONT></TD>
391 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#Process(org.openafs.jafs.Server)">Process</A></B>(<A HREF="../../../org/openafs/jafs/Server.html">Server</A> server)</CODE>
394 Creates a blank <code>Process</code> given the server to which the process
397 <TR BGCOLOR="white" CLASS="TableRowColor">
398 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
399 <CODE> </CODE></FONT></TD>
400 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#Process(java.lang.String, org.openafs.jafs.Server)">Process</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> name,
401 <A HREF="../../../org/openafs/jafs/Server.html">Server</A> server)</CODE>
404 Constructs a new <code>Process</code> object instance given the name
405 of the AFS process and the AFS server, represented by
406 <CODE>server</CODE>, to which it belongs. </TD>
408 <TR BGCOLOR="white" CLASS="TableRowColor">
409 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
410 <CODE> </CODE></FONT></TD>
411 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#Process(java.lang.String, org.openafs.jafs.Server, boolean)">Process</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> name,
412 <A HREF="../../../org/openafs/jafs/Server.html">Server</A> server,
413 boolean preloadAllMembers)</CODE>
416 Constructs a new <CODE>Process</CODE> object instance given the name
417 of the AFS process and the AFS server, represented by
418 <CODE>server</CODE>, to which it belongs. </TD>
422 <!-- ========== METHOD SUMMARY =========== -->
424 <A NAME="method_summary"><!-- --></A>
425 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
426 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
427 <TD COLSPAN=2><FONT SIZE="+2">
428 <B>Method Summary</B></FONT></TD>
430 <TR BGCOLOR="white" CLASS="TableRowColor">
431 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
432 <CODE> int</CODE></FONT></TD>
433 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#compareTo(java.lang.Object)">compareTo</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">Object</A> obj)</CODE>
436 Comparable interface method.</TD>
438 <TR BGCOLOR="white" CLASS="TableRowColor">
439 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
440 <CODE> int</CODE></FONT></TD>
441 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#compareTo(org.openafs.jafs.Process)">compareTo</A></B>(<A HREF="../../../org/openafs/jafs/Process.html">Process</A> process)</CODE>
444 Compares two Process objects respective to their names and does not
445 factor any other attribute. </TD>
447 <TR BGCOLOR="white" CLASS="TableRowColor">
448 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
449 <CODE>protected static void</CODE></FONT></TD>
450 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#create(int, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)">create</A></B>(int serverHandle,
451 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName,
452 int processType,
453 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath,
454 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> cronTime,
455 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> notifier)</CODE>
458 Creates a processes on a server.</TD>
460 <TR BGCOLOR="white" CLASS="TableRowColor">
461 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
462 <CODE> void</CODE></FONT></TD>
463 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#createCron(java.lang.String, java.lang.String)">createCron</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath,
464 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> cronTime)</CODE>
467 Creates this process as a cron process on the server.</TD>
469 <TR BGCOLOR="white" CLASS="TableRowColor">
470 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
471 <CODE> void</CODE></FONT></TD>
472 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#createFS(java.lang.String)">createFS</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath)</CODE>
475 Creates this process as a file server process on the server.</TD>
477 <TR BGCOLOR="white" CLASS="TableRowColor">
478 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
479 <CODE> void</CODE></FONT></TD>
480 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#createSimple(java.lang.String)">createSimple</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath)</CODE>
483 Creates this process as a simple process on the server.</TD>
485 <TR BGCOLOR="white" CLASS="TableRowColor">
486 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
487 <CODE> void</CODE></FONT></TD>
488 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#delete()">delete</A></B>()</CODE>
491 Removes this process from the bos server</TD>
493 <TR BGCOLOR="white" CLASS="TableRowColor">
494 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
495 <CODE>protected static void</CODE></FONT></TD>
496 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#delete(int, java.lang.String)">delete</A></B>(int serverHandle,
497 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)</CODE>
500 Removes a process from a server.</TD>
502 <TR BGCOLOR="white" CLASS="TableRowColor">
503 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
504 <CODE> boolean</CODE></FONT></TD>
505 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#equals(org.openafs.jafs.Process)">equals</A></B>(<A HREF="../../../org/openafs/jafs/Process.html">Process</A> otherProcess)</CODE>
508 Tests whether two <code>Process</code> objects are equal, based on their
509 names and hosting server.</TD>
511 <TR BGCOLOR="white" CLASS="TableRowColor">
512 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
513 <CODE> long</CODE></FONT></TD>
514 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getErrorCode()">getErrorCode</A></B>()</CODE>
517 Returns the error code of the process. </TD>
519 <TR BGCOLOR="white" CLASS="TableRowColor">
520 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
521 <CODE> long</CODE></FONT></TD>
522 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getErrorSignal()">getErrorSignal</A></B>()</CODE>
525 Returns the error signal of the process. </TD>
527 <TR BGCOLOR="white" CLASS="TableRowColor">
528 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
529 <CODE> long</CODE></FONT></TD>
530 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getExitErrorTime()">getExitErrorTime</A></B>()</CODE>
533 Returns the most recent time this process exited with an error. </TD>
535 <TR BGCOLOR="white" CLASS="TableRowColor">
536 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
537 <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A></CODE></FONT></TD>
538 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getExitErrorTimeDate()">getExitErrorTimeDate</A></B>()</CODE>
541 Returns the most recent time this process exited with an error. </TD>
543 <TR BGCOLOR="white" CLASS="TableRowColor">
544 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
545 <CODE> long</CODE></FONT></TD>
546 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getExitTime()">getExitTime</A></B>()</CODE>
549 Returns the most recent exit time of this process. </TD>
551 <TR BGCOLOR="white" CLASS="TableRowColor">
552 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
553 <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A></CODE></FONT></TD>
554 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getExitTimeDate()">getExitTimeDate</A></B>()</CODE>
557 Returns the most recent exit time of this process. </TD>
559 <TR BGCOLOR="white" CLASS="TableRowColor">
560 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
561 <CODE> int</CODE></FONT></TD>
562 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getGoal()">getGoal</A></B>()</CODE>
565 Returns the process goal. </TD>
567 <TR BGCOLOR="white" CLASS="TableRowColor">
568 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
569 <CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
570 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getInfo()">getInfo</A></B>()</CODE>
573 Returns a <code>String</code> representation of this <code>Process</code>.
576 <TR BGCOLOR="white" CLASS="TableRowColor">
577 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
578 <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
579 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getName()">getName</A></B>()</CODE>
582 Returns the name of this process.</TD>
584 <TR BGCOLOR="white" CLASS="TableRowColor">
585 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
586 <CODE> long</CODE></FONT></TD>
587 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getNumberOfStarts()">getNumberOfStarts</A></B>()</CODE>
590 Returns the number of starts of the process.
593 <TR BGCOLOR="white" CLASS="TableRowColor">
594 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
595 <CODE>protected static void</CODE></FONT></TD>
596 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getProcessInfo(int, java.lang.String, org.openafs.jafs.Process)">getProcessInfo</A></B>(int cellHandle,
597 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName,
598 <A HREF="../../../org/openafs/jafs/Process.html">Process</A> theProcess)</CODE>
601 Fills in the information fields of the provided <code>Process</code>.</TD>
603 <TR BGCOLOR="white" CLASS="TableRowColor">
604 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
605 <CODE> <A HREF="../../../org/openafs/jafs/Server.html">Server</A></CODE></FONT></TD>
606 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getServer()">getServer</A></B>()</CODE>
609 Returns the server hosting this process.</TD>
611 <TR BGCOLOR="white" CLASS="TableRowColor">
612 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
613 <CODE> long</CODE></FONT></TD>
614 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getStartTime()">getStartTime</A></B>()</CODE>
617 Returns the most recent start time of this process. </TD>
619 <TR BGCOLOR="white" CLASS="TableRowColor">
620 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
621 <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A></CODE></FONT></TD>
622 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getStartTimeDate()">getStartTimeDate</A></B>()</CODE>
625 Returns the most recent start time of this process. </TD>
627 <TR BGCOLOR="white" CLASS="TableRowColor">
628 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
629 <CODE> int</CODE></FONT></TD>
630 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getState()">getState</A></B>()</CODE>
633 Returns the process execution state. </TD>
635 <TR BGCOLOR="white" CLASS="TableRowColor">
636 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
637 <CODE> boolean</CODE></FONT></TD>
638 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getStateBadFileAccess()">getStateBadFileAccess</A></B>()</CODE>
641 Returns whether or not the state of the process indicates bad file access.
644 <TR BGCOLOR="white" CLASS="TableRowColor">
645 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
646 <CODE> boolean</CODE></FONT></TD>
647 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getStateOk()">getStateOk</A></B>()</CODE>
650 Returns whether or not the state of the process is ok. </TD>
652 <TR BGCOLOR="white" CLASS="TableRowColor">
653 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
654 <CODE> boolean</CODE></FONT></TD>
655 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getStateTooManyErrors()">getStateTooManyErrors</A></B>()</CODE>
658 Returns whether or not the state of the process indicates too many errors.
661 <TR BGCOLOR="white" CLASS="TableRowColor">
662 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
663 <CODE> int</CODE></FONT></TD>
664 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#getType()">getType</A></B>()</CODE>
667 Returns the process type. </TD>
669 <TR BGCOLOR="white" CLASS="TableRowColor">
670 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
671 <CODE>protected static void</CODE></FONT></TD>
672 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#reclaimProcessMemory()">reclaimProcessMemory</A></B>()</CODE>
675 Reclaims all memory being saved by the process portion of the native
678 <TR BGCOLOR="white" CLASS="TableRowColor">
679 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
680 <CODE> void</CODE></FONT></TD>
681 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#refresh()">refresh</A></B>()</CODE>
684 Refreshes the properties of this Process object instance with values
685 from the AFS process it represents. </TD>
687 <TR BGCOLOR="white" CLASS="TableRowColor">
688 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
689 <CODE>protected void</CODE></FONT></TD>
690 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#refresh(boolean)">refresh</A></B>(boolean all)</CODE>
693 Refreshes the properties of this Process object instance with values from
694 the AFS process it represents. </TD>
696 <TR BGCOLOR="white" CLASS="TableRowColor">
697 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
698 <CODE>protected void</CODE></FONT></TD>
699 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#refreshInfo()">refreshInfo</A></B>()</CODE>
702 Refreshes the information fields of this <code>Process</code> to reflect
703 the current state of the AFS process, such as the start time, the state,
706 <TR BGCOLOR="white" CLASS="TableRowColor">
707 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
708 <CODE> void</CODE></FONT></TD>
709 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#restart()">restart</A></B>()</CODE>
712 Restarts this process</TD>
714 <TR BGCOLOR="white" CLASS="TableRowColor">
715 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
716 <CODE>protected static void</CODE></FONT></TD>
717 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#restart(int, java.lang.String)">restart</A></B>(int serverHandle,
718 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)</CODE>
721 Retart this process.</TD>
723 <TR BGCOLOR="white" CLASS="TableRowColor">
724 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
725 <CODE> void</CODE></FONT></TD>
726 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#start()">start</A></B>()</CODE>
729 Starts this process</TD>
731 <TR BGCOLOR="white" CLASS="TableRowColor">
732 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
733 <CODE>protected static void</CODE></FONT></TD>
734 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#start(int, java.lang.String)">start</A></B>(int serverHandle,
735 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)</CODE>
738 Start this process.</TD>
740 <TR BGCOLOR="white" CLASS="TableRowColor">
741 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
742 <CODE> void</CODE></FONT></TD>
743 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#stop()">stop</A></B>()</CODE>
746 Stops this process.</TD>
748 <TR BGCOLOR="white" CLASS="TableRowColor">
749 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
750 <CODE>protected static void</CODE></FONT></TD>
751 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#stop(int, java.lang.String)">stop</A></B>(int serverHandle,
752 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)</CODE>
755 Stop this process.</TD>
757 <TR BGCOLOR="white" CLASS="TableRowColor">
758 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
759 <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
760 <TD><CODE><B><A HREF="../../../org/openafs/jafs/Process.html#toString()">toString</A></B>()</CODE>
763 Returns the name of this <CODE>Process</CODE></TD>
766 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
767 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
768 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
769 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">Object</A></B></TD>
771 <TR BGCOLOR="white" CLASS="TableRowColor">
772 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
778 <!-- ============ FIELD DETAIL =========== -->
780 <A NAME="field_detail"><!-- --></A>
781 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
782 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
783 <TD COLSPAN=1><FONT SIZE="+2">
784 <B>Field Detail</B></FONT></TD>
788 <A NAME="SIMPLE_PROCESS"><!-- --></A><H3>
791 public static final int <B>SIMPLE_PROCESS</B></PRE>
793 <DD>Any standard type of process except for fs (such as kaserver,
797 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.SIMPLE_PROCESS">Constant Field Values</A></DL>
801 <A NAME="FS_PROCESS"><!-- --></A><H3>
804 public static final int <B>FS_PROCESS</B></PRE>
806 <DD>Combination of File Server, Volume Server, and Salvager processes
809 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.FS_PROCESS">Constant Field Values</A></DL>
813 <A NAME="CRON_PROCESS"><!-- --></A><H3>
816 public static final int <B>CRON_PROCESS</B></PRE>
818 <DD>A process that should be restarted at a specific time either daily
822 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.CRON_PROCESS">Constant Field Values</A></DL>
826 <A NAME="STOPPED"><!-- --></A><H3>
829 public static final int <B>STOPPED</B></PRE>
831 <DD>Process execution state stopped
834 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.STOPPED">Constant Field Values</A></DL>
838 <A NAME="RUNNING"><!-- --></A><H3>
841 public static final int <B>RUNNING</B></PRE>
843 <DD>Process execution state running
846 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.RUNNING">Constant Field Values</A></DL>
850 <A NAME="STOPPING"><!-- --></A><H3>
853 public static final int <B>STOPPING</B></PRE>
855 <DD>Process execution state stopping
858 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.STOPPING">Constant Field Values</A></DL>
862 <A NAME="STARTING"><!-- --></A><H3>
865 public static final int <B>STARTING</B></PRE>
867 <DD>Process execution state starting
870 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.openafs.jafs.Process.STARTING">Constant Field Values</A></DL>
874 <A NAME="name"><!-- --></A><H3>
877 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> <B>name</B></PRE>
884 <A NAME="server"><!-- --></A><H3>
887 protected <A HREF="../../../org/openafs/jafs/Server.html">Server</A> <B>server</B></PRE>
894 <A NAME="serverHandle"><!-- --></A><H3>
897 protected int <B>serverHandle</B></PRE>
904 <A NAME="type"><!-- --></A><H3>
907 protected int <B>type</B></PRE>
914 <A NAME="state"><!-- --></A><H3>
917 protected int <B>state</B></PRE>
924 <A NAME="goal"><!-- --></A><H3>
927 protected int <B>goal</B></PRE>
934 <A NAME="startTime"><!-- --></A><H3>
937 protected long <B>startTime</B></PRE>
944 <A NAME="numberStarts"><!-- --></A><H3>
947 protected long <B>numberStarts</B></PRE>
954 <A NAME="exitTime"><!-- --></A><H3>
957 protected long <B>exitTime</B></PRE>
964 <A NAME="exitErrorTime"><!-- --></A><H3>
967 protected long <B>exitErrorTime</B></PRE>
974 <A NAME="errorCode"><!-- --></A><H3>
977 protected long <B>errorCode</B></PRE>
984 <A NAME="errorSignal"><!-- --></A><H3>
987 protected long <B>errorSignal</B></PRE>
994 <A NAME="stateOk"><!-- --></A><H3>
997 protected boolean <B>stateOk</B></PRE>
1004 <A NAME="stateTooManyErrors"><!-- --></A><H3>
1005 stateTooManyErrors</H3>
1007 protected boolean <B>stateTooManyErrors</B></PRE>
1014 <A NAME="stateBadFileAccess"><!-- --></A><H3>
1015 stateBadFileAccess</H3>
1017 protected boolean <B>stateBadFileAccess</B></PRE>
1024 <A NAME="startTimeDate"><!-- --></A><H3>
1027 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A> <B>startTimeDate</B></PRE>
1034 <A NAME="exitTimeDate"><!-- --></A><H3>
1037 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A> <B>exitTimeDate</B></PRE>
1044 <A NAME="exitErrorTimeDate"><!-- --></A><H3>
1045 exitErrorTimeDate</H3>
1047 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A> <B>exitErrorTimeDate</B></PRE>
1054 <A NAME="cachedInfo"><!-- --></A><H3>
1057 protected boolean <B>cachedInfo</B></PRE>
1063 <!-- ========= CONSTRUCTOR DETAIL ======== -->
1065 <A NAME="constructor_detail"><!-- --></A>
1066 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
1067 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1068 <TD COLSPAN=1><FONT SIZE="+2">
1069 <B>Constructor Detail</B></FONT></TD>
1073 <A NAME="Process(java.lang.String, org.openafs.jafs.Server)"><!-- --></A><H3>
1076 public <B>Process</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> name,
1077 <A HREF="../../../org/openafs/jafs/Server.html">Server</A> server)
1078 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1080 <DD>Constructs a new <code>Process</code> object instance given the name
1081 of the AFS process and the AFS server, represented by
1082 <CODE>server</CODE>, to which it belongs. This does not actually
1083 create a new AFS process, it just represents one.
1084 If <code>name</code> is not an actual AFS process, exceptions
1085 will be thrown during subsequent method invocations on this
1086 object, unless one of the <A HREF="../../../org/openafs/jafs/Process.html#createSimple(java.lang.String)"><CODE>createSimple(String)</CODE></A>,
1087 <A HREF="../../../org/openafs/jafs/Process.html#createFS(java.lang.String)"><CODE>createFS(String)</CODE></A>, or <A HREF="../../../org/openafs/jafs/Process.html#createCron(java.lang.String, java.lang.String)"><CODE>createCron(String,String)</CODE></A>
1088 methods are explicitly called to create it.
1090 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the server to represent<DD><CODE>server</CODE> - the server on which the process resides
1092 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1095 <A NAME="Process(java.lang.String, org.openafs.jafs.Server, boolean)"><!-- --></A><H3>
1098 public <B>Process</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> name,
1099 <A HREF="../../../org/openafs/jafs/Server.html">Server</A> server,
1100 boolean preloadAllMembers)
1101 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1103 <DD>Constructs a new <CODE>Process</CODE> object instance given the name
1104 of the AFS process and the AFS server, represented by
1105 <CODE>server</CODE>, to which it belongs. This does not actually
1106 create a new AFS process, it just represents one.
1107 If <code>name</code> is not an actual AFS process, exceptions
1108 will be thrown during subsequent method invocations on this
1109 object, unless one of the <A HREF="../../../org/openafs/jafs/Process.html#createSimple(java.lang.String)"><CODE>createSimple(String)</CODE></A>,
1110 <A HREF="../../../org/openafs/jafs/Process.html#createFS(java.lang.String)"><CODE>createFS(String)</CODE></A>, or <A HREF="../../../org/openafs/jafs/Process.html#createCron(java.lang.String, java.lang.String)"><CODE>createCron(String,String)</CODE></A>
1111 methods are explicitly called to create it. Note that if he process
1112 doesn't exist and <code>preloadAllMembers</code> is true, an exception
1115 <P> This constructor is ideal for point-in-time representation and
1116 transient applications. It ensures all data member values are set and
1117 available without calling back to the filesystem at the first request
1118 for them. Use the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method to address any coherency
1121 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the process to represent<DD><CODE>server</CODE> - the server to which the process belongs.<DD><CODE>preloadAllMembers</CODE> - true will ensure all object members are
1122 set upon construction; otherwise members will
1123 be set upon access, which is the default
1126 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A></DL>
1129 <A NAME="Process(org.openafs.jafs.Server)"><!-- --></A><H3>
1132 <B>Process</B>(<A HREF="../../../org/openafs/jafs/Server.html">Server</A> server)
1133 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1135 <DD>Creates a blank <code>Process</code> given the server to which the process
1136 belongs. This blank object can then be passed into other methods to fill
1139 <DT><B>Parameters:</B><DD><CODE>server</CODE> - the server to which the process belongs.
1141 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1143 <!-- ============ METHOD DETAIL ========== -->
1145 <A NAME="method_detail"><!-- --></A>
1146 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
1147 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1148 <TD COLSPAN=1><FONT SIZE="+2">
1149 <B>Method Detail</B></FONT></TD>
1153 <A NAME="refresh()"><!-- --></A><H3>
1156 public void <B>refresh</B>()
1157 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1159 <DD>Refreshes the properties of this Process object instance with values
1160 from the AFS process it represents. All properties that have been
1161 initialized and/or accessed will be renewed according to the values of
1162 the AFS process this Process object instance represents.
1164 <P>Since in most environments administrative changes can be administered
1165 from an AFS command-line program or an alternate GUI application, this
1166 method provides a means to refresh the Java object representation and
1167 thereby ascertain any possible modifications that may have been made
1168 from such alternate administrative programs. Using this method before
1169 an associated instance accessor will ensure the highest level of
1170 representative accuracy, accommodating changes made external to the
1171 Java application space. If administrative changes to the underlying AFS
1172 system are only allowed via this API, then the use of this method is
1181 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1186 <A NAME="refresh(boolean)"><!-- --></A><H3>
1189 protected void <B>refresh</B>(boolean all)
1190 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1192 <DD>Refreshes the properties of this Process object instance with values from
1193 the AFS process it represents. If <CODE>all</CODE> is <CODE>true</CODE>
1194 then <U>all</U> of the properties of this Process object instance will be
1195 set, or renewed, according to the values of the AFS process it represents,
1196 disregarding any previously set properties.
1198 <P> Thus, if <CODE>all</CODE> is <CODE>false</CODE> then properties that
1199 are currently set will be refreshed and properties that are not set will
1200 remain uninitialized. See <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> for more information.
1206 <DT><B>Parameters:</B><DD><CODE>all</CODE> - if true set or renew all object properties; otherwise renew
1209 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A></DL>
1214 <A NAME="refreshInfo()"><!-- --></A><H3>
1217 protected void <B>refreshInfo</B>()
1218 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1220 <DD>Refreshes the information fields of this <code>Process</code> to reflect
1221 the current state of the AFS process, such as the start time, the state,
1230 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1235 <A NAME="createSimple(java.lang.String)"><!-- --></A><H3>
1238 public void <B>createSimple</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath)
1239 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1241 <DD>Creates this process as a simple process on the server.
1247 <DT><B>Parameters:</B><DD><CODE>executionPath</CODE> - the path to the process's executable
1249 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1254 <A NAME="createFS(java.lang.String)"><!-- --></A><H3>
1257 public void <B>createFS</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath)
1258 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1260 <DD>Creates this process as a file server process on the server.
1266 <DT><B>Parameters:</B><DD><CODE>executionPath</CODE> - the path to the process's executable
1268 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1273 <A NAME="createCron(java.lang.String, java.lang.String)"><!-- --></A><H3>
1276 public void <B>createCron</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath,
1277 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> cronTime)
1278 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1280 <DD>Creates this process as a cron process on the server.
1286 <DT><B>Parameters:</B><DD><CODE>executionPath</CODE> - the path to the process's executable<DD><CODE>cronTime</CODE> - a String representing the time a cron process is
1287 to be run. Acceptable formats are:<ul>
1288 <li>for daily restarts: "23:10" or "11:10 pm"</li>
1289 <li>for weekly restarts: "sunday 11:10pm" or
1293 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1298 <A NAME="delete()"><!-- --></A><H3>
1301 public void <B>delete</B>()
1302 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1304 <DD>Removes this process from the bos server
1312 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1317 <A NAME="stop()"><!-- --></A><H3>
1320 public void <B>stop</B>()
1321 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1323 <DD>Stops this process.
1331 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1336 <A NAME="start()"><!-- --></A><H3>
1339 public void <B>start</B>()
1340 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1342 <DD>Starts this process
1350 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1355 <A NAME="restart()"><!-- --></A><H3>
1358 public void <B>restart</B>()
1359 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1361 <DD>Restarts this process
1369 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1374 <A NAME="getName()"><!-- --></A><H3>
1377 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> <B>getName</B>()</PRE>
1379 <DD>Returns the name of this process.
1386 <DT><B>Returns:</B><DD>the name of this process</DL>
1391 <A NAME="getServer()"><!-- --></A><H3>
1394 public <A HREF="../../../org/openafs/jafs/Server.html">Server</A> <B>getServer</B>()</PRE>
1396 <DD>Returns the server hosting this process.
1403 <DT><B>Returns:</B><DD>this process' server</DL>
1408 <A NAME="getType()"><!-- --></A><H3>
1411 public int <B>getType</B>()
1412 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1414 <DD>Returns the process type. Possible values are:<ul>
1415 <li><A HREF="../../../org/openafs/jafs/Process.html#SIMPLE_PROCESS"><CODE>SIMPLE_PROCESS</CODE></A></li>
1416 <li><A HREF="../../../org/openafs/jafs/Process.html#FS_PROCESS"><CODE>FS_PROCESS</CODE></A></li>
1417 <li><A HREF="../../../org/openafs/jafs/Process.html#CRON_PROCESS"><CODE>CRON_PROCESS</CODE></A></li></ul>
1424 <DT><B>Returns:</B><DD>the process type
1426 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1431 <A NAME="getGoal()"><!-- --></A><H3>
1434 public int <B>getGoal</B>()
1435 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1437 <DD>Returns the process goal. Possible values are:<ul>
1438 <li><A HREF="../../../org/openafs/jafs/Process.html#STOPPED"><CODE>STOPPED</CODE></A></li>
1439 <li><A HREF="../../../org/openafs/jafs/Process.html#RUNNING"><CODE>RUNNING</CODE></A></li>
1440 <li><A HREF="../../../org/openafs/jafs/Process.html#STARTING"><CODE>STARTING</CODE></A></li>
1441 <li><A HREF="../../../org/openafs/jafs/Process.html#STOPPING"><CODE>STOPPING</CODE></A></li></ul>
1442 After this method is called once, it saves the value
1443 and returns that value on subsequent calls,
1444 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1452 <DT><B>Returns:</B><DD>the process goal
1454 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1459 <A NAME="getState()"><!-- --></A><H3>
1462 public int <B>getState</B>()
1463 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1465 <DD>Returns the process execution state. Possible values are:<ul>
1466 <li><A HREF="../../../org/openafs/jafs/Process.html#STOPPED"><CODE>STOPPED</CODE></A></li>
1467 <li><A HREF="../../../org/openafs/jafs/Process.html#RUNNING"><CODE>RUNNING</CODE></A></li>
1468 <li><A HREF="../../../org/openafs/jafs/Process.html#STARTING"><CODE>STARTING</CODE></A></li>
1469 <li><A HREF="../../../org/openafs/jafs/Process.html#STOPPING"><CODE>STOPPING</CODE></A></li></ul>
1470 After this method is called once, it saves the value
1471 and returns that value on subsequent calls,
1472 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1480 <DT><B>Returns:</B><DD>the process execution state
1482 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1487 <A NAME="getStartTime()"><!-- --></A><H3>
1490 public long <B>getStartTime</B>()
1491 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1493 <DD>Returns the most recent start time of this process. A
1494 <code>null</code> value
1495 indicates no start time.
1496 After this method is called once, it saves the value
1497 and returns that value on subsequent calls,
1498 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1506 <DT><B>Returns:</B><DD>the start time
1508 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1513 <A NAME="getStartTimeDate()"><!-- --></A><H3>
1514 getStartTimeDate</H3>
1516 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A> <B>getStartTimeDate</B>()
1517 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1519 <DD>Returns the most recent start time of this process. A <code>null</code>
1520 value indicates no start time.
1521 After this method is called once, it saves the value
1522 and returns that value on subsequent calls,
1523 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1531 <DT><B>Returns:</B><DD>the start time
1533 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1538 <A NAME="getNumberOfStarts()"><!-- --></A><H3>
1539 getNumberOfStarts</H3>
1541 public long <B>getNumberOfStarts</B>()
1542 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1544 <DD>Returns the number of starts of the process.
1545 After this method is called once, it saves the value
1546 and returns that value on subsequent calls,
1547 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1555 <DT><B>Returns:</B><DD>the number of starts
1557 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1562 <A NAME="getExitTime()"><!-- --></A><H3>
1565 public long <B>getExitTime</B>()
1566 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1568 <DD>Returns the most recent exit time of this process. A <code>null</code>
1569 value indicates no exit time.
1570 After this method is called once, it saves the value
1571 and returns that value on subsequent calls,
1572 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1580 <DT><B>Returns:</B><DD>the exit time
1582 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1587 <A NAME="getExitTimeDate()"><!-- --></A><H3>
1588 getExitTimeDate</H3>
1590 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A> <B>getExitTimeDate</B>()
1591 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1593 <DD>Returns the most recent exit time of this process. A <code>null</code>
1594 value indicates no exit time
1595 After this method is called once, it saves the value
1596 and returns that value on subsequent calls,
1597 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1605 <DT><B>Returns:</B><DD>the exit time
1607 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1612 <A NAME="getExitErrorTime()"><!-- --></A><H3>
1613 getExitErrorTime</H3>
1615 public long <B>getExitErrorTime</B>()
1616 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1618 <DD>Returns the most recent time this process exited with an error. A
1619 <code>null</code> value indicates no exit w/ error time.
1620 After this method is called once, it saves the value
1621 and returns that value on subsequent calls,
1622 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1630 <DT><B>Returns:</B><DD>the exit w/ error time
1632 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1637 <A NAME="getExitErrorTimeDate()"><!-- --></A><H3>
1638 getExitErrorTimeDate</H3>
1640 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/GregorianCalendar.html">GregorianCalendar</A> <B>getExitErrorTimeDate</B>()
1641 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1643 <DD>Returns the most recent time this process exited with an error. A <
1644 code>null</code> value indicates no exit w/ error time.
1645 After this method is called once, it saves the value
1646 and returns that value on subsequent calls,
1647 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1655 <DT><B>Returns:</B><DD>the exit w/ error time
1657 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1662 <A NAME="getErrorCode()"><!-- --></A><H3>
1665 public long <B>getErrorCode</B>()
1666 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1668 <DD>Returns the error code of the process. A value of 0 indicates
1670 After this method is called once, it saves the value
1671 and returns that value on subsequent calls,
1672 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1680 <DT><B>Returns:</B><DD>the error code
1682 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1687 <A NAME="getErrorSignal()"><!-- --></A><H3>
1690 public long <B>getErrorSignal</B>()
1691 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1693 <DD>Returns the error signal of the process. A value of 0 indicates no
1695 After this method is called once, it saves the value
1696 and returns that value on subsequent calls,
1697 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1705 <DT><B>Returns:</B><DD>the error signal
1707 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1712 <A NAME="getStateOk()"><!-- --></A><H3>
1715 public boolean <B>getStateOk</B>()
1716 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1718 <DD>Returns whether or not the state of the process is ok. A value of
1719 <code>false</code> indicates there has been a core dump.
1720 After this method is called once, it saves the value
1721 and returns that value on subsequent calls,
1722 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1730 <DT><B>Returns:</B><DD>whether or not the state is ok
1732 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1737 <A NAME="getStateTooManyErrors()"><!-- --></A><H3>
1738 getStateTooManyErrors</H3>
1740 public boolean <B>getStateTooManyErrors</B>()
1741 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1743 <DD>Returns whether or not the state of the process indicates too many errors.
1744 After this method is called once, it saves the value
1745 and returns that value on subsequent calls,
1746 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1754 <DT><B>Returns:</B><DD>whether or not the state indicates too many errors
1756 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1761 <A NAME="getStateBadFileAccess()"><!-- --></A><H3>
1762 getStateBadFileAccess</H3>
1764 public boolean <B>getStateBadFileAccess</B>()
1765 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1767 <DD>Returns whether or not the state of the process indicates bad file access.
1768 After this method is called once, it saves the value
1769 and returns that value on subsequent calls,
1770 until the <A HREF="../../../org/openafs/jafs/Process.html#refresh()"><CODE>refresh()</CODE></A> method is called and a more current
1778 <DT><B>Returns:</B><DD>whether or not the state indicates bad file access
1780 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code</DL>
1785 <A NAME="getInfo()"><!-- --></A><H3>
1788 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> <B>getInfo</B>()</PRE>
1790 <DD>Returns a <code>String</code> representation of this <code>Process</code>.
1791 Contains the information fields.
1798 <DT><B>Returns:</B><DD>a <code>String</code> representation of the <code>Process</code></DL>
1803 <A NAME="compareTo(org.openafs.jafs.Process)"><!-- --></A><H3>
1806 public int <B>compareTo</B>(<A HREF="../../../org/openafs/jafs/Process.html">Process</A> process)</PRE>
1808 <DD>Compares two Process objects respective to their names and does not
1809 factor any other attribute. Alphabetic case is significant in
1816 <DT><B>Parameters:</B><DD><CODE>process</CODE> - The Process object to be compared to this Process
1818 <DT><B>Returns:</B><DD>Zero if the argument is equal to this Process' name, a
1819 value less than zero if this Process' name is
1820 lexicographically less than the argument, or a value greater
1821 than zero if this Process' name is lexicographically
1822 greater than the argument</DL>
1827 <A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
1830 public int <B>compareTo</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">Object</A> obj)</PRE>
1832 <DD>Comparable interface method.
1835 <DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html">Comparable</A></CODE></DL>
1838 <DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Process.html#compareTo(org.openafs.jafs.Process)"><CODE>compareTo(Process)</CODE></A></DL>
1843 <A NAME="equals(org.openafs.jafs.Process)"><!-- --></A><H3>
1846 public boolean <B>equals</B>(<A HREF="../../../org/openafs/jafs/Process.html">Process</A> otherProcess)</PRE>
1848 <DD>Tests whether two <code>Process</code> objects are equal, based on their
1849 names and hosting server.
1855 <DT><B>Parameters:</B><DD><CODE>otherProcess</CODE> - the Process to test
1856 <DT><B>Returns:</B><DD>whether the specifed Process is the same as this Process</DL>
1861 <A NAME="toString()"><!-- --></A><H3>
1864 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE>
1866 <DD>Returns the name of this <CODE>Process</CODE>
1869 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">Object</A></CODE></DL>
1873 <DT><B>Returns:</B><DD>the name of this <CODE>Process</CODE></DL>
1878 <A NAME="getProcessInfo(int, java.lang.String, org.openafs.jafs.Process)"><!-- --></A><H3>
1881 protected static void <B>getProcessInfo</B>(int cellHandle,
1882 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName,
1883 <A HREF="../../../org/openafs/jafs/Process.html">Process</A> theProcess)
1884 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1886 <DD>Fills in the information fields of the provided <code>Process</code>.
1892 <DT><B>Parameters:</B><DD><CODE>cellHandle</CODE> - the handle of the cell to which the process belongs<DD><CODE>processName</CODE> - the instance name of the process for which to get
1893 the information<DD><CODE>theProcess</CODE> - the <A HREF="../../../org/openafs/jafs/Process.html"><CODE>Process</CODE></A> object in which to fill
1896 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Cell.html#getCellHandle()"><CODE>Cell.getCellHandle()</CODE></A></DL>
1901 <A NAME="create(int, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
1904 protected static void <B>create</B>(int serverHandle,
1905 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName,
1906 int processType,
1907 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> executionPath,
1908 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> cronTime,
1909 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> notifier)
1910 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1912 <DD>Creates a processes on a server.
1918 <DT><B>Parameters:</B><DD><CODE>serverHandle</CODE> - the bos handle of the server to which the key will
1919 belong<DD><CODE>processName</CODE> - the instance name to give the process. See AFS
1920 documentation for a standard list of instance names<DD><CODE>processType</CODE> - the type of process this will be.
1921 Acceptable values are:<ul>
1922 <li><A HREF="../../../org/openafs/jafs/Process.html#SIMPLE_PROCESS"><CODE>SIMPLE_PROCESS</CODE></A></li>
1923 <li><A HREF="../../../org/openafs/jafs/Process.html#FS_PROCESS"><CODE>FS_PROCESS</CODE></A></li>
1924 <li><A HREF="../../../org/openafs/jafs/Process.html#CRON_PROCESS"><CODE>CRON_PROCESS</CODE></A></li></ul><DD><CODE>executionPath</CODE> - the execution path process to create<DD><CODE>cronTime</CODE> - a String representing the time a cron process is to
1925 be run. Acceptable formats are:<ul>
1926 <li>for daily restarts: "23:10" or "11:10 pm"</li>
1927 <li>for weekly restarts: "sunday 11:10pm" or
1930 Can be <code>null</code> for non-cron processes.<DD><CODE>notifier</CODE> - the execution path to a notifier program that should
1931 be called when the process terminates. Can be
1934 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Server.html#getBosServerHandle(int, java.lang.String)"><CODE>Server.getBosServerHandle(int, java.lang.String)</CODE></A></DL>
1939 <A NAME="delete(int, java.lang.String)"><!-- --></A><H3>
1942 protected static void <B>delete</B>(int serverHandle,
1943 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)
1944 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1946 <DD>Removes a process from a server.
1952 <DT><B>Parameters:</B><DD><CODE>serverHandle</CODE> - the bos handle of the server to which the process
1953 belongs<DD><CODE>processName</CODE> - the name of the process to remove
1955 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Server.html#getBosServerHandle(int, java.lang.String)"><CODE>Server.getBosServerHandle(int, java.lang.String)</CODE></A></DL>
1960 <A NAME="start(int, java.lang.String)"><!-- --></A><H3>
1963 protected static void <B>start</B>(int serverHandle,
1964 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)
1965 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1967 <DD>Start this process.
1973 <DT><B>Parameters:</B><DD><CODE>serverHandle</CODE> - the bos handle of the server to which the process
1974 belongs<DD><CODE>processName</CODE> - the name of the process to start
1976 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Server.html#getBosServerHandle(int, java.lang.String)"><CODE>Server.getBosServerHandle(int, java.lang.String)</CODE></A></DL>
1981 <A NAME="restart(int, java.lang.String)"><!-- --></A><H3>
1984 protected static void <B>restart</B>(int serverHandle,
1985 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)
1986 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
1988 <DD>Retart this process.
1994 <DT><B>Parameters:</B><DD><CODE>serverHandle</CODE> - the bos handle of the server to which the process
1995 belongs<DD><CODE>processName</CODE> - the name of the process to restart
1997 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Server.html#getBosServerHandle(int, java.lang.String)"><CODE>Server.getBosServerHandle(int, java.lang.String)</CODE></A></DL>
2002 <A NAME="stop(int, java.lang.String)"><!-- --></A><H3>
2005 protected static void <B>stop</B>(int serverHandle,
2006 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A> processName)
2007 throws <A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></PRE>
2009 <DD>Stop this process.
2015 <DT><B>Parameters:</B><DD><CODE>serverHandle</CODE> - the bos handle of the server to which the process
2016 belongs<DD><CODE>processName</CODE> - the name of the process to stop
2018 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSException.html">AFSException</A></CODE> - If an error occurs in the native code<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/Server.html#getBosServerHandle(int, java.lang.String)"><CODE>Server.getBosServerHandle(int, java.lang.String)</CODE></A></DL>
2023 <A NAME="reclaimProcessMemory()"><!-- --></A><H3>
2024 reclaimProcessMemory</H3>
2026 protected static void <B>reclaimProcessMemory</B>()</PRE>
2028 <DD>Reclaims all memory being saved by the process portion of the native
2029 library. This method should be called when no more <code>Process</code>
2030 objects are expected to be used.
2039 <!-- ========= END OF CLASS DATA ========= -->
2042 <!-- ========== START OF NAVBAR ========== -->
2043 <A NAME="navbar_bottom"><!-- --></A>
2044 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
2046 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
2047 <A NAME="navbar_bottom_firstrow"><!-- --></A>
2048 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
2049 <TR ALIGN="center" VALIGN="top">
2050 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
2051 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
2052 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Process.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
2053 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
2054 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
2055 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
2056 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
2060 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
2061 <B>JAFS API v2</B></EM>
2066 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2067 <A HREF="../../../org/openafs/jafs/Partition.html"><B>PREV CLASS</B></A>
2068 <A HREF="../../../org/openafs/jafs/Server.html"><B>NEXT CLASS</B></A></FONT></TD>
2069 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2070 <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
2071 <A HREF="Process.html" TARGET="_top"><B>NO FRAMES</B></A>
2076 document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
2081 <A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
2086 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2087 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
2088 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2089 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
2092 <!-- =========== END OF NAVBAR =========== -->