public class ConnectorService extends Object implements ConnectorServiceMBean
DEFAULT_JMX_NAME_PREFIX
PHASE_NAME
Constructor and Description |
---|
ConnectorService(Connector connector) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
String |
getName() |
String |
getProtocol() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isDisposed() |
boolean |
isStarted() |
void |
startConnector() |
void |
stopConnector() |
public ConnectorService(Connector connector)
public boolean isStarted()
isStarted
in interface ConnectorServiceMBean
public boolean isDisposed()
isDisposed
in interface ConnectorServiceMBean
public String getName()
getName
in interface ConnectorServiceMBean
public String getProtocol()
getProtocol
in interface ConnectorServiceMBean
public void startConnector() throws MuleException
startConnector
in interface ConnectorServiceMBean
MuleException
public void stopConnector() throws MuleException
stopConnector
in interface ConnectorServiceMBean
MuleException
public void dispose()
dispose
in interface ConnectorServiceMBean
public void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.