org.apache.karaf.admin.management.internal
Class AdminServiceMBeanImpl

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.karaf.admin.management.internal.AdminServiceMBeanImpl
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, AdminServiceMBean

public class AdminServiceMBeanImpl
extends javax.management.StandardMBean
implements AdminServiceMBean


Field Summary
 
Fields inherited from interface org.apache.karaf.admin.management.AdminServiceMBean
INSTANCE, INSTANCE_IS_ROOT, INSTANCE_JAVAOPTS, INSTANCE_LOCATION, INSTANCE_NAME, INSTANCE_PID, INSTANCE_RMI_PORT, INSTANCE_SSH_PORT, INSTANCE_STATE
 
Constructor Summary
AdminServiceMBeanImpl()
           
 
Method Summary
 void changeJavaOpts(java.lang.String name, java.lang.String javaOpts)
           
 void changeRmiRegistryPort(java.lang.String name, int port)
           
 void changeSshPort(java.lang.String name, int port)
           
 int createInstance(java.lang.String name, int sshPort, int rmiPort, java.lang.String location, java.lang.String javaOpts, java.lang.String features, java.lang.String featureURLs)
           
 void destroyInstance(java.lang.String name)
           
 AdminService getAdminService()
           
 javax.management.openmbean.TabularData getInstances()
           
 void renameInstance(java.lang.String originalName, java.lang.String newName)
           
 void setAdminService(AdminService adminService)
           
 void startInstance(java.lang.String name, java.lang.String opts)
           
 void stopInstance(java.lang.String name)
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminServiceMBeanImpl

public AdminServiceMBeanImpl()
                      throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

getAdminService

public AdminService getAdminService()

setAdminService

public void setAdminService(AdminService adminService)

createInstance

public int createInstance(java.lang.String name,
                          int sshPort,
                          int rmiPort,
                          java.lang.String location,
                          java.lang.String javaOpts,
                          java.lang.String features,
                          java.lang.String featureURLs)
                   throws Exception
Specified by:
createInstance in interface AdminServiceMBean
Throws:
Exception

changeSshPort

public void changeSshPort(java.lang.String name,
                          int port)
                   throws Exception
Specified by:
changeSshPort in interface AdminServiceMBean
Throws:
Exception

changeRmiRegistryPort

public void changeRmiRegistryPort(java.lang.String name,
                                  int port)
                           throws Exception
Specified by:
changeRmiRegistryPort in interface AdminServiceMBean
Throws:
Exception

changeJavaOpts

public void changeJavaOpts(java.lang.String name,
                           java.lang.String javaOpts)
                    throws Exception
Specified by:
changeJavaOpts in interface AdminServiceMBean
Throws:
Exception

destroyInstance

public void destroyInstance(java.lang.String name)
                     throws Exception
Specified by:
destroyInstance in interface AdminServiceMBean
Throws:
Exception

startInstance

public void startInstance(java.lang.String name,
                          java.lang.String opts)
                   throws Exception
Specified by:
startInstance in interface AdminServiceMBean
Throws:
Exception

stopInstance

public void stopInstance(java.lang.String name)
                  throws Exception
Specified by:
stopInstance in interface AdminServiceMBean
Throws:
Exception

renameInstance

public void renameInstance(java.lang.String originalName,
                           java.lang.String newName)
                    throws Exception
Specified by:
renameInstance in interface AdminServiceMBean
Throws:
Exception

getInstances

public javax.management.openmbean.TabularData getInstances()
                                                    throws Exception
Specified by:
getInstances in interface AdminServiceMBean
Throws:
Exception


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.