org.mobicents.tools
Class SimpleGlobalLoggingConfiguration

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.mobicents.tools.SimpleGlobalLoggingConfiguration
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.kernel.spi.dependency.KernelControllerContextAware, org.jboss.system.Service, org.jboss.system.ServiceMBean, SimpleGlobalLoggingConfigurationMBean

public class SimpleGlobalLoggingConfiguration
extends org.jboss.system.ServiceMBeanSupport
implements SimpleGlobalLoggingConfigurationMBean


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
SimpleGlobalLoggingConfiguration(java.lang.String templatePath)
           
 
Method Summary
 java.lang.String getCurrentProfile()
           
 java.lang.String getLoggingConfiguration(java.lang.String profile)
           
 java.util.Set<java.lang.String> listProfiles()
           
 void setLoggingConfiguration(java.lang.String profile, java.lang.String contents)
           
 void switchLoggingConfiguration(java.lang.String newProfile)
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

SimpleGlobalLoggingConfiguration

public SimpleGlobalLoggingConfiguration(java.lang.String templatePath)
Method Detail

getCurrentProfile

public java.lang.String getCurrentProfile()
Specified by:
getCurrentProfile in interface SimpleGlobalLoggingConfigurationMBean

getLoggingConfiguration

public java.lang.String getLoggingConfiguration(java.lang.String profile)
                                         throws java.io.IOException
Specified by:
getLoggingConfiguration in interface SimpleGlobalLoggingConfigurationMBean
Throws:
java.io.IOException

setLoggingConfiguration

public void setLoggingConfiguration(java.lang.String profile,
                                    java.lang.String contents)
                             throws java.io.IOException
Specified by:
setLoggingConfiguration in interface SimpleGlobalLoggingConfigurationMBean
Throws:
java.io.IOException

listProfiles

public java.util.Set<java.lang.String> listProfiles()
Specified by:
listProfiles in interface SimpleGlobalLoggingConfigurationMBean

switchLoggingConfiguration

public void switchLoggingConfiguration(java.lang.String newProfile)
                                throws java.io.IOException
Specified by:
switchLoggingConfiguration in interface SimpleGlobalLoggingConfigurationMBean
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.