Package org.libvirt
Class SchedParameter
- java.lang.Object
-
- org.libvirt.SchedParameter
-
- Direct Known Subclasses:
SchedBooleanParameter
,SchedDoubleParameter
,SchedIntParameter
,SchedLongParameter
,SchedUintParameter
,SchedUlongParameter
public abstract class SchedParameter extends java.lang.Object
The abstract parent of the actual Schedparameter classes- Author:
- stoty
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
field
Parameter nameprotected static int
SCHED_PARAM_BOOLEAN
protected static int
SCHED_PARAM_DOUBLE
protected static int
SCHED_PARAM_INT
TODO: get generated constants from libvirtprotected static int
SCHED_PARAM_LONG
protected static int
SCHED_PARAM_UINT
protected static int
SCHED_PARAM_ULONG
-
Constructor Summary
Constructors Constructor Description SchedParameter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static byte[]
copyOf(byte[] original, int length)
static SchedParameter
create(virSchedParameter vParam)
abstract int
getType()
The type of the parameterabstract java.lang.String
getTypeAsString()
Utility function for displaying the typeabstract java.lang.String
getValueAsString()
Utility function for displaying the valuestatic virSchedParameter
toNative(SchedParameter param)
-
-
-
Field Detail
-
SCHED_PARAM_INT
protected static final int SCHED_PARAM_INT
TODO: get generated constants from libvirt- See Also:
- Constant Field Values
-
SCHED_PARAM_UINT
protected static final int SCHED_PARAM_UINT
- See Also:
- Constant Field Values
-
SCHED_PARAM_LONG
protected static final int SCHED_PARAM_LONG
- See Also:
- Constant Field Values
-
SCHED_PARAM_ULONG
protected static final int SCHED_PARAM_ULONG
- See Also:
- Constant Field Values
-
SCHED_PARAM_DOUBLE
protected static final int SCHED_PARAM_DOUBLE
- See Also:
- Constant Field Values
-
SCHED_PARAM_BOOLEAN
protected static final int SCHED_PARAM_BOOLEAN
- See Also:
- Constant Field Values
-
field
public java.lang.String field
Parameter name
-
-
Method Detail
-
create
public static SchedParameter create(virSchedParameter vParam)
-
toNative
public static virSchedParameter toNative(SchedParameter param)
-
copyOf
public static byte[] copyOf(byte[] original, int length)
-
getType
public abstract int getType()
The type of the parameter- Returns:
- the Type of the parameter
-
getTypeAsString
public abstract java.lang.String getTypeAsString()
Utility function for displaying the type- Returns:
- the Type of the parameter as string
-
getValueAsString
public abstract java.lang.String getValueAsString()
Utility function for displaying the value- Returns:
- the value of the parameter in String form
-
-