|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.registry.carol.CarolRegistryService
public class CarolRegistryService
Implementation of the RegistryService interface.
| Field Summary | |
|---|---|
static String |
COLLOCATED
Collocated mode. |
static String |
DEFAULT_MODE
Automatic mode. |
static String |
REMOTE
Remote mode. |
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
CarolRegistryService()
|
|
| Method Summary | |
|---|---|
void |
doStart()
Abstract start-up method to be implemented by sub-classes. |
void |
doStop()
Abstract method for service stopping to be implemented by sub-classes. |
List<String> |
getActiveProtocolNames()
|
String |
getDefaultProtocolName()
|
int |
getExportedObjectPort(String protocolName)
|
String |
getInitialContextFactoryName(String protocolName)
|
URI |
getProviderURL(String protocolName)
|
InitialContext |
getRegistryContext()
Get the initialContext used in this jonas server. |
VersioningService |
getVersioningService()
|
void |
setComponentContextFactory(JComponentContextFactory factory)
Bind the JComponentContextFactory to use. |
void |
setConfiguration(String configurationURL)
|
void |
setConfigurationURL(URL configurationURL)
|
void |
setDefaultProtocol(String protocolName)
Set the current protocol to the given parameter. |
void |
setDelegate(JComponentContextFactoryDelegate delegate)
Bind the JComponentContextFactoryDelegate to use. |
void |
setDeploymentPlanDeployer(DeploymentPlanDeployer deploymentPlanDeployer)
|
void |
setIgnoreError(boolean ignoreError)
|
void |
setMbeanServer(MBeanServer mbeanServer)
|
void |
setMode(String mode)
|
void |
setStartRegistry(boolean startRegistry)
|
void |
setVersioningService(VersioningService versioningService)
|
void |
unsetVersioningService()
Sets the versioning service to null. |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
|---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ow2.jonas.service.Service |
|---|
getName, init, isStarted, setName, start, stop |
| Field Detail |
|---|
public static final String DEFAULT_MODE
public static final String COLLOCATED
public static final String REMOTE
| Constructor Detail |
|---|
public CarolRegistryService()
| Method Detail |
|---|
public void setMode(String mode)
mode - Registry mode (default, collocated or remote).
public void doStart()
throws ServiceException
doStart in class AbsServiceImplServiceException - service start-up failed
public void doStop()
throws ServiceException
doStop in class AbsServiceImplServiceException - service stopping failedpublic List<String> getActiveProtocolNames()
getActiveProtocolNames in interface RegistryServiceList of currently active protocols
names (rmi, irmi, iiop, ...).public String getDefaultProtocolName()
getDefaultProtocolName in interface RegistryServicepublic int getExportedObjectPort(String protocolName)
getExportedObjectPort in interface RegistryServiceprotocolName - protocol name
0 if unset.public String getInitialContextFactoryName(String protocolName)
getInitialContextFactoryName in interface RegistryServiceprotocolName - protocol name
InitialContextFactory classname
of the given protocol.public URI getProviderURL(String protocolName)
getProviderURL in interface RegistryServiceprotocolName - protocol name
public void setDefaultProtocol(String protocolName)
setDefaultProtocol in interface RegistryServiceprotocolName - the new default protocol name.public void setComponentContextFactory(JComponentContextFactory factory)
JComponentContextFactory to use.
factory - selected factorypublic void setDelegate(JComponentContextFactoryDelegate delegate)
JComponentContextFactoryDelegate to use.
delegate - selected delegatepublic void setStartRegistry(boolean startRegistry)
startRegistry - the bStartRegistry to setpublic void setIgnoreError(boolean ignoreError)
ignoreError - the bIgnoreError to setpublic void setConfigurationURL(URL configurationURL)
configurationURL - the configurationURL to set
public void setConfiguration(String configurationURL)
throws MalformedURLException
configurationURL - the configurationURL to set
MalformedURLException - throws if the URL is not validpublic InitialContext getRegistryContext()
getRegistryContext in interface RegistryServiceNamingExceptionpublic void setMbeanServer(MBeanServer mbeanServer)
mbeanServer - the mbeanServer to setpublic void setDeploymentPlanDeployer(DeploymentPlanDeployer deploymentPlanDeployer)
deploymentPlanDeployer - the deploymentPlanDeployer to setpublic void setVersioningService(VersioningService versioningService)
versioningService - The versioning service to set.public void unsetVersioningService()
public VersioningService getVersioningService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||