public class AdminService extends ModelSystemService implements AdminServiceMBean, NotificationListener
mAdminServiceMBeanName, mConfigServiceMBeanName, mDeployServiceMBeanName, mDisplayName, mEnv, mInitialMBeans, mInstallServiceMBeanName, mLifeCycleMBeanName, mLogger, mLoggerImpl, mLoggerMBeanName, mLoggingServiceMBeanName, mMBeanNames, mMBeanServer, mMessageServiceMBeanName, mModelName, mStartMBeans, mStatisticsMBeanName, mTranslatorSHUTDOWN, STARTED, STOPPED, UNKNOWN| Constructor and Description |
|---|
AdminService(ManagementContext anEnv)
Constructs a AdminService.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectName[] |
getBindingComponents()
Get a list of
ComponentLifeCycleMBeans for all binding components
currently installed in the JBI schemaorg_apache_xmlbeans.system. |
String |
getBuildNumber() |
ObjectName |
getComponentByName(String name)
Find the
ComponentLifeCycleMBean of a JBI Installable Component
by its unique name. |
ObjectName[] |
getComponentMBeans(String componentName)
Lookup all active MBeans associated with
componentName. |
String |
getCopyright() |
ObjectName[] |
getDeployerMBeanNames(String componentName)
Get the DeployerMBean for the
componentName associated with
artifactUrl. |
ObjectName[] |
getEngineComponents()
Get a list of
ComponentLifeCycleMBeans for all service engines
currently installed in the JBI schemaorg_apache_xmlbeans.system. |
String |
getFullProductName() |
String |
getJbiInstanceName()
Return the name of this JBI Framework runtime
|
String |
getMajorVersion() |
String |
getMinorVersion() |
String |
getRemoteFileUploadURL()
Return URL that can be used to upload and deploy a remote
Service Assembly.
|
String |
getShortProductName() |
String |
getSystemInfo()
Return current version and other info about this JBI implementation.
|
ObjectName |
getSystemService(String serviceName)
Lookup a schemaorg_apache_xmlbeans.system service
LifeCycleMBean by name. |
ObjectName[] |
getSystemServices()
Looks up all JBI schemaorg_apache_xmlbeans.system services
LifeCycleMBean's currently
installed. |
void |
handleNotification(Notification aNotification,
Object anObject)
Handle timer notifications.
|
protected void |
initModelSystemService(EnvironmentContext anEnv)
local model init - called by constructor - create custom mbeans.
|
boolean |
isBinding(String componentName)
Check if a given JBI component is a Binding Component.
|
boolean |
isEngine(String componentName)
Check if a given JBI component is a Service Engine.
|
ObjectName[] |
queryHelper(String qStr)
Execute a query and return array of mbean object names with result.
|
ObjectName[] |
queryHelper(String qStr,
MBeanServerConnection rmbs)
Execute a query and return array of mbean object names with result.
|
boolean |
shutdownManagementServices()
Shutdown all Management service agents and deregister all MBeans..
|
void |
start()
override model start() method.
|
boolean |
startManagementServices()
Start all Management service agents
|
void |
stop()
override model stop() method.
|
boolean |
stopManagementServices()
Stop all Management service agents and deregister Service Mbeans.
|
addNotificationListener, bootstrap, getComponentQuery, getCurrentState, getNotificationBroadcaster, getNotificationInfo, getRegistry, initModelSystemService, initModelSystemService, removeNotificationListener, removeNotificationListener, shutDownpublic AdminService(ManagementContext anEnv)
anEnv - is the ManagementContext.protected void initModelSystemService(EnvironmentContext anEnv)
public void start()
throws JBIException
start in interface LifeCycleMBeanstart in class ModelSystemServiceJBIException - neverpublic void stop()
throws JBIException
stop in interface LifeCycleMBeanstop in class ModelSystemServiceJBIException - neverpublic void handleNotification(Notification aNotification, Object anObject)
handleNotification in interface NotificationListeneraNotification - is the received (timer) notificationanObject - is the notification object (ignored)public ObjectName getSystemService(String serviceName)
LifeCycleMBean by name. System services
are implementation-defined services which can administered through JMX,
and have a life cycle.
System services are not related to service engines.
getSystemService in interface AdminServiceMBeanserviceName - name of the schemaorg_apache_xmlbeans.system service; must be non-null and non-
empty; values are implementation-dependentnull if there is no schemaorg_apache_xmlbeans.system service with the given
name.public ObjectName[] getSystemServices()
LifeCycleMBean's currently
installed. System services are implementation-defined services which can
administered through JMX. System services are not related to service
engines.getSystemServices in interface AdminServiceMBeanpublic ObjectName getComponentByName(String name)
ComponentLifeCycleMBean of a JBI Installable Component
by its unique name.getComponentByName in interface AdminServiceMBeanname - the name of the engine or binding component; must be non-
null and non-emptynull if there is no such component with the given
namepublic ObjectName[] getBindingComponents()
ComponentLifeCycleMBeans for all binding components
currently installed in the JBI schemaorg_apache_xmlbeans.system.getBindingComponents in interface AdminServiceMBeanpublic ObjectName[] getEngineComponents()
ComponentLifeCycleMBeans for all service engines
currently installed in the JBI schemaorg_apache_xmlbeans.system.getEngineComponents in interface AdminServiceMBeanpublic boolean isBinding(String componentName)
isBinding in interface AdminServiceMBeancomponentName - the unique name of the component; must be non-null
and non-emptytrue if the component is a binding component;
false if the component is a service engine or if
there is no component with the given componentName
installed in the JBI schemaorg_apache_xmlbeans.systempublic boolean isEngine(String componentName)
isEngine in interface AdminServiceMBeancomponentName - the unique name of the component; must be non-null
and non-emptytrue if the component is a service engine;
false if the component is a binding component, or if
there is no component with the given componentName
installed in the JBI schemaorg_apache_xmlbeans.systempublic String getSystemInfo()
getSystemInfo in interface AdminServiceMBeanpublic ObjectName[] getDeployerMBeanNames(String componentName)
componentName associated with
artifactUrl.public String getJbiInstanceName()
public ObjectName[] getComponentMBeans(String componentName)
componentName.componentName - - is the name of the BC or SE.public String getRemoteFileUploadURL() throws Exception
Exceptionpublic String getFullProductName()
public String getShortProductName()
public String getMajorVersion()
public String getMinorVersion()
public String getBuildNumber()
public String getCopyright()
public boolean startManagementServices()
public boolean stopManagementServices()
public boolean shutdownManagementServices()
public ObjectName[] queryHelper(String qStr)
qStr - is a JMX formatted query stringpublic ObjectName[] queryHelper(String qStr, MBeanServerConnection rmbs)
qStr - is a JMX formatted query stringCopyright © 2011-2016 OpenESB Community. All Rights Reserved.