org.apache.qpid.management.jmx
Class OperationHasBeenInvokedNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by org.apache.qpid.management.jmx.OperationHasBeenInvokedNotification
All Implemented Interfaces:
Serializable

public class OperationHasBeenInvokedNotification
extends Notification

Q-Man JMX method invocation notification. This kind of notification is sent to interested listener by Q-Man when a method has been invoked (Method invocation request)

See Also:
Serialized Form

Field Summary
static String NOTIFICATION_TYPE
           
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
OperationHasBeenInvokedNotification(String operationName, Object[] parameters, String[] signature, Exception exception)
          Builds a new notification with the given parameters.
OperationHasBeenInvokedNotification(String operationName, Object[] parameters, String[] signature, InvocationResult result)
          Builds a new notification with the given parameters.
 
Method Summary
 Exception getException()
          Returns the exception raised by this notification referred operation.
 String getOperationName()
          Returns the operation name.
 Object[] getParameters()
          Returns the parameters used in method invocation.
 InvocationResult getResult()
          Returns the exception raised by this notification referred operation.
 String[] getSignature()
          Returns the signature of the invoked operation.
 String toString()
          Returns a string representation of this notification.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOTIFICATION_TYPE

public static final String NOTIFICATION_TYPE
See Also:
Constant Field Values
Constructor Detail

OperationHasBeenInvokedNotification

public OperationHasBeenInvokedNotification(String operationName,
                                           Object[] parameters,
                                           String[] signature,
                                           Exception exception)
Builds a new notification with the given parameters.

Parameters:
type - the notification type.
operationName - the operation name.
params - the operation parameters.
signature - the operation signature.
exception - the exception raised by the invocation.

OperationHasBeenInvokedNotification

public OperationHasBeenInvokedNotification(String operationName,
                                           Object[] parameters,
                                           String[] signature,
                                           InvocationResult result)
Builds a new notification with the given parameters.

Parameters:
type - the notification type.
operationName - the operation name.
params - the operation parameters.
signature - the operation signature.
objectName - the target mbean object name.
result - the invocation result.
Method Detail

getException

public Exception getException()
Returns the exception raised by this notification referred operation.

Returns:
the exception raised by this notification referred operation.

getResult

public InvocationResult getResult()
Returns the exception raised by this notification referred operation.

Returns:
the exception raised by this notification referred operation.

getOperationName

public String getOperationName()
Returns the operation name.

Returns:
the operation name.

getParameters

public Object[] getParameters()
Returns the parameters used in method invocation.

Returns:
the parameters used in method invocation.

getSignature

public String[] getSignature()
Returns the signature of the invoked operation.

Returns:
the signature of the invoked operation.

toString

public String toString()
Returns a string representation of this notification.

Overrides:
toString in class Notification
Returns:
a string representation of this notification.


Licensed to the Apache Software Foundation