public class VirtualHostLegacyResourceKeyUtil extends Object
| Constructor and Description |
|---|
VirtualHostLegacyResourceKeyUtil(ApacheServerComponent serverComponent,
ApacheDirectiveTree runtimeConfig) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getLegacyMainServerResourceKeys()
This creates a list of possible resource keys for the main server.
|
Set<String> |
getLegacyVirtualHostResourceKeys(VHostSpec vhost)
Returns a list of possible resource keys that the RHQ 3 code could generate for the specified
vhost.
|
String |
getRHQ3NonSNMPLegacyMainServerResourceKey()
A resource key for the main vhost that would be returned by the RHQ 3 codebase
if SNMP wasn't enabled during discovery.
|
String |
getRHQ3NonSNMPLegacyVirtualHostResourceKey(VHostSpec vhost)
A resource key for given vhost that would be returned by RHQ 3 if SNMP wasn't enabled during
discovery.
|
String |
getRHQ3SNMPLikeResourceKey(String nonSnmpResourceKey)
Returns an "SNMP" resource key that would have been resolved out of the non-snmp resource key
by the RHQ 3 code-base.
|
public VirtualHostLegacyResourceKeyUtil(ApacheServerComponent serverComponent, ApacheDirectiveTree runtimeConfig)
public Set<String> getLegacyMainServerResourceKeys()
This uses the algoritms used in the RHQ 3 codebase and returns both the resource key that would be generated wihout SNMP support and with it.
The returned set also contains the resource key as it would be found by RHQ 1.x
public String getRHQ3NonSNMPLegacyMainServerResourceKey()
Note that this can return 2 different values depending on whether the URL property in the parent apache server's plugin configuration is set or not.
Because the resource key is dependent on a value manually entered by the user (albeit autodetected during discovery), no attempt is made to guess what values that property could have had. Only the current value is used.
public Set<String> getLegacyVirtualHostResourceKeys(VHostSpec vhost)
As with getLegacyMainServerResourceKeys() the resulting set will contain all the various
resource keys that could have been found by past versions of the plugin.
vhost - public String getRHQ3NonSNMPLegacyVirtualHostResourceKey(VHostSpec vhost)
vhost - public String getRHQ3SNMPLikeResourceKey(String nonSnmpResourceKey)
nonSnmpResourceKey - Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.