public class MQManager extends Object implements MQManagerMXBean
| Constructor and Description |
|---|
MQManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMasterSlaveStatus(List<MQBrokerStatusDTO> answer) |
static void |
assignProfileToContainers(io.fabric8.api.FabricService fabricService,
io.fabric8.api.Profile profile,
String[] assignContainers) |
static List<MQBrokerConfigDTO> |
createConfigDTOs(io.fabric8.api.MQService mqService,
io.fabric8.api.Profile profile) |
static List<io.fabric8.api.CreateContainerBasicOptions.Builder> |
createContainerBuilders(MQBrokerConfigDTO dto,
io.fabric8.api.FabricService fabricService,
String containerProviderScheme,
String profileId,
String version,
String[] createContainers)
Creates container builders for the given DTO
|
protected static MQServiceImpl |
createMQService(io.fabric8.api.FabricService fabricService) |
static io.fabric8.api.Profile |
createOrUpdateProfile(MQBrokerConfigDTO dto,
io.fabric8.api.FabricService fabricService)
Creates or updates the broker profile for the given DTO and updates the requirements so that the
minimum number of instances of the profile is updated
|
protected MQBrokerStatusDTO |
createStatusDTO(io.fabric8.api.Profile profile,
MQBrokerConfigDTO configDTO,
io.fabric8.api.ProfileRequirements profileRequirements,
io.fabric8.api.Container container) |
List<io.fabric8.api.Profile> |
getActiveOrRequiredBrokerProfileMap() |
List<io.fabric8.api.Profile> |
getActiveOrRequiredBrokerProfileMap(io.fabric8.api.Version version) |
protected static String |
getBrokerNameFromPID(String key) |
org.apache.curator.framework.CuratorFramework |
getCurator() |
protected static boolean |
isBrokerConfigPid(String key) |
protected static List |
listValue(Map<String,Object> map,
String... keys) |
List<MQBrokerConfigDTO> |
loadBrokerConfiguration()
Returns the current logical Fabric broker configuration
|
List<MQBrokerStatusDTO> |
loadBrokerStatus()
Returns the current runtime status of all the logical Fabric brokers
|
void |
saveBrokerConfiguration(List<MQBrokerConfigDTO> dtos) |
void |
saveBrokerConfigurationJSON(String json)
Saves the broker configuration as JSON
|
protected static String |
stringValue(Map<String,Object> map,
String... keys) |
protected static Object |
value(Map<String,Object> map,
String... keys) |
public List<MQBrokerConfigDTO> loadBrokerConfiguration()
MQManagerMXBeanloadBrokerConfiguration in interface MQManagerMXBeanpublic List<MQBrokerStatusDTO> loadBrokerStatus() throws Exception
MQManagerMXBeanloadBrokerStatus in interface MQManagerMXBeanExceptionprotected void addMasterSlaveStatus(List<MQBrokerStatusDTO> answer) throws Exception
Exceptionprotected MQBrokerStatusDTO createStatusDTO(io.fabric8.api.Profile profile, MQBrokerConfigDTO configDTO, io.fabric8.api.ProfileRequirements profileRequirements, io.fabric8.api.Container container)
public static List<MQBrokerConfigDTO> createConfigDTOs(io.fabric8.api.MQService mqService, io.fabric8.api.Profile profile)
public List<io.fabric8.api.Profile> getActiveOrRequiredBrokerProfileMap()
public List<io.fabric8.api.Profile> getActiveOrRequiredBrokerProfileMap(io.fabric8.api.Version version)
protected static boolean isBrokerConfigPid(String key)
public void saveBrokerConfigurationJSON(String json) throws IOException
MQManagerMXBeansaveBrokerConfigurationJSON in interface MQManagerMXBeanIOExceptionpublic void saveBrokerConfiguration(List<MQBrokerConfigDTO> dtos) throws IOException
IOExceptionpublic static io.fabric8.api.Profile createOrUpdateProfile(MQBrokerConfigDTO dto, io.fabric8.api.FabricService fabricService) throws IOException
IOExceptionprotected static MQServiceImpl createMQService(io.fabric8.api.FabricService fabricService)
public static void assignProfileToContainers(io.fabric8.api.FabricService fabricService,
io.fabric8.api.Profile profile,
String[] assignContainers)
public static List<io.fabric8.api.CreateContainerBasicOptions.Builder> createContainerBuilders(MQBrokerConfigDTO dto, io.fabric8.api.FabricService fabricService, String containerProviderScheme, String profileId, String version, String[] createContainers) throws IOException
IOExceptionpublic org.apache.curator.framework.CuratorFramework getCurator()
Copyright © 2011–2014 Red Hat. All rights reserved.