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: AllocateDRBDMinor, CommitReleaseTemporaryIp, CommitTemporaryIps, ComputeDRBDMap, DownGradeLocksLevel, DropAllReservations, Echo, FlushConfig, FreeLocks, FreeLocksLevel, GenerateDRBDSecret, GenerateIp, GenerateMAC, GuardedOpportunisticLockUnion, HasPendingRequest, IntersectLocks, ListAllLocks, ListAllLocksOwners, ListLocks, ListLocksWaitingStatus, ListReservedIps, LockConfig, OpportunisticLockUnion, PrepareClusterDestruction, ReadConfig, ReleaseDRBDMinors, ReleaseIp, ReserveIp, ReserveLV, ReserveMAC, TryUpdateLocks, UnlockConfig, UpdateLocksWaiting, VerifyConfig, WriteConfig

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)

source code 

Constructor for the Client class.

Arguments are the same as for AbstractClient.

  • 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__