Java Doc for DiscoveryServiceImpl.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » discovery » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.discovery 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.service.AbsServiceImpl
   org.objectweb.jonas.discovery.DiscoveryServiceImpl

DiscoveryServiceImpl
public class DiscoveryServiceImpl extends AbsServiceImpl implements DiscoveryService,DiscoveryServiceImplMBean(Code)

author:
   Adriana Danes
author:
   The discovery service creates and starts at least a DiscoveryManager which is a MBean
author:
   that multicasts discovery information to all the servers who joined the
author:
   discovery multicast group.
author:
  


author:
   The discovery service may also create a Enroller and a DiscoveryClient, and in this case
author:
   the current server becomes a discovery server.
author:
  


author:
   Discovery information contains information allowing to remotely manage a server in the group.
author:
  


author:
   Discovery multicast group is a group of servers which can be managed remotely by a discovery server.
author:
  


author:
   Discovery server is the server in the group who detains the discovery information concerning all the
author:
   servers in the group.





Method Summary
protected  voiddoInit(Context ctx)
    
protected  voiddoStart()
    
protected  voiddoStop()
    
public  DiscEventgetDiscEvent(String serverName, String domainName, String[] connectorURLs, String state)
    
public  StringgetDiscoveryProtocolVersion()
    
public  StringgetDiscoveryTtl()
    
public  EnrollergetEnroller()
    
public  BooleangetIsDiscoveryMaster()
    
public  StringgetMulticastAddress()
    
public  StringgetMulticastPort()
    
public  voidstartDiscoveryMaster()
     Management operation allowing to make the current server become a master if its not already.



Method Detail
doInit
protected void doInit(Context ctx) throws ServiceException(Code)
Initialize the discovery service
Parameters:
  ctx - context containing initialization parameters
exception:
  discovery - service could not be correctly initialized



doStart
protected void doStart() throws ServiceException(Code)
Start the discovery service
throws:
  ServiceException - An error occured when starting the service



doStop
protected void doStop() throws ServiceException(Code)



getDiscEvent
public DiscEvent getDiscEvent(String serverName, String domainName, String[] connectorURLs, String state)(Code)
Create a 'fake' DiscEvent object containing info to establish a JMX connection with a new server in the domain
Parameters:
  serverName - the OBJECT_NAME of the server MBean corresponding to the server to connect
Parameters:
  domainName - the JOnAS server's domain name
Parameters:
  connectorURLs - the urls of the connector server of the server to connect
Parameters:
  state - the state of the server (RUNNING in case the DiscEvent is used to add a server; could be STOPPINGif the DiscEvent is used to remove a server) a new DiscEvent object



getDiscoveryProtocolVersion
public String getDiscoveryProtocolVersion()(Code)
the discovery protocol version number



getDiscoveryTtl
public String getDiscoveryTtl()(Code)



getEnroller
public Enroller getEnroller()(Code)
Returns the enroller.



getIsDiscoveryMaster
public Boolean getIsDiscoveryMaster()(Code)
true if the current server is a discovery server



getMulticastAddress
public String getMulticastAddress()(Code)
the multicast group IP address used by the discovery service



getMulticastPort
public String getMulticastPort()(Code)
the multicast group port number used by the discovery service



startDiscoveryMaster
public void startDiscoveryMaster() throws JMException(Code)
Management operation allowing to make the current server become a master if its not already.
throws:
  JMException - a JMX exception occured when trying to make current server a discovery master



Methods inherited from org.objectweb.jonas.service.AbsServiceImpl
abstract protected void doInit(Context ctx) throws ServiceException(Code)(Java Doc)
abstract protected void doStart() throws ServiceException(Code)(Java Doc)
abstract protected void doStop() throws ServiceException(Code)(Java Doc)
public String getDomainName()(Code)(Java Doc)
public String getJonasServerName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void init(Context ctx) throws ServiceException(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void start() throws ServiceException(Code)(Java Doc)
public void stop() throws ServiceException(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.