Java Doc for ProcessStatus.java in  » Science » Cougaar12_4 » org » cougaar » tools » server » system » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.tools.server.system 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.tools.server.system.ProcessStatus

ProcessStatus
final public class ProcessStatus implements Serializable(Code)
A status summary of a running process, which may or may not be a Java Virtual Machine, which includes references to parent/child processes and basic process information.

Some of this information is Operating System specific, such as the ability to track memory/cpu usage.



Field Summary
final public static  intMARK_CHILD
     This ProcessStatus has the "marked" ProcessStatus as a parent or (great+)grandparent.
final public static  intMARK_NONE
     Marking disabled or there is no relation with this ProcessStatus and the self-"marked" ProcessStatus.
final public static  intMARK_PARENT
     This ProcessStatus contains the "marked" ProcessStatus as a child or (great+)grandchild.
final public static  intMARK_SELF
     This ProcessStatus is the single "marked" ProcessStatus.
final public static  String[]MARK_STRINGS
    

Constructor Summary
public  ProcessStatus(ProcessStatus parent, List children, long pid, long ppid, long start, String user, String cmd)
    

Method Summary
public  ListgetChildren()
     Get an immutable list of children ProcessStatus processes.
public  StringgetCommand()
     Get the command.
public  intgetMark()
     Get the "mark" of this process in relation to the process that has the "MARK_SELF" tag.

This is a utility method for recursively tagging the process tree.

public  StringgetMarkAsString()
     Get the mark as a readable String.
public  ProcessStatusgetParent()
     Get the parent process's ProcessStatus of this process. Most ProcessStatus data structures will have a non-null getParent().
public  longgetParentProcessIdentifier()
     Get the parent's process id.
public  longgetProcessIdentifier()
     Get the process id.
public  longgetStartTime()
     Get the start time in milliseconds.
public  StringgetUserName()
     Get the user name.
public  voidmark()
     Mark this ProcessStatus with "MARK_SELF", it's parents and (grand+)parents with "MARK_PARENT", and all it's children and (grand+)children with "MARK_CHILD".
public  StringtoString()
    
public  StringtoString(boolean showFullDetails)
    
public  voidunmark()
     Mark this ProcessStatus as "MARK_NONE".

This is useful when preparing to call mark().


Field Detail
MARK_CHILD
final public static int MARK_CHILD(Code)
This ProcessStatus has the "marked" ProcessStatus as a parent or (great+)grandparent.
See Also:   ProcessStatus.getMark()



MARK_NONE
final public static int MARK_NONE(Code)
Marking disabled or there is no relation with this ProcessStatus and the self-"marked" ProcessStatus.
See Also:   ProcessStatus.getMark()



MARK_PARENT
final public static int MARK_PARENT(Code)
This ProcessStatus contains the "marked" ProcessStatus as a child or (great+)grandchild.
See Also:   ProcessStatus.getMark()



MARK_SELF
final public static int MARK_SELF(Code)
This ProcessStatus is the single "marked" ProcessStatus.
See Also:   ProcessStatus.getMark()



MARK_STRINGS
final public static String[] MARK_STRINGS(Code)

See Also:   ProcessStatus.getMark()




Constructor Detail
ProcessStatus
public ProcessStatus(ProcessStatus parent, List children, long pid, long ppid, long start, String user, String cmd)(Code)




Method Detail
getChildren
public List getChildren()(Code)
Get an immutable list of children ProcessStatus processes.



getCommand
public String getCommand()(Code)
Get the command.

The result may contain whitespace and other control characters.




getMark
public int getMark()(Code)
Get the "mark" of this process in relation to the process that has the "MARK_SELF" tag.

This is a utility method for recursively tagging the process tree. For example, the result of a ProcessStatusReader could mark the JVM as the "MARK_SELF", it's parent processes as "MARK_PARENT", and all child processes as "MARK_CHILD". This facilitates the later display of this information.
See Also:   ProcessStatus.mark()




getMarkAsString
public String getMarkAsString()(Code)
Get the mark as a readable String.
See Also:   ProcessStatus.getMark()



getParent
public ProcessStatus getParent()(Code)
Get the parent process's ProcessStatus of this process. Most ProcessStatus data structures will have a non-null getParent(). The important exceptions are:
  • the root (getParentProcessIdentifier() == 0).
  • a trimmed listing, where not all ProcessStatus entries are gathered.

See Also:   ProcessStatus.getParentProcessIdentifier()



getParentProcessIdentifier
public long getParentProcessIdentifier()(Code)
Get the parent's process id.
See Also:   ProcessStatus.getParent()



getProcessIdentifier
public long getProcessIdentifier()(Code)
Get the process id.



getStartTime
public long getStartTime()(Code)
Get the start time in milliseconds.



getUserName
public String getUserName()(Code)
Get the user name.



mark
public void mark()(Code)
Mark this ProcessStatus with "MARK_SELF", it's parents and (grand+)parents with "MARK_PARENT", and all it's children and (grand+)children with "MARK_CHILD".

This does not set unrelated ProcessStatus data structures to "MARK_NONE" -- see unmark().
See Also:   ProcessStatus.getMark()
See Also:   ProcessStatus.unmark()




toString
public String toString()(Code)



toString
public String toString(boolean showFullDetails)(Code)



unmark
public void unmark()(Code)
Mark this ProcessStatus as "MARK_NONE".

This is useful when preparing to call mark(). Note that for a clean "mark()" all ProcessStatus data structures must be first "unmark()"ed.




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.