public class MasterConnector extends Object implements Service, BrokerServiceAware
| Constructor and Description |
|---|
MasterConnector() |
MasterConnector(String remoteUri) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getLocalURI() |
String |
getPassword() |
URI |
getRemoteURI() |
String |
getUserName() |
boolean |
isFailedToStart()
Get the failedToStart
|
boolean |
isSlave() |
boolean |
isStoppedBeforeStart() |
protected void |
restartBridge() |
protected void |
serviceLocalException(Throwable error) |
protected void |
serviceRemoteCommand(Command command) |
protected void |
serviceRemoteException(IOException error) |
void |
setBrokerService(BrokerService broker) |
void |
setFailedToStart(boolean failedToStart)
Set the failedToStart
|
void |
setLocalURI(URI localURI) |
void |
setPassword(String password) |
void |
setRemoteURI(URI remoteURI) |
void |
setUserName(String userName) |
void |
start() |
protected void |
startBridge() |
void |
stop() |
void |
stopBeforeConnected() |
public MasterConnector()
public MasterConnector(String remoteUri) throws URISyntaxException
URISyntaxExceptionpublic void setBrokerService(BrokerService broker)
setBrokerService in interface BrokerServiceAwarepublic boolean isSlave()
protected void restartBridge() throws Exception
Exceptionprotected void startBridge() throws Exception
Exceptionpublic void stopBeforeConnected() throws Exception
Exceptionprotected void serviceRemoteException(IOException error)
protected void serviceRemoteCommand(Command command)
protected void serviceLocalException(Throwable error)
public URI getLocalURI()
public void setLocalURI(URI localURI)
localURI - The localURI to set.public URI getRemoteURI()
public void setRemoteURI(URI remoteURI)
remoteURI - The remoteURI to set.public String getPassword()
public void setPassword(String password)
password - The password to set.public String getUserName()
public void setUserName(String userName)
userName - The userName to set.public boolean isStoppedBeforeStart()
public boolean isFailedToStart()
public void setFailedToStart(boolean failedToStart)
failedToStart - the failedToStart to setCopyright © 2005–2017. All rights reserved.