public class RegistryManager extends Object
Constructor and Description |
---|
RegistryManager() |
Modifier and Type | Method and Description |
---|---|
void |
addAppender(org.apache.log4j.Appender appender)
Store the provided Log4J Appender in the Registry
|
void |
addLogger(org.apache.log4j.Logger logger)
when getting loggers from getCurrentLoggers method it will return all the
loggers in the system.
|
void |
addSyslogConfig(SyslogData syslogData) |
org.wso2.carbon.registry.core.Resource |
getAppender(String appenderName) |
org.wso2.carbon.registry.core.Collection |
getAppenders() |
org.wso2.carbon.registry.core.Resource |
getCassandraConfig() |
String |
getConfigurationProperty(String propertyName) |
org.wso2.carbon.registry.core.Resource |
getLogger(String loggerName) |
org.wso2.carbon.registry.core.Collection |
getLoggers() |
org.wso2.carbon.registry.core.Resource |
getSyslogConfig() |
SyslogData |
getSyslogData() |
boolean |
isSysLogAppender()
method is used to check current appender is a syslog appender.
|
void |
removeAllRegistryEntries() |
static void |
setRegistry(org.wso2.carbon.registry.core.Registry registryParam) |
void |
updateAppender(org.apache.log4j.Appender appender,
String appenderName,
String appenderPattern,
String threshold,
String logFileName,
String sysLogHost,
String facility,
boolean isFileAppender,
boolean isSysLogAppender) |
void |
updateCassandraConfig(String url,
String keyspace,
String columnFamily,
String userName,
String password) |
void |
updateConfigurationProperty(String propertyName,
String value) |
void |
updateLogger(String loggerName,
String loggerLevel,
boolean aditivity) |
void |
updateSyslogConfig(String url,
String port,
String realm,
String userName,
String password)
this method is used to update syslog properties in the registry if syslog
property is not available a new resource is added to the registry along
with the syslog properties
|
public static void setRegistry(org.wso2.carbon.registry.core.Registry registryParam)
public String getConfigurationProperty(String propertyName) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void updateConfigurationProperty(String propertyName, String value) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void addLogger(org.apache.log4j.Logger logger) throws Exception
logger
- The Log4J Logger to be stored in the registryException
public org.wso2.carbon.registry.core.Resource getLogger(String loggerName) throws Exception
Exception
public org.wso2.carbon.registry.core.Collection getLoggers() throws Exception
Exception
public void updateLogger(String loggerName, String loggerLevel, boolean aditivity) throws Exception
Exception
public void addSyslogConfig(SyslogData syslogData) throws Exception
Exception
public void addAppender(org.apache.log4j.Appender appender) throws Exception
appender
- Log4J Appender to be stored in the registryException
public void updateCassandraConfig(String url, String keyspace, String columnFamily, String userName, String password) throws Exception
Exception
public void updateSyslogConfig(String url, String port, String realm, String userName, String password) throws Exception
url
- - syslog logs locationport
- - portrealm
- - realmuserName
- - syslog server authentic user namepassword
- - syslog server authentic passwordException
public SyslogData getSyslogData() throws Exception
Exception
public org.wso2.carbon.registry.core.Resource getSyslogConfig() throws Exception
Exception
public org.wso2.carbon.registry.core.Resource getCassandraConfig() throws Exception
Exception
public void updateAppender(org.apache.log4j.Appender appender, String appenderName, String appenderPattern, String threshold, String logFileName, String sysLogHost, String facility, boolean isFileAppender, boolean isSysLogAppender) throws Exception
Exception
public org.wso2.carbon.registry.core.Resource getAppender(String appenderName) throws Exception
Exception
public org.wso2.carbon.registry.core.Collection getAppenders() throws Exception
Exception
public boolean isSysLogAppender() throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
Copyright © 2018 WSO2. All rights reserved.