@Logged(errorLevel=ERROR) public abstract class IrsBrokerCommand<P extends IrsBaseVDSCommandParameters> extends BrokerCommandBase<P>
Modifier and Type | Class and Description |
---|---|
protected static class |
IrsBrokerCommand.IrsProxyData |
Modifier and Type | Field and Description |
---|---|
static long |
BYTES_TO_GB |
static int |
DAY_IN_MILLIS |
status
_returnValue
Constructor and Description |
---|
IrsBrokerCommand(P parameters) |
Modifier and Type | Method and Description |
---|---|
static Long |
AssignLongValue(XmlRpcStruct input,
String name) |
static void |
clearVdsFromCache(Guid storagePoolId,
Guid vdsId,
String vdsName)
Remove a VDS entry from the pool's IRS Proxy cache, clearing the problematic domains for this VDS and their
timers if they need to be cleaned.
|
protected static Guid[] |
convertStringGuidArray(String[] idArray) |
protected void |
ExecuteIrsBrokerCommand() |
protected void |
ExecuteVDSCommand() |
protected IrsBrokerCommand.IrsProxyData |
getCurrentIrsProxyData() |
protected IIrsServer |
getIrsProxy() |
protected static IrsBrokerCommand.IrsProxyData |
getIrsProxyData(Guid storagePoolId)
Return the IRS Proxy object for the given pool id.
|
static void |
Init() |
static boolean |
isDomainReportedInProblem(Guid storagePoolId,
Guid domainId) |
static void |
lockDbSave(Guid storagePoolId) |
void |
RemoveIrsProxy() |
static void |
unlockDbSave(Guid storagePoolId) |
static void |
UpdateVdsDomainsData(Guid vdsId,
String vdsName,
Guid storagePoolId,
ArrayList<VDSDomainsData> vdsDomainData) |
getAdditionalInformation, getIsPrintReturnValue, getReturnStatus, getReturnValueFromBroker, GetReturnValueFromStatus, InitializeVdsError, PrintReturnValue, ProceedProxyReturnValue
ExecuteCommand, getParameters, getReturnValue, getVDSReturnValue, setReturnValue, setVDSReturnValue, toString
Execute, ExecuteWithReturnValue, getCommandName, Rollback
public static final long BYTES_TO_GB
public static final int DAY_IN_MILLIS
public IrsBrokerCommand(P parameters)
public static void UpdateVdsDomainsData(Guid vdsId, String vdsName, Guid storagePoolId, ArrayList<VDSDomainsData> vdsDomainData)
public static boolean isDomainReportedInProblem(Guid storagePoolId, Guid domainId)
public static void lockDbSave(Guid storagePoolId)
public static void unlockDbSave(Guid storagePoolId)
public static void Init()
public void RemoveIrsProxy()
public static void clearVdsFromCache(Guid storagePoolId, Guid vdsId, String vdsName)
storagePoolId
- The ID of the storage pool to clean the IRS Proxy's cache for.vdsId
- The ID of the VDS to remove from the cache.vdsName
- The name of the VDS (for logging).protected static IrsBrokerCommand.IrsProxyData getIrsProxyData(Guid storagePoolId)
null
.storagePoolId
- The ID of the storage pool to get the IRS proxy for.null
if no proxy data is available.protected IrsBrokerCommand.IrsProxyData getCurrentIrsProxyData()
protected IIrsServer getIrsProxy()
protected void ExecuteVDSCommand()
ExecuteVDSCommand
in class VDSCommandBase<P extends IrsBaseVDSCommandParameters>
protected void ExecuteIrsBrokerCommand()
public static Long AssignLongValue(XmlRpcStruct input, String name)
Copyright © 2012. All Rights Reserved.