|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.registry.carol.CarolRegistryService
public class CarolRegistryService
Implementation of the RegistryService
interface.
Field Summary | |
---|---|
static String |
CLASS
Registry class property name. |
static String |
COLLOCATED
Collocated mode. |
static String |
DEFAULT_MODE
Automatic mode. |
static String |
MODE
Registry mode property name. |
static String |
REMOTE
Remote mode. |
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
CarolRegistryService()
|
Method Summary | |
---|---|
void |
doInit(Context ctx)
Abstract initialization method to be implemented by sub-classes |
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 |
getActiveProtocolNames()
|
String |
getDefaultProtocolName()
|
int |
getExportedObjectPort(String protocolName)
|
String |
getInitialContextFactoryName(String protocolName)
|
URI |
getProviderURL(String protocolName)
|
void |
setDefaultProtocol(String protocolName)
Set the current protocol to the given parameter. |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
---|
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.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, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Field Detail |
---|
public static final String MODE
public static final String CLASS
public static final String DEFAULT_MODE
public static final String COLLOCATED
public static final String REMOTE
Constructor Detail |
---|
public CarolRegistryService()
Method Detail |
---|
public void doInit(Context ctx)
AbsServiceImpl
doInit
in class AbsServiceImpl
ctx
- configuration of the servicepublic void doStart() throws ServiceException
AbsServiceImpl
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedpublic void doStop() throws ServiceException
AbsServiceImpl
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic List getActiveProtocolNames()
getActiveProtocolNames
in interface RegistryService
List
of currently active protocols
names (rmi, irmi, iiop, ...).public String getDefaultProtocolName()
getDefaultProtocolName
in interface RegistryService
public int getExportedObjectPort(String protocolName)
getExportedObjectPort
in interface RegistryService
protocolName
- protocol name
0
if unset.public String getInitialContextFactoryName(String protocolName)
getInitialContextFactoryName
in interface RegistryService
protocolName
- protocol name
InitialContextFactory
classname
of the given protocol.public URI getProviderURL(String protocolName)
getProviderURL
in interface RegistryService
protocolName
- protocol name
public void setDefaultProtocol(String protocolName)
setDefaultProtocol
in interface RegistryService
protocolName
- the new default protocol name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |