org.mule.module.management.mbean
Class ConnectorService

java.lang.Object
  extended by org.mule.module.management.mbean.ConnectorService
All Implemented Interfaces:
Initialisable, ConnectorServiceMBean

public class ConnectorService
extends Object
implements ConnectorServiceMBean


Field Summary
 
Fields inherited from interface org.mule.module.management.mbean.ConnectorServiceMBean
DEFAULT_JMX_NAME_PREFIX
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
ConnectorService(Connector connector)
           
 
Method Summary
 void dispose()
           
 String getName()
           
 String getProtocol()
           
 void initialise()
          Method used to perform any initialisation work.
 boolean isDisposed()
           
 boolean isStarted()
           
 void startConnector()
           
 void stopConnector()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorService

public ConnectorService(Connector connector)
Method Detail

isStarted

public boolean isStarted()
Specified by:
isStarted in interface ConnectorServiceMBean

isDisposed

public boolean isDisposed()
Specified by:
isDisposed in interface ConnectorServiceMBean

getName

public String getName()
Specified by:
getName in interface ConnectorServiceMBean

getProtocol

public String getProtocol()
Specified by:
getProtocol in interface ConnectorServiceMBean

startConnector

public void startConnector()
                    throws MuleException
Specified by:
startConnector in interface ConnectorServiceMBean
Throws:
MuleException

stopConnector

public void stopConnector()
                   throws MuleException
Specified by:
stopConnector in interface ConnectorServiceMBean
Throws:
MuleException

dispose

public void dispose()
Specified by:
dispose in interface ConnectorServiceMBean

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.