FileDocCategorySizeDatePackage
EventKey.javaAPI DocGlassfish v2 API3667Fri May 04 22:33:34 BST 2007com.sun.enterprise.admin.event

EventKey

public class EventKey extends Object implements Serializable
This class encapsulates event information that will be useful in devlivering the event, like the target mbean name and and/or query expression, so that this can be potentially can be delivered to one than one MBean
author
Satish Viswanatham
version
1.0

Fields Summary
static Logger
logger
static final String
MALFORMED_OBJECT_NAME
private ObjectName
objName
Target object name for event
private QueryExp
qry
Filter query for event processing
Constructors Summary
public EventKey(String name, QueryExp q)
public constructor



           
           
    	try {
           objName = new ObjectName ( name);
           qry = q;
	    } catch( Exception e) {
	        //throw a warning
	        // user need to reset values 
            logger.log(Level.WARNING, MALFORMED_OBJECT_NAME, name);
	    }
    
Methods Summary
public javax.management.ObjectNamegetObjectName()
retuns the ObjectName

 return objName; 
public javax.management.QueryExpgetQuery()
return query for this event

return
QuertExp query object

 return qry; 
public voidsetObjectName(javax.management.ObjectName obj)
object name setter

 objName = obj; 
public voidsetQuery(javax.management.QueryExp q)
query exp setter

 qry = q;