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


java.lang.Object
   org.jacorb.imr.ImRServerInfo

ImRServerInfo
public class ImRServerInfo implements java.io.Serializable(Code)
This class contains the information about a logical server. It has methods for managing the associated POAs, holding and releasing the server, and, for the "client side", a method that blocks until the server is released.
author:
   Nicolas Noffke
version:
   $Id: ImRServerInfo.java,v 1.14 2006/07/14 11:41:38 alphonse.bendt Exp $


Field Summary
protected  booleanactive
    
protected  Stringcommand
    
protected  booleanholding
    
protected  Stringhost
    
protected  Stringname
    
protected  booleanrestarting
    
final public static  longserialVersionUID
    

Constructor Summary
public  ImRServerInfo(String name, String host, String command)
     The Constructor.

Method Summary
public  voidaddPOA(ImRPOAInfo poa)
     Adds a POA to this server.
public synchronized  voidawaitRelease()
     This method blocks until the server is released, i.e.
protected  String[]getPOANames()
     Builds an array of of the names of the POAs associated with this server.
public synchronized  voidrelease()
     Release the server and unblock all waiting threads.
public  voidsetDown()
     Sets the server down, i.e.
public  voidsetNotRestarting()
    
public synchronized  booleanshouldBeRestarted()
     Tests if this server should be restarted.
public  ServerInfotoServerInfo()
     "Converts" this Object to a ServerInfo instance containing the same info as this object.

Field Detail
active
protected boolean active(Code)



command
protected String command(Code)



holding
protected boolean holding(Code)



host
protected String host(Code)



name
protected String name(Code)



restarting
protected boolean restarting(Code)



serialVersionUID
final public static long serialVersionUID(Code)




Constructor Detail
ImRServerInfo
public ImRServerInfo(String name, String host, String command) throws IllegalServerName(Code)
The Constructor. It sets up the internal attributes.
Parameters:
  name - the logical server name
Parameters:
  host - the name of the host on which the server should be restarted(ignored when no startup command is specified).
Parameters:
  command - the startup command for this server, passed to theserver startup daemon on host (in case there is one active).
exception:
  IllegalServerName - thrown when name isnull or of length zero.




Method Detail
addPOA
public void addPOA(ImRPOAInfo poa)(Code)
Adds a POA to this server.
Parameters:
  poa - the POA to add.



awaitRelease
public synchronized void awaitRelease()(Code)
This method blocks until the server is released, i.e. set to not holding.
This will not time out since holding a server is only done by administrators.



getPOANames
protected String[] getPOANames()(Code)
Builds an array of of the names of the POAs associated with this server.
This method is needed for deleting a server since its POAs have to be as well removed from the central storage. an array of POA names



release
public synchronized void release()(Code)
Release the server and unblock all waiting threads.



setDown
public void setDown()(Code)
Sets the server down, i.e. not active. If a request for a POA of this server is received, the repository tries to restart the server.
The server is automatically set back to active when the first of its POAs gets reregistered.



setNotRestarting
public void setNotRestarting()(Code)



shouldBeRestarted
public synchronized boolean shouldBeRestarted()(Code)
Tests if this server should be restarted. That is the case if the server is not active and nobody else is currently trying to restart it.
If true is returned the server is set to restarting. That means the thread calling this method has to restart the server, otherwise it will stay down indefinetly. true, if the server should be restarted by the calling thread.



toServerInfo
public ServerInfo toServerInfo()(Code)
"Converts" this Object to a ServerInfo instance containing the same info as this object. a ServerInfo object.



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.