Package ganeti :: Module wconfd :: Class Client
[hide private]
[frames] | no frames]

Class Client

source code


High-level WConfD client implementation.

This uses a backing Transport-like class on top of which it implements data serialization/deserialization.

Instance Methods [hide private]
 
__init__(self, timeouts=None, transport=Transport, allow_non_master=None)
Constructor for the Client class.
source code

Inherited from rpc.client.AbstractClient: CallMethod, Close, close

Inherited from rpc.stub.wconfd.ClientRpcStub: AddInstance, AddInstanceDisk, AddMaintdEvacuated, AddTcpUdpPort, AllocateDRBDMinor, AllocatePort, AppendMaintdJobs, AttachInstanceDisk, CleanupLocks, ClearMaintdJobs, CommitReleaseTemporaryIp, CommitTemporaryIps, ComputeDRBDMap, DetachInstanceDisk, DownGradeLocksLevel, DropAllReservations, Echo, FlushConfig, FlushConfigGroup, FreeLocks, FreeLocksLevel, GenerateDRBDSecret, GenerateIp, GenerateMAC, GuardedOpportunisticLockUnion, HasPendingRequest, IntersectLocks, ListAllLocks, ListAllLocksOwners, ListLocks, ListLocksWaitingStatus, ListReservedIps, LockConfig, MaintenanceBalancing, MaintenanceEvacuated, MaintenanceIncidents, MaintenanceJobs, MaintenanceRoundDelay, OpportunisticLockUnion, PrepareClusterDestruction, ReadConfig, ReleaseDRBDMinors, ReleaseIp, RemoveInstance, RemoveInstanceDisk, ReserveIp, ReserveLV, ReserveMAC, RmMaintdEvacuated, RmMaintdIncident, SetInstancePrimaryNode, SetInstanceStatus, SetMaintdBalance, SetMaintdBalanceThreshold, SetMaintdRoundDelay, TryUpdateLocks, UnlockConfig, UpdateCluster, UpdateDisk, UpdateInstance, UpdateLocksWaiting, UpdateMaintdIncident, UpdateNetwork, UpdateNode, UpdateNodeGroup, VerifyConfig, WriteConfig, WriteConfigAndUnlock

Inherited from rpc.stub.wconfd.ClientRpcStub (private): _GetSocketPath

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, timeouts=None, transport=Transport, allow_non_master=None)
(Constructor)

source code 

Constructor for the Client class.

Arguments are the same as for AbstractClient.

Parameters:
  • timeouts - timeouts to be used on connect and read/write
  • transport - the underlying transport to use for the RPC calls
  • allow_non_master - skip checks for the master node on errors
Overrides: object.__init__