public class MQAddressList extends Object
| Constructor and Description |
|---|
MQAddressList()
Create an empty address list
|
MQAddressList(JmsService service)
Use the provided
JmsService to create an addresslist |
MQAddressList(JmsService service,
String targetName)
Creates an instance from jmsService and resolves
values using the provided target name
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMQUrl(JmsHost host)
Creates an instance of MQUrl from JmsHost element in
the dtd and add it to the addresslist.
|
static MQUrl |
createUrl(JmsHost host,
JmsService js) |
static MQUrl |
createUrl(JmsHost host,
JmsService js,
String overridedHostName) |
Cluster |
getClusterByName(String clusterName) |
Cluster |
getClusterForServer(String instanceName) |
JmsHost |
getDefaultJmsHost(JmsService jmsService) |
String |
getHostNameFromDasProperties() |
String |
getMasterBroker(String clustername) |
String |
getNodeHostName(Server as) |
Map<String,JmsHost> |
getResolvedLocalJmsHostsInMyCluster(boolean includeMe) |
Server[] |
getServersInCluster(Cluster cluster) |
Server[] |
getServersInCluster(String clusterName) |
int |
getSize() |
protected String |
getSystemProperty(String propertyName) |
boolean |
isAConfig(String targetName) |
boolean |
isClustered() |
boolean |
isDAS(String targetName) |
void |
removeMQUrl(JmsHost host)
Deletes the url represented by the JmsHost from the AddressList.
|
void |
setInstanceName(String instanceName) |
void |
setJmsService(JmsService jmsService) |
void |
setTargetName(String targetName) |
void |
setup() |
void |
setup(boolean isClustered)
Sets up the addresslist.
|
String |
toString()
Creates a String representation of address list from
array list.
|
void |
updateMQUrl(JmsHost host)
Updates the information about the
JmsHost
in the address list. |
public MQAddressList()
public MQAddressList(JmsService service)
JmsService to create an addresslistpublic MQAddressList(JmsService service, String targetName)
targetName - Represents the target for which the addresslist
needs to be createdservice - JmsService instance.public void setJmsService(JmsService jmsService)
public void setTargetName(String targetName)
public void setInstanceName(String instanceName)
public void setup(boolean isClustered)
throws Exception
Exceptionpublic String getHostNameFromDasProperties()
public boolean isDAS(String targetName)
public boolean isAConfig(String targetName)
public Map<String,JmsHost> getResolvedLocalJmsHostsInMyCluster(boolean includeMe)
public String toString()
public void addMQUrl(JmsHost host)
host - An instance of JmsHost object.public void removeMQUrl(JmsHost host)
host - An instance of JmsHost object.public void updateMQUrl(JmsHost host)
JmsHost
in the address list.host - An instance of JmsHost object.public static MQUrl createUrl(JmsHost host, JmsService js)
public static MQUrl createUrl(JmsHost host, JmsService js, String overridedHostName)
public JmsHost getDefaultJmsHost(JmsService jmsService)
public boolean isClustered()
public int getSize()
Copyright © 2017. All rights reserved.