Java Doc for CSMARTConsoleModel.java in  » Science » Cougaar12_4 » org » cougaar » tools » csmart » ui » console » 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.csmart.ui.console 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Observable
      org.cougaar.tools.csmart.ui.console.CSMARTConsoleModel

CSMARTConsoleModel
public class CSMARTConsoleModel extends Observable implements Observer(Code)
org.cougaar.tools.csmart.ui.console

Inner Class :class CreateNodeViewThread implements Runnable
Inner Class :class NodeModelRemover implements Runnable
Inner Class :class AppServerList extends ArrayList

Field Summary
final public static  StringADD_GLS_WINDOW
     Used by listeners to determine which event was fired.
final public static  StringAPP_SERVERS_REFRESH
    
final public static  StringAPP_SERVER_ADDED
    
final public static  StringAPP_SERVER_DELETED
    
final public static  StringCOMMAND_ARGUMENTS
    
final public static  intDEFAULT_VIEW_SIZE
    
final public static  StringNEW_EXPERIMENT
    
final public static  StringNODE_ADDED
    
final public static  StringNODE_REMOVED
    
final public static  StringSTART_EXPERIMENT_TIMER
    
final public static  StringSTOP_EXPERIMENT_TIMER
    
public  intviewSize
    

Constructor Summary
public  CSMARTConsoleModel(Experiment experiment, CSMART csmart)
    

Method Summary
public  voidaddAppServer(AppServerDesc desc)
     Called by AppServerSupport to add an app server.
public  voidaddGLSWindow()
    
public  voidaddNodeToAppServerMapping(String name, AppServerDesc appServerDesc)
     Add node to node-to-appServer mapping.
public  voidappServerDelete(AppServerDesc appServerDesc)
     Delete app server; just remove entries for this app server.
public  voidattachToNode(String name)
     Attach to a running node.
public  voidcreateGUI(String nodeName)
     This is called from the node start thread, when a node is successfully started.
public  voiddetachFromSociety()
    
public  intgetASPollInterval()
    
public  AppServerDescgetAppServer(String name)
     Get app server description for a node.
public  AppServerDescgetAppServer(String hostName, int port)
     Get app server on this host and port.
public static  intgetAppServerPort(Properties properties)
    
public  ArrayListgetAppServers()
     Return array list of AppServerDesc of known app servers.
public  ArrayListgetAttachedNodes()
     Get list of nodes to which CSMART is attached.
public  ExperimentgetExperiment()
    
public  String[]getGLSContactInfo()
    
public  PropertiesgetNodeMinusD(NodeComponent nc, String hostName)
     Get node -d arguments.
public  NodeModelgetNodeModel(String name)
    
public  ArrayListgetNodeModels()
    
public  StringgetNotifyCondition()
    
public  booleangetNotifyOnStandardError()
    
public static  DategetRunStart()
    
public  StringgetSelectedNodeName()
     Get the name of the node whose status button is selected.
public  ArrayListgetUnattachedNodes()
     Get list of nodes to which CSMART is not attached.
public  intgetViewSize()
     Return the view size used for all nodes.
public  FilegetXMLFile()
    
public  booleanhaveAttached()
    
public  booleanisCSMARTNull()
    
public  booleanisRunnable()
    
public  voidkillAllProcesses()
     Kill all processes known by all known AppServers, whether or not we're attached to them.
public  voidrefreshAppServers()
     Refresh app servers; notify AppServerSupport.
public  voidremoveNodeModel(String nodeName)
     This is called from the node start thread, when attaching to a node fails.
public  voidrequestAppServerAdd(String hostName, int port)
     User selected "add app server" menu item or we're creating a node that specified this app server.
public  voidresetASPoller(int newInterval)
     Cancel old AppServer poller if any.
public  voidresetNotifyStatus()
    
public  voidsetExperiment(Experiment experiment)
     Sets an experiment for this model.
public  voidsetFilter(ConsoleNodeOutputFilter filter)
     Set the filter for all the nodes.
public  voidsetNotification(String notifyCondition, boolean notifyOnStdErr)
    
public  voidsetRunning(boolean doRun)
     Start or stop the nodes.
public  voidsetSelectedNodeName(String name)
     Set the name of the node whose status button is selected.
public  voidsetViewSize(int size)
     Set the view size for all the nodes.
public  voidsetXMLFile(File selectedFile)
    
public  voidstopNodes()
     Tell the node model to stop the node, but the GUIs are not updated until the ConsoleNodeListener gets a node destroyed message.
public  voidupdate(Observable o, Object arg)
     This is an observer on all the node models.

Field Detail
ADD_GLS_WINDOW
final public static String ADD_GLS_WINDOW(Code)
Used by listeners to determine which event was fired. *



APP_SERVERS_REFRESH
final public static String APP_SERVERS_REFRESH(Code)



APP_SERVER_ADDED
final public static String APP_SERVER_ADDED(Code)



APP_SERVER_DELETED
final public static String APP_SERVER_DELETED(Code)



COMMAND_ARGUMENTS
final public static String COMMAND_ARGUMENTS(Code)



DEFAULT_VIEW_SIZE
final public static int DEFAULT_VIEW_SIZE(Code)



NEW_EXPERIMENT
final public static String NEW_EXPERIMENT(Code)



NODE_ADDED
final public static String NODE_ADDED(Code)



NODE_REMOVED
final public static String NODE_REMOVED(Code)



START_EXPERIMENT_TIMER
final public static String START_EXPERIMENT_TIMER(Code)



STOP_EXPERIMENT_TIMER
final public static String STOP_EXPERIMENT_TIMER(Code)



viewSize
public int viewSize(Code)




Constructor Detail
CSMARTConsoleModel
public CSMARTConsoleModel(Experiment experiment, CSMART csmart)(Code)




Method Detail
addAppServer
public void addAppServer(AppServerDesc desc)(Code)
Called by AppServerSupport to add an app server.



addGLSWindow
public void addGLSWindow()(Code)



addNodeToAppServerMapping
public void addNodeToAppServerMapping(String name, AppServerDesc appServerDesc)(Code)
Add node to node-to-appServer mapping.



appServerDelete
public void appServerDelete(AppServerDesc appServerDesc)(Code)
Delete app server; just remove entries for this app server.



attachToNode
public void attachToNode(String name)(Code)
Attach to a running node. Create a node model and node view.



createGUI
public void createGUI(String nodeName)(Code)
This is called from the node start thread, when a node is successfully started. The node view and node status button are created if necessary; and CSMARTConsoleView is notified, and adds them to the display.



detachFromSociety
public void detachFromSociety()(Code)



getASPollInterval
public int getASPollInterval()(Code)



getAppServer
public AppServerDesc getAppServer(String name)(Code)
Get app server description for a node.



getAppServer
public AppServerDesc getAppServer(String hostName, int port)(Code)
Get app server on this host and port.



getAppServerPort
public static int getAppServerPort(Properties properties)(Code)



getAppServers
public ArrayList getAppServers()(Code)
Return array list of AppServerDesc of known app servers.



getAttachedNodes
public ArrayList getAttachedNodes()(Code)
Get list of nodes to which CSMART is attached. Returns an array of Strings (node names).



getExperiment
public Experiment getExperiment()(Code)



getGLSContactInfo
public String[] getGLSContactInfo()(Code)



getNodeMinusD
public Properties getNodeMinusD(NodeComponent nc, String hostName)(Code)
Get node -d arguments. Substitute host name for $HOST value if it occurs.
Parameters:
  nc - for which to get the -d arguments properties the -d arguments



getNodeModel
public NodeModel getNodeModel(String name)(Code)



getNodeModels
public ArrayList getNodeModels()(Code)



getNotifyCondition
public String getNotifyCondition()(Code)



getNotifyOnStandardError
public boolean getNotifyOnStandardError()(Code)



getRunStart
public static Date getRunStart()(Code)



getSelectedNodeName
public String getSelectedNodeName()(Code)
Get the name of the node whose status button is selected.



getUnattachedNodes
public ArrayList getUnattachedNodes()(Code)
Get list of nodes to which CSMART is not attached. Returns an array of Strings (node names).



getViewSize
public int getViewSize()(Code)
Return the view size used for all nodes. This value may be overwritten for individual nodes.



getXMLFile
public File getXMLFile()(Code)



haveAttached
public boolean haveAttached()(Code)



isCSMARTNull
public boolean isCSMARTNull()(Code)



isRunnable
public boolean isRunnable()(Code)



killAllProcesses
public void killAllProcesses()(Code)
Kill all processes known by all known AppServers, whether or not we're attached to them.



refreshAppServers
public void refreshAppServers()(Code)
Refresh app servers; notify AppServerSupport.



removeNodeModel
public void removeNodeModel(String nodeName)(Code)
This is called from the node start thread, when attaching to a node fails. It uses a Swing thread to remove the node model, so that we don't have to synchronize the nodeModels hashtable.
Parameters:
  nodeName - name of node to remove



requestAppServerAdd
public void requestAppServerAdd(String hostName, int port)(Code)
User selected "add app server" menu item or we're creating a node that specified this app server. Notify AppServerSupport.



resetASPoller
public void resetASPoller(int newInterval)(Code)
Cancel old AppServer poller if any. If new interval is greater than 0, start a new timer to poll every interval milliseconds.



resetNotifyStatus
public void resetNotifyStatus()(Code)



setExperiment
public void setExperiment(Experiment experiment)(Code)
Sets an experiment for this model. This is used when an experiment is loaded from the Console.
Parameters:
  experiment -



setFilter
public void setFilter(ConsoleNodeOutputFilter filter)(Code)
Set the filter for all the nodes.



setNotification
public void setNotification(String notifyCondition, boolean notifyOnStdErr)(Code)



setRunning
public void setRunning(boolean doRun)(Code)
Start or stop the nodes. Called when the user selects the Run or Stop buttons.
Parameters:
  doRun - -- The new running state.



setSelectedNodeName
public void setSelectedNodeName(String name)(Code)
Set the name of the node whose status button is selected.



setViewSize
public void setViewSize(int size)(Code)
Set the view size for all the nodes.



setXMLFile
public void setXMLFile(File selectedFile)(Code)



stopNodes
public void stopNodes()(Code)
Tell the node model to stop the node, but the GUIs are not updated until the ConsoleNodeListener gets a node destroyed message. Only act on nodes that are in the "Running" state.



update
public void update(Observable o, Object arg)(Code)
This is an observer on all the node models. It notifies its observers when node states change. It updates the experiment status -- if any nodes is running, then the experiment is running if all nodes are stopped, then the experiment is stopped



Methods inherited from java.util.Observable
public synchronized void addObserver(Observer o)(Code)(Java Doc)
protected synchronized void clearChanged()(Code)(Java Doc)
public synchronized int countObservers()(Code)(Java Doc)
public synchronized void deleteObserver(Observer o)(Code)(Java Doc)
public synchronized void deleteObservers()(Code)(Java Doc)
public synchronized boolean hasChanged()(Code)(Java Doc)
public void notifyObservers()(Code)(Java Doc)
public void notifyObservers(Object arg)(Code)(Java Doc)
protected synchronized void setChanged()(Code)(Java Doc)

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.