org.jboss.naming
Class LinkRefPairService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.naming.LinkRefPairService
All Implemented Interfaces:
LinkRefPairServiceMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class LinkRefPairService
extends ServiceMBeanSupport (src)
implements LinkRefPairServiceMBean (src)

An mbean used to construct a link ref pair


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
LinkRefPairService()
           
 
Method Summary
 java.lang.String getJndiName()
          The jndi name where the link ref pair is bound
 java.lang.String getLocalJndiName()
          The jndi name of the local binding
 java.lang.String getRemoteJndiName()
          The jndi name of the remote binding
 void setJndiName(java.lang.String jndiName)
          Set the jndi name where the link ref pair is bound
 void setLocalJndiName(java.lang.String jndiName)
          Set the jndi name of the local binding
 void setRemoteJndiName(java.lang.String jndiName)
          Set the jndi name of the remote binding
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, 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 (src)
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.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Constructor Detail

LinkRefPairService

public LinkRefPairService()
Method Detail

getJndiName

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

Specified by:
getJndiName in interface LinkRefPairServiceMBean (src)
Returns:
the jndi name

getLocalJndiName

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

Specified by:
getLocalJndiName in interface LinkRefPairServiceMBean (src)
Returns:
the jndi name

getRemoteJndiName

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

Specified by:
getRemoteJndiName in interface LinkRefPairServiceMBean (src)
Returns:
the jndi name

setJndiName

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

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

setLocalJndiName

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

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

setRemoteJndiName

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

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

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception