public class MQDatabaseSettingsDAO extends Object implements MQSettingsDAO
Constructor and Description |
---|
MQDatabaseSettingsDAO() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getBrokerConnectorURLs()
Use this this method to list all urls that the broker should be started on, hence the vm url
will not be included, since it will be available always.
|
Set<String> |
getBrokerConnectorURLsWithVM()
Use this method to list all urls that can be used to connect to the broker
|
String |
getBrokerName() |
String |
getDataDirectory() |
String |
getJmxDomainName() |
int |
getJmxPort() |
String |
getQueueName() |
String |
getReplyQueueNamePrefix() |
String |
getSSLPort() |
String |
getTcpPort() |
String |
getUrlHostname() |
String |
getVMConnectorURL() |
boolean |
isBrokerStarted() |
boolean |
isEnableSSL() |
boolean |
isEnableTCP() |
boolean |
isEnableVM()
This flag is only relevant for the adapter connecting to the broker, since the VM connection
is always available once the broker is started.
|
boolean |
isForceSSL() |
boolean |
isForceSSLClientAuthentication() |
boolean |
isJmxMonitoringEnabled() |
boolean |
isJmxRemoteEnabled() |
void |
setBrokerStarted(boolean isStarted)
sets broker's state flag
|
void |
setDataDirectory(String dataDirectoryPath)
sets data directory path
|
void |
setEnableJmxRemote(boolean enableJmx) |
void |
setEnableSSL(boolean enableSSL) |
void |
setEnableTCP(boolean enableTCP) |
void |
setEnableVM(boolean enableVM)
VM = virtual machine connector
|
void |
setForceSSL(boolean forceSSL) |
void |
setForceSSLClientAuthentication(boolean needClientAuth) |
public Set<String> getBrokerConnectorURLs()
MQSettingsDAO
getBrokerConnectorURLs
in interface MQSettingsDAO
public Set<String> getBrokerConnectorURLsWithVM()
MQSettingsDAO
getBrokerConnectorURLsWithVM
in interface MQSettingsDAO
MQSettingsDAO.isEnableVM()
is true)public String getBrokerName()
getBrokerName
in interface MQSettingsDAO
public String getDataDirectory()
getDataDirectory
in interface MQSettingsDAO
public String getJmxDomainName()
getJmxDomainName
in interface MQSettingsDAO
public int getJmxPort()
getJmxPort
in interface MQSettingsDAO
public String getQueueName()
getQueueName
in interface MQSettingsDAO
public String getReplyQueueNamePrefix()
getReplyQueueNamePrefix
in interface MQSettingsDAO
public String getSSLPort()
getSSLPort
in interface MQSettingsDAO
public String getTcpPort()
getTcpPort
in interface MQSettingsDAO
public String getUrlHostname()
getUrlHostname
in interface MQSettingsDAO
public String getVMConnectorURL()
getVMConnectorURL
in interface MQSettingsDAO
public boolean isBrokerStarted()
isBrokerStarted
in interface MQSettingsDAO
public boolean isEnableSSL()
isEnableSSL
in interface MQSettingsDAO
public boolean isEnableTCP()
isEnableTCP
in interface MQSettingsDAO
public boolean isEnableVM()
MQSettingsDAO
isEnableVM
in interface MQSettingsDAO
public boolean isForceSSL()
isForceSSL
in interface MQSettingsDAO
public boolean isForceSSLClientAuthentication()
isForceSSLClientAuthentication
in interface MQSettingsDAO
public boolean isJmxMonitoringEnabled()
isJmxMonitoringEnabled
in interface MQSettingsDAO
public boolean isJmxRemoteEnabled()
isJmxRemoteEnabled
in interface MQSettingsDAO
MQSettingsDAO.getJmxPort()
portpublic void setBrokerStarted(boolean isStarted) throws AuthorizationException
MQSettingsDAO
setBrokerStarted
in interface MQSettingsDAO
isStarted
- the flag valueAuthorizationException
public void setDataDirectory(String dataDirectoryPath) throws AuthorizationException
MQSettingsDAO
setDataDirectory
in interface MQSettingsDAO
dataDirectoryPath
- path to setAuthorizationException
public void setEnableJmxRemote(boolean enableJmx) throws AuthorizationException
setEnableJmxRemote
in interface MQSettingsDAO
enableJmx
- the enableJmx to setAuthorizationException
public void setEnableSSL(boolean enableSSL) throws AuthorizationException
setEnableSSL
in interface MQSettingsDAO
enableSSL
- true to enable the ssl connectorAuthorizationException
public void setEnableTCP(boolean enableTCP) throws AuthorizationException
setEnableTCP
in interface MQSettingsDAO
enableTCP
- true to enable tcpAuthorizationException
public void setEnableVM(boolean enableVM) throws AuthorizationException
MQSettingsDAO
setEnableVM
in interface MQSettingsDAO
enableVM
- true to enable vm (which actually only relevant for the embedded adapter)AuthorizationException
public void setForceSSL(boolean forceSSL) throws AuthorizationException
setForceSSL
in interface MQSettingsDAO
forceSSL
- the forceSSL to setAuthorizationException
public void setForceSSLClientAuthentication(boolean needClientAuth) throws AuthorizationException
setForceSSLClientAuthentication
in interface MQSettingsDAO
needClientAuth
- true if a client auth by certificate is expected on connecting to the brokerAuthorizationException
Copyright © 2019 Communote team. All rights reserved.