| java.lang.Object org.josso.util.config.XUpdateConfigurationHandler org.josso.util.config.SSOConfigurationEventHandler
All known Subclasses: org.josso.agent.SSOAgentConfigurationHandler, org.josso.agent.SSOAgentConfigurationEventHandler,
Method Summary | |
public void | handleEvent(String eventType, EventObject event) Handles an BaseSSOEvent and updates JOSSO config if necessary.
The event object must be instance of javax.management.AttributeChangeNotification
Parameters: eventType - the event type (this may be a JMX event type) Parameters: event - the event object. | protected boolean | ignore(String attrName) Util to determine if an attribute must be ignored. | public boolean | isEventEnabled(String eventType, EventObject event) Only handles events of type : "jmx.attribute.change" for the supported resource. |
SSOConfigurationEventHandler | public SSOConfigurationEventHandler(ConfigurationContext ctx, String elementsBaseLocation, String newElementsBaseLocation, Object source, String[] ignoredAttrs)(Code) | | Parameters: ctx - the ConfigurationContext used by this handler. Parameters: elementsBaseLocation - a XPath expression used to determine where elements to be updated are found in the configuration file. Parameters: newElementsBaseLocation - a XPath expression used to determine where new elements will be inserted as siblings in the configuration file. Parameters: source - the event source this handler uses |
handleEvent | public void handleEvent(String eventType, EventObject event)(Code) | | Handles an BaseSSOEvent and updates JOSSO config if necessary.
The event object must be instance of javax.management.AttributeChangeNotification
Parameters: eventType - the event type (this may be a JMX event type) Parameters: event - the event object. Only AttributeChangeNotification events are supported by this handler. |
ignore | protected boolean ignore(String attrName)(Code) | | Util to determine if an attribute must be ignored.
Subclasses may add different behavior.
|
isEventEnabled | public boolean isEventEnabled(String eventType, EventObject event)(Code) | | Only handles events of type : "jmx.attribute.change" for the supported resource.
|
Methods inherited from org.josso.util.config.XUpdateConfigurationHandler | protected void backupConfigFile() throws Exception(Code)(Java Doc) protected String buildXAppendElementQueryString(String xpathExpr, String element, String value)(Code)(Java Doc) protected String buildXAppendElementXMLQueryString(String xpathExpr, String element, String xml)(Code)(Java Doc) protected String buildXDeleteElementQuery(String xpathExpr, String element)(Code)(Java Doc) protected String buildXInsertAfterElementQueryString(String xpathExpr, String element, String value)(Code)(Java Doc) protected String buildXUPdateElementQueryString(String xpathExpr, String newValue)(Code)(Java Doc) public static boolean canEncode(char c)(Code)(Java Doc) protected String getElementsBaseLocation()(Code)(Java Doc) protected String getNewElementsBaseLocation()(Code)(Java Doc) public ConfigurationContext getSSOConfigurationContext()(Code)(Java Doc) protected Node readConfigFile() throws ParserConfigurationException, IOException, SAXException(Code)(Java Doc) public void removeElement(String element)(Code)(Java Doc) public void saveElement(String element, String oldValue, String newValue)(Code)(Java Doc) public void setSSOConfigurationContext(ConfigurationContext ctx)(Code)(Java Doc) public String unicodeEscape(String v)(Code)(Java Doc) protected void updateConfiguration(String qry) throws Exception(Code)(Java Doc) protected void writeConfigFile(Node document) throws Exception(Code)(Java Doc) protected void writeConfigFile(Node document, File file) throws Exception(Code)(Java Doc)
|
|
|