org.glite.ce.commonj.axis.handlers
Class AuthZConfigurationItem

java.lang.Object
  extended byorg.glite.ce.commonj.axis.handlers.AuthZConfigurationItem
All Implemented Interfaces:
javax.management.DynamicMBean

public class AuthZConfigurationItem
extends java.lang.Object
implements javax.management.DynamicMBean

This class is a Management Bean, as stated in Java Management Extensions specification. It contains any information about the configuration of a plugin (PDP/PIP) of the grid Java Authorization Framework (gJAF). The content of the MBean is set by the "master" MBean, i.e. the instance of AuthZConfiguration


Field Summary
protected  java.util.Hashtable arguments
          The table of arguments defined for this MBean
protected  java.lang.String className
          The class name of the plugin handled by this MBean
protected  java.lang.String name
          The name of the plugin handled by this MBean
 
Constructor Summary
AuthZConfigurationItem(java.lang.String n, java.lang.String cName)
          The constructor of this class.
 
Method Summary
 void addArgument(java.lang.String name, java.lang.Object value)
          This method inserts a key-value argument into the the list of plugin parameters.
 java.lang.Object getArgument(java.lang.String name)
          This method returns the value of a given argument
 java.util.Enumeration getArgumentNames()
          This method returns an enumeration of keys for the arguments specified for the gJAF plugin
 java.lang.Object getAttribute(java.lang.String attr)
          This method returns the value of a given configuration attribute.
 javax.management.AttributeList getAttributes(java.lang.String[] attrs)
          This method returns a list of configuration attributes matching the given list of attributes name.
 java.lang.String getClassName()
          This method returns the class name of the gJAF plugin
 javax.management.MBeanInfo getMBeanInfo()
          It returns any information necessary to describe the current MBean behaviour
 java.lang.String getName()
          This method returns the name of the gJAF plugin
 java.lang.Object invoke(java.lang.String operation, java.lang.Object[] params, java.lang.String[] signature)
          It allows the JMX agent to call an operation on the current MBean.
 void setAttribute(javax.management.Attribute attr)
          Method used to set an attribute.
 javax.management.AttributeList setAttributes(javax.management.AttributeList attrs)
          Method used to set a list of attributes.
 java.lang.String toString()
          It returns the name of the gJAF plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the plugin handled by this MBean


className

protected java.lang.String className
The class name of the plugin handled by this MBean


arguments

protected java.util.Hashtable arguments
The table of arguments defined for this MBean

Constructor Detail

AuthZConfigurationItem

public AuthZConfigurationItem(java.lang.String n,
                              java.lang.String cName)
The constructor of this class.

Parameters:
n - the name of the gJAF plugin
cName - the class name of the gJAF plugin
Method Detail

getName

public java.lang.String getName()
This method returns the name of the gJAF plugin

Returns:
the name of the gJAF plugin

getClassName

public java.lang.String getClassName()
This method returns the class name of the gJAF plugin

Returns:
the class name of the gJAF plugin

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Object value)
This method inserts a key-value argument into the the list of plugin parameters.

Parameters:
name - the key of the argument
value - the value of the argument

getArgumentNames

public java.util.Enumeration getArgumentNames()
This method returns an enumeration of keys for the arguments specified for the gJAF plugin

Returns:
an enumeration of keys

getArgument

public java.lang.Object getArgument(java.lang.String name)
This method returns the value of a given argument

Parameters:
name - the key of the argument
Returns:
the value of the specified argument or null if the argument is not present

getAttribute

public java.lang.Object getAttribute(java.lang.String attr)
                              throws javax.management.AttributeNotFoundException
This method returns the value of a given configuration attribute. The attributes supported are:

Specified by:
getAttribute in interface javax.management.DynamicMBean
Parameters:
attr - the name of the configuration attribute desired
Returns:
the value of the attribute required
Throws:
javax.management.AttributeNotFoundException - if the attribute doesn't exist.

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] attrs)
This method returns a list of configuration attributes matching the given list of attributes name. The attributes supported are:

Specified by:
getAttributes in interface javax.management.DynamicMBean
Parameters:
attrs - the list of the configuration attribute desired
Returns:
a list, eventually empty, of required attributes.

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
It returns any information necessary to describe the current MBean behaviour

Specified by:
getMBeanInfo in interface javax.management.DynamicMBean
Returns:
a class containing any information about the MBean, such as attribute names, operations and notifications.

invoke

public java.lang.Object invoke(java.lang.String operation,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
It allows the JMX agent to call an operation on the current MBean. No operations are available for this MBean, this method doesn't perform any action

Specified by:
invoke in interface javax.management.DynamicMBean
Parameters:
operation - is the name of the operation required
params - an array of object representing the parameters of the operation
signature - is an array of decriptions for the given parameters
Returns:
null in any case
Throws:
java.lang.IllegalArgumentException - if the operation is not well-specified
java.lang.UnsupportedOperationException - if the operation is not available

setAttribute

public void setAttribute(javax.management.Attribute attr)
Method used to set an attribute. At the moment all attributes are read-only, so the method doesn't modify the content of the current MBean.

Specified by:
setAttribute in interface javax.management.DynamicMBean
Parameters:
attr - the attribute to insert into the current MBean

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attrs)
Method used to set a list of attributes. At the moment all attributes are read-only, so the method doesn't modify the content of the current MBean.

Specified by:
setAttributes in interface javax.management.DynamicMBean
Parameters:
attrs - the list of attributes to insert into the current MBean
Returns:
the list of attributes inserted into the current MBean

toString

public java.lang.String toString()
It returns the name of the gJAF plugin

Returns:
the name of the gJAF plugin