Java Doc for ImRModel.java in  » Collaboration » JacORB » org » jacorb » imr » util » 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 » Collaboration » JacORB » org.jacorb.imr.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jacorb.imr.util.ImRModel

ImRModel
public class ImRModel (Code)
This class provides the GUIs functionality communicating with the repository.
author:
   Nicolas Noffke
author:
   $Id: ImRModel.java,v 1.12 2006/06/14 11:54:40 alphonse.bendt Exp $


Field Summary
protected  intm_current_refresh_interval
    
protected  booleanm_refresh_disabled
    

Constructor Summary
public  ImRModel()
     The constructor.

Method Summary
public  voidaddServer(String name, String command, String host)
     Add a server to the repository.
Parameters:
  name - the servers name.
Parameters:
  command - the servers startup command.
public  voidconnectTo(String ior_url)
     Connect the manager to a remote repository.
public  voiddisableRefresh()
     Disable the automatic refresh.
public  voidfetchServers()
     Fetch all servers from the repository.
public  JComboBoxgetHostSelector()
     Get a JComboBox containing all known hostnames.
public  TableModelgetPOATableModel()
     Get the table model for the POA table.
public  intgetRow(ServerInfo server, POAInfo poa)
     Get the row number of a POA in the POA table.
public  TableModelgetServerTableModel()
     Get the table model for the server table.
public  JTreegetTree()
     Get the tree representation of the server structure.
public  voidholdServer(String name)
     Hold a server.
public  voidholdServer(int server_row)
     Hold a server.
public  voidimrShutdown(boolean wait)
     Shut the repository down.
public  voidpoaTableForServer(ServerInfo server)
     Set the POA table model to the specific server, i.e.
public  voidrefreshServer(String name)
     Refresh a server.
public  voidrefreshServer(int index)
     Refresh a server.
public  voidreleaseServer(String name)
     Release a server.
public  voidreleaseServer(int server_row)
     Release a server.
public  voidremoveServer(String name)
     Remove a server from the repository.
public  voidremoveServer(int server_row)
     Remove a server from the repository.
public  voidsaveTable()
     Make a backup of the server table.
public  voidsetRefreshInterval(int interval)
     Set the interval by which the internal data is refreshed.
public  voidsetServerDown(String name)
     Set a server down.
public  voidsetServerDown(int server_row)
     Set a server down.
protected  voidupdateServer(int server_row, String field_name, Object new_value)
     Update a server in the repository by changes the user made in the server table of the GUI.

Field Detail
m_current_refresh_interval
protected int m_current_refresh_interval(Code)



m_refresh_disabled
protected boolean m_refresh_disabled(Code)




Constructor Detail
ImRModel
public ImRModel()(Code)
The constructor. Connects to default repository and fetches the servers.




Method Detail
addServer
public void addServer(String name, String command, String host)(Code)
Add a server to the repository.
Parameters:
  name - the servers name.
Parameters:
  command - the servers startup command. Leave empty (not null)if automatic startup is not desired.
Parameters:
  host - the host the server is running on.



connectTo
public void connectTo(String ior_url)(Code)
Connect the manager to a remote repository.
Parameters:
  ior_url - an url pointing to the IOR file of a remote repository.



disableRefresh
public void disableRefresh()(Code)
Disable the automatic refresh.



fetchServers
public void fetchServers()(Code)
Fetch all servers from the repository. Rebuild Tree and HostSelector.



getHostSelector
public JComboBox getHostSelector()(Code)
Get a JComboBox containing all known hostnames. a JComboBox.



getPOATableModel
public TableModel getPOATableModel()(Code)
Get the table model for the POA table.



getRow
public int getRow(ServerInfo server, POAInfo poa)(Code)
Get the row number of a POA in the POA table.
Parameters:
  server - the server node the POA belongs to.
Parameters:
  poa - the poas poa node.



getServerTableModel
public TableModel getServerTableModel()(Code)
Get the table model for the server table.



getTree
public JTree getTree()(Code)
Get the tree representation of the server structure. a JTree.



holdServer
public void holdServer(String name)(Code)
Hold a server.
Parameters:
  name - the servers name.



holdServer
public void holdServer(int server_row)(Code)
Hold a server.
Parameters:
  server_row - the servers row in the table.



imrShutdown
public void imrShutdown(boolean wait)(Code)
Shut the repository down.
Parameters:
  wait - true, if ORB should wait for still open connections to beclosed by clients.



poaTableForServer
public void poaTableForServer(ServerInfo server)(Code)
Set the POA table model to the specific server, i.e. the POA table displays this servers poas.
Parameters:
  server - the servers name to build the table for.



refreshServer
public void refreshServer(String name)(Code)
Refresh a server.
Parameters:
  name - the servers name.



refreshServer
public void refreshServer(int index)(Code)
Refresh a server.
Parameters:
  index - the servers row in the table.



releaseServer
public void releaseServer(String name)(Code)
Release a server.
Parameters:
  name - the servers name.



releaseServer
public void releaseServer(int server_row)(Code)
Release a server.
Parameters:
  server_row - the servers row in the table.



removeServer
public void removeServer(String name)(Code)
Remove a server from the repository.
Parameters:
  name - the servers name.



removeServer
public void removeServer(int server_row)(Code)
Remove a server from the repository.
Parameters:
  server_row - the servers row in the table.



saveTable
public void saveTable()(Code)
Make a backup of the server table.



setRefreshInterval
public void setRefreshInterval(int interval)(Code)
Set the interval by which the internal data is refreshed.
Parameters:
  interval - refresh interval in ms.



setServerDown
public void setServerDown(String name)(Code)
Set a server down.
Parameters:
  name - the servers name.



setServerDown
public void setServerDown(int server_row)(Code)
Set a server down.
Parameters:
  server_row - the servers row in the table.



updateServer
protected void updateServer(int server_row, String field_name, Object new_value)(Code)
Update a server in the repository by changes the user made in the server table of the GUI.
Parameters:
  server_row - the row of the server in the table.
Parameters:
  field_name - the columns name.
Parameters:
  new_value - the cells new value.



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.