A Vert.x service used to interact with Consul.
package |
Default |
---|
__construct()
agentInfo( $arg0) : $this
callable
$this
reference to this, for fluency
catalogDatacenters( $arg0) : $this
callable
$this
reference to this, for fluency
catalogNodes( $arg0) : $this
callable
$this
reference to this, for fluency
catalogNodeServices( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
catalogNodeServicesWithOptions( $arg0, $arg1, $arg2) : $this
string
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
catalogNodesWithOptions( $arg0, $arg1) : $this
array | NodeQueryOptions
callable
$this
reference to this, for fluency
catalogServiceNodes( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
catalogServiceNodesWithOptions( $arg0, $arg1, $arg2) : $this
string
array | ServiceQueryOptions
callable
$this
reference to this, for fluency
catalogServices( $arg0) : $this
callable
$this
reference to this, for fluency
catalogServicesWithOptions( $arg0, $arg1) : $this
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
cloneAclToken( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
close() : void
coordinateDatacenters( $arg0) : $this
callable
$this
reference to this, for fluency
coordinateNodes( $arg0) : $this
callable
$this
reference to this, for fluency
coordinateNodesWithOptions( $arg0, $arg1) : $this
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
create( $arg0, $arg1 = null) : \io\vertx\jphp\ext\consul\ConsulClient
param $vertx [Vertx] the Vert.x instance create($vertx)
Create a Consul client.
param $vertx [Vertx] the Vert.x instance param $options [ConsulClientOptions | array] the options create($vertx, $options)
Vertx
array | ConsulClientOptions
\io\vertx\jphp\ext\consul\ConsulClient
the client
createAclToken( $arg0, $arg1) : $this
array | AclToken
callable
$this
reference to this, for fluency
createPreparedQuery( $arg0, $arg1) : $this
array | PreparedQueryDefinition
callable
$this
reference to this, for fluency
createSession( $arg0) : $this
callable
$this
reference to this, for fluency
createSessionWithOptions( $arg0, $arg1) : $this
array | SessionOptions
callable
$this
reference to this, for fluency
deletePreparedQuery( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
deleteValue( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
deleteValues( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
deregisterCheck( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
deregisterService( $arg0, $arg1) : $this
If there is an associated check, that is also deregistered.
string
callable
$this
reference to this, for fluency
destroyAclToken( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
destroySession( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
executePreparedQuery( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
executePreparedQueryWithOptions( $arg0, $arg1, $arg2) : $this
string
array | PreparedQueryExecuteOptions
callable
$this
reference to this, for fluency
failCheck( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
failCheckWithNote( $arg0, $arg1, $arg2) : $this
string
string
callable
$this
reference to this, for fluency
fireEvent( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
fireEventWithOptions( $arg0, $arg1, $arg2) : $this
string
EventOptions | array
callable
$this
reference to this, for fluency
getAllPreparedQueries( $arg0) : $this
callable
$this
reference to this, for fluency
getKeys( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
getKeysWithOptions( $arg0, $arg1, $arg2) : $this
string
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
getPreparedQuery( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
getValue( $arg0, $arg1) : $this
An empty @see \io\vertx\jphp\ext\consul\KeyValue object will be returned if no such key is found.
string
callable
$this
reference to this, for fluency
getValues( $arg0, $arg1) : $this
An empty @see \io\vertx\jphp\ext\consul\KeyValueList object will be returned if no such key prefix is found.
string
callable
$this
reference to this, for fluency
getValuesWithOptions( $arg0, $arg1, $arg2) : $this
An empty @see \io\vertx\jphp\ext\consul\KeyValueList object will be returned if no such key prefix is found. This is blocking query unlike @see \io\vertx\jphp\ext\consul\ConsulClient::getValues
string
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
getValueWithOptions( $arg0, $arg1, $arg2) : $this
An empty @see \io\vertx\jphp\ext\consul\KeyValue object will be returned if no such key is found. This is blocking query unlike @see \io\vertx\jphp\ext\consul\ConsulClient::getValue
string
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
healthChecks( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
healthChecksWithOptions( $arg0, $arg1, $arg2) : $this
string
CheckQueryOptions | array
callable
$this
reference to this, for fluency
healthServiceNodes( $arg0, $arg1, $arg2) : $this
string
boolean
callable
$this
reference to this, for fluency
healthServiceNodesWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
boolean
array | ServiceQueryOptions
callable
$this
reference to this, for fluency
healthState( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
healthStateWithOptions( $arg0, $arg1, $arg2) : $this
string
CheckQueryOptions | array
callable
$this
reference to this, for fluency
infoAclToken( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
infoSession( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
infoSessionWithOptions( $arg0, $arg1, $arg2) : $this
string
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
leaderStatus( $arg0) : $this
It returns an address in format "10.1.10.12:8300
"
callable
$this
reference to this, for fluency
listAclTokens( $arg0) : $this
callable
$this
reference to this, for fluency
listEvents( $arg0) : $this
callable
$this
reference to this, for fluency
listEventsWithOptions( $arg0, $arg1) : $this
This is blocking query unlike @see \io\vertx\jphp\ext\consul\ConsulClient::listEvents. However, the semantics of this endpoint
are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available.
This can be supported as a consequence of the total ordering of the consensus protocol. With gossip,
there is no ordering, and instead X-Consul-Index
maps to the newest event that matches the query.
In practice, this means the index is only useful when used against a single agent and has no meaning globally. Because Consul defines the index as being opaque, clients should not be expecting a natural ordering either.
array | EventListOptions
callable
$this
reference to this, for fluency
listNodeSessions( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
listNodeSessionsWithOptions( $arg0, $arg1, $arg2) : $this
string
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
listSessions( $arg0) : $this
callable
$this
reference to this, for fluency
listSessionsWithOptions( $arg0, $arg1) : $this
array | BlockingQueryOptions
callable
$this
reference to this, for fluency
localChecks( $arg0) : $this
callable
$this
reference to this, for fluency
localServices( $arg0) : $this
callable
$this
reference to this, for fluency
maintenanceService( $arg0, $arg1) : $this
array | MaintenanceOptions
callable
$this
reference to this, for fluency
passCheck( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
passCheckWithNote( $arg0, $arg1, $arg2) : $this
string
string
callable
$this
reference to this, for fluency
peersStatus( $arg0) : $this
It returns a list of addresses "10.1.10.12:8300
", "10.1.10.13:8300
"
callable
$this
reference to this, for fluency
putValue( $arg0, $arg1, $arg2) : $this
string
string
callable
$this
reference to this, for fluency
putValueWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
string
array | KeyValueOptions
callable
$this
reference to this, for fluency
registerCheck( $arg0, $arg1) : $this
CheckOptions | array
callable
$this
reference to this, for fluency
registerService( $arg0, $arg1) : $this
ServiceOptions | array
callable
$this
reference to this, for fluency
renewSession( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
transaction( $arg0, $arg1) : $this
TxnRequest | array
callable
$this
reference to this, for fluency
updateAclToken( $arg0, $arg1) : $this
array | AclToken
callable
$this
reference to this, for fluency
updateCheck( $arg0, $arg1, $arg2) : $this
string
string
callable
$this
reference to this, for fluency
updateCheckWithNote( $arg0, $arg1, $arg2, $arg3) : $this
string
string
string
callable
$this
reference to this, for fluency
updatePreparedQuery( $arg0, $arg1) : $this
array | PreparedQueryDefinition
callable
$this
reference to this, for fluency
warnCheck( $arg0, $arg1) : $this
string
callable
$this
reference to this, for fluency
warnCheckWithNote( $arg0, $arg1, $arg2) : $this
string
string
callable
$this
reference to this, for fluency