public class VdsFencingOptions extends Object implements Serializable
Constructor and Description |
---|
VdsFencingOptions()
Initializes a new instance of the
|
VdsFencingOptions(String agent,
String fencingOptions)
Initializes a new instance of the
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
String value)
Adds the specified key.
|
void |
add(String agent,
String key,
String value)
Adds the specified key.
|
Object |
Get(String key)
Gets the specified key.
|
String |
getAgent() |
static String |
getDefaultAgentOptions(String agent,
String fenceOptions)
handles agent default options
|
ValueObjectMap |
getFencingAgentInstanceOptionsMap() |
ValueObjectMap |
getFencingOptionMappingMap() |
HashMap<String,HashMap<String,String>> |
getFencingOptionMappingMap2() |
String |
getFencingOptions() |
ValueObjectMap |
getFencingOptionTypesMap() |
static String |
getRealAgent(String agent)
handles agent mapping, get the real agent for a given agent name
|
ArrayList<String> |
GetSupportedOptions()
Gets the current agent supported options.
|
ArrayList<String> |
GetSupportedOptions(String agent)
Gets the agent supported options.
|
boolean |
IsSupported(String key)
Determines whether the specified current agent key is supported .
|
boolean |
IsSupported(String agent,
String key)
Determines whether the specified agent key is supported.
|
void |
setAgent(String value) |
void |
setFencingAgentInstanceOptionsMap(ValueObjectMap value) |
void |
setFencingOptionMappingMap(ValueObjectMap value) |
void |
setFencingOptionMappingMap2(HashMap<String,HashMap<String,String>> value) |
void |
setFencingOptions(String value) |
void |
setFencingOptionTypesMap(ValueObjectMap value) |
String |
ToInternalString()
Gets the internal representation of the options.
|
String |
toString()
Returns a
|
String |
ToUnsupportedOptionsString()
Gets the unsupported options string.
|
public VdsFencingOptions()
public ValueObjectMap getFencingAgentInstanceOptionsMap()
public void setFencingAgentInstanceOptionsMap(ValueObjectMap value)
public ValueObjectMap getFencingOptionMappingMap()
public void setFencingOptionMappingMap(ValueObjectMap value)
public HashMap<String,HashMap<String,String>> getFencingOptionMappingMap2()
public void setFencingOptionMappingMap2(HashMap<String,HashMap<String,String>> value)
public ValueObjectMap getFencingOptionTypesMap()
public void setFencingOptionTypesMap(ValueObjectMap value)
public static String getRealAgent(String agent)
agent
- the agent namepublic static String getDefaultAgentOptions(String agent, String fenceOptions)
agent
- fenceOptions
- public String getAgent()
public void setAgent(String value)
public String getFencingOptions()
public void setFencingOptions(String value)
public void add(String key, String value)
key
- The key.value
- The value.public void add(String agent, String key, String value)
agent
- The agent.key
- The key.value
- The value.public boolean IsSupported(String key)
key
- The key.public boolean IsSupported(String agent, String key)
agent
- The agent.key
- The key.public ArrayList<String> GetSupportedOptions()
public ArrayList<String> GetSupportedOptions(String agent)
agent
- The agent.public Object Get(String key)
key
- The key.public String toString()
public String ToUnsupportedOptionsString()
public String ToInternalString()
Copyright © 2012. All Rights Reserved.