org.ow2.jonas.smartclient.internal
Class SmartclientServiceImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.smartclient.internal.SmartclientServiceImpl
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, Service, SmartclientServiceImplMBean, SmartclientService, SmartclientServiceBase
public class SmartclientServiceImpl
- extends AbsServiceImpl
- implements SmartclientService, SmartclientServiceImplMBean
Implements the smartclient service.
- Author:
- S. Ali Tokmen
- See Also:
SmartclientService
|
Method Summary |
protected void |
doStart()
Starts the EasyBeans smartclient service and registers the management
bean with JMX. |
protected void |
doStop()
Stops the EasyBeans smartclient service and unregisters the management
bean from JMX. |
static ObjectName |
getObjectName(String domainName)
|
int |
getPort()
, returns -1 if the EasyBeans Smartclient has not been
started yet. |
boolean |
isActive()
|
void |
setJmxService(JmxService jmxService)
|
void |
setPort(int port)
|
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
SmartclientServiceImpl
public SmartclientServiceImpl()
setJmxService
public void setJmxService(JmxService jmxService)
- Parameters:
jmxService - JMX service to set.
setPort
public void setPort(int port)
- Parameters:
port - Port number to set.
getObjectName
public static ObjectName getObjectName(String domainName)
- Parameters:
domainName - Server's domain name.
- Returns:
- JMX name of the smartclient service management bean.
doStart
protected void doStart()
throws ServiceException
- Starts the EasyBeans smartclient service and registers the management
bean with JMX.
- Specified by:
doStart in class AbsServiceImpl
- Throws:
ServiceException - If starting the EasyBeans Smartclient fails.
doStop
protected void doStop()
throws ServiceException
- Stops the EasyBeans smartclient service and unregisters the management
bean from JMX.
- Specified by:
doStop in class AbsServiceImpl
- Throws:
ServiceException - If stopping the EasyBeans Smartclient fails.
getPort
public int getPort()
- , returns -1 if the EasyBeans Smartclient has not been
started yet.
- Specified by:
getPort in interface SmartclientServiceBase
isActive
public boolean isActive()
-
- Specified by:
isActive in interface SmartclientServiceBase
Copyright © 2009 OW2 Consortium. All Rights Reserved.