Java Doc for JMXConnectionNotification.java in  » 6.0-JDK-Core » management » javax » management » remote » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » management » javax.management.remote 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.Notification
   javax.management.remote.JMXConnectionNotification

JMXConnectionNotification
public class JMXConnectionNotification extends Notification (Code)

Notification emitted when a client connection is opened or closed or when notifications are lost. These notifications are sent by connector servers (instances of JMXConnectorServer ) and by connector clients (instances of JMXConnector ). For certain connectors, a session can consist of a sequence of connections. Connection-opened and connection-closed notifications will be sent for each one.

The notification type is one of the following:

Type Meaning
jmx.remote.connection.opened A new client connection has been opened.
jmx.remote.connection.closed A client connection has been closed.
jmx.remote.connection.failed A client connection has failed unexpectedly.
jmx.remote.connection.notifs.lost A client connection has potentially lost notifications. This notification only appears on the client side.

The timeStamp of the notification is a time value (consistent with System.currentTimeMillis ) indicating when the notification was constructed.


since:
   1.5


Field Summary
final public static  StringCLOSED
    

Notification type string for a connection-closed notification.

final public static  StringFAILED
    

Notification type string for a connection-failed notification.

final public static  StringNOTIFS_LOST
    
final public static  StringOPENED
    

Notification type string for a connection-opened notification.


Constructor Summary
public  JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)
     Constructs a new connection notification.

Method Summary
public  StringgetConnectionId()
    

The connection ID to which this notification pertains.


Field Detail
CLOSED
final public static String CLOSED(Code)

Notification type string for a connection-closed notification.




FAILED
final public static String FAILED(Code)

Notification type string for a connection-failed notification.




NOTIFS_LOST
final public static String NOTIFS_LOST(Code)

Notification type string for a connection that has possibly lost notifications.




OPENED
final public static String OPENED(Code)

Notification type string for a connection-opened notification.





Constructor Detail
JMXConnectionNotification
public JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)(Code)
Constructs a new connection notification. The JMXConnectionNotification.getSource() source of the notification depends on whether it is being sent by a connector server or a connector client:
  • For a connector server, if it is registered in an MBean server, the source is the ObjectName under which it is registered. Otherwise, it is a reference to the connector server object itself, an instance of a subclass of JMXConnectorServer .
  • For a connector client, the source is a reference to the connector client object, an instance of a class implementing JMXConnector .

Parameters:
  type - the type of the notification. This is usually oneof the constants JMXConnectionNotification.OPENED, JMXConnectionNotification.CLOSED, JMXConnectionNotification.FAILED, JMXConnectionNotification.NOTIFS_LOST. It is not an error for it tobe a different string.
Parameters:
  source - the connector server or client emitting thenotification.
Parameters:
  connectionId - the ID of the connection within itsconnector server.
Parameters:
  sequenceNumber - a non-negative integer. It is expectedbut not required that this number will be greater than anyprevious sequenceNumber in a notification fromthis source.
Parameters:
  message - an unspecified text message, typically containinga human-readable description of the event. Can be null.
Parameters:
  userData - an object whose type and meaning is defined bythe connector server. Can be null.
exception:
  NullPointerException - if type,source, or connectionId is null.
exception:
  IllegalArgumentException - ifsequenceNumber is negative.




Method Detail
getConnectionId
public String getConnectionId()(Code)

The connection ID to which this notification pertains. the connection ID.




Fields inherited from javax.management.Notification
protected Object source(Code)(Java Doc)

Methods inherited from javax.management.Notification
public String getMessage()(Code)(Java Doc)
public long getSequenceNumber()(Code)(Java Doc)
public long getTimeStamp()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public Object getUserData()(Code)(Java Doc)
public void setSequenceNumber(long sequenceNumber)(Code)(Java Doc)
public void setSource(Object source)(Code)(Java Doc)
public void setTimeStamp(long timeStamp)(Code)(Java Doc)
public void setUserData(Object userData)(Code)(Java Doc)
public String toString()(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.