org.jboss.naming
Class LinkRefPairService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.naming.LinkRefPairService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, LinkRefPairServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class LinkRefPairService
extends org.jboss.system.ServiceMBeanSupport
implements LinkRefPairServiceMBean

An mbean used to construct a link ref pair

Version:
$Revision: 1.1.6.1 $
Author:
Adrian Brock (adrian@jboss.com)

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
LinkRefPairService()
           
 
Method Summary
 String getJndiName()
          The jndi name where the link ref pair is bound
 String getLocalJndiName()
          The jndi name of the local binding
 String getRemoteJndiName()
          The jndi name of the remote binding
 void setJndiName(String jndiName)
          Set the jndi name where the link ref pair is bound
 void setLocalJndiName(String jndiName)
          Set the jndi name of the local binding
 void setRemoteJndiName(String jndiName)
          Set the jndi name of the remote binding
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

LinkRefPairService

public LinkRefPairService()
Method Detail

getJndiName

public String getJndiName()
Description copied from interface: LinkRefPairServiceMBean
The jndi name where the link ref pair is bound

Specified by:
getJndiName in interface LinkRefPairServiceMBean
Returns:
the jndi name

getLocalJndiName

public String getLocalJndiName()
Description copied from interface: LinkRefPairServiceMBean
The jndi name of the local binding

Specified by:
getLocalJndiName in interface LinkRefPairServiceMBean
Returns:
the jndi name

getRemoteJndiName

public String getRemoteJndiName()
Description copied from interface: LinkRefPairServiceMBean
The jndi name of the remote binding

Specified by:
getRemoteJndiName in interface LinkRefPairServiceMBean
Returns:
the jndi name

setJndiName

public void setJndiName(String jndiName)
Description copied from interface: LinkRefPairServiceMBean
Set the jndi name where the link ref pair is bound

Specified by:
setJndiName in interface LinkRefPairServiceMBean
Parameters:
jndiName - the jndi name

setLocalJndiName

public void setLocalJndiName(String jndiName)
Description copied from interface: LinkRefPairServiceMBean
Set the jndi name of the local binding

Specified by:
setLocalJndiName in interface LinkRefPairServiceMBean
Parameters:
jndiName - the jndi name

setRemoteJndiName

public void setRemoteJndiName(String jndiName)
Description copied from interface: LinkRefPairServiceMBean
Set the jndi name of the remote binding

Specified by:
setRemoteJndiName in interface LinkRefPairServiceMBean
Parameters:
jndiName - the jndi name

startService

protected void startService()
                     throws Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.