Skip to content

Commit

Permalink
Implemented Hi Availability for OrientDB Distributed Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Sep 28, 2015
1 parent 641b46e commit 12a160a
Show file tree
Hide file tree
Showing 55 changed files with 1,938 additions and 652 deletions.
4 changes: 3 additions & 1 deletion docs/ApiIndex.md
Expand Up @@ -52,10 +52,12 @@ API Index
* PhpOrient\Protocols\Binary\Transaction
* [TxCommit](PhpOrient-Protocols-Binary-Transaction-TxCommit)
* PhpOrient\Protocols\Common
* [OrientVersion](PhpOrient-Protocols-Common-OrientVersion)
* [AbstractTransport](PhpOrient-Protocols-Common-AbstractTransport)
* [ConfigurableInterface](PhpOrient-Protocols-Common-ConfigurableInterface)
* [ClusterMap](PhpOrient-Protocols-Common-ClusterMap)
* [OrientNode](PhpOrient-Protocols-Common-OrientNode)
* [TransportInterface](PhpOrient-Protocols-Common-TransportInterface)
* [ClustersMap](PhpOrient-Protocols-Common-ClustersMap)
* [Constants](PhpOrient-Protocols-Common-Constants)
* [PhpOrient](PhpOrient-PhpOrient)

4 changes: 3 additions & 1 deletion docs/Home.md
Expand Up @@ -52,10 +52,12 @@ API Index
* PhpOrient\Protocols\Binary\Transaction
* [TxCommit](PhpOrient-Protocols-Binary-Transaction-TxCommit)
* PhpOrient\Protocols\Common
* [OrientVersion](PhpOrient-Protocols-Common-OrientVersion)
* [AbstractTransport](PhpOrient-Protocols-Common-AbstractTransport)
* [ConfigurableInterface](PhpOrient-Protocols-Common-ConfigurableInterface)
* [ClusterMap](PhpOrient-Protocols-Common-ClusterMap)
* [OrientNode](PhpOrient-Protocols-Common-OrientNode)
* [TransportInterface](PhpOrient-Protocols-Common-TransportInterface)
* [ClustersMap](PhpOrient-Protocols-Common-ClustersMap)
* [Constants](PhpOrient-Protocols-Common-Constants)
* [PhpOrient](PhpOrient-PhpOrient)

6 changes: 3 additions & 3 deletions docs/PhpOrient-Configuration-Constants.md
Expand Up @@ -17,7 +17,7 @@ Constants

### VERSION
```php
const VERSION = "v1.1.2"
const VERSION = "v1.2.1"
```


Expand All @@ -33,15 +33,15 @@ Constants

### NAME
```php
const NAME = "PhpOrient - PHP binary client for OrientDB"
const NAME = "PhpOrient - Php driver based on the binary protocol of OrientDB."
```




### SUPPORTED_PROTOCOL
```php
const SUPPORTED_PROTOCOL = 28
const SUPPORTED_PROTOCOL = 32
```


Expand Down
4 changes: 2 additions & 2 deletions docs/PhpOrient-PhpOrient
Expand Up @@ -461,7 +461,7 @@ A callback function is needed

### dbReload
```php
\PhpOrient\Protocols\Common\ClusterMap PhpOrient\PhpOrient::dbReload()
\PhpOrient\Protocols\Common\ClustersMap PhpOrient\PhpOrient::dbReload()
```
##### Reload the structure of a Database

Expand Down Expand Up @@ -491,7 +491,7 @@ A callback function is needed

### dbOpen
```php
\PhpOrient\Protocols\Common\ClusterMap PhpOrient\PhpOrient::dbOpen(string $database, string $username, string $password, array $params)
\PhpOrient\Protocols\Common\ClustersMap PhpOrient\PhpOrient::dbOpen(string $database, string $username, string $password, array $params)
```
##### Open a Database and perform a connection<br />
if it is not established before
Expand Down
46 changes: 44 additions & 2 deletions docs/PhpOrient-PhpOrient.md
Expand Up @@ -146,6 +146,18 @@ Properties
* Visibility: **protected**


#### $fetchClass
```php
protected boolean $fetchClass = null
```




* Visibility: **protected**
* This property is **static**.


Methods
-------

Expand Down Expand Up @@ -461,7 +473,7 @@ A callback function is needed

### dbReload
```php
\PhpOrient\Protocols\Common\ClusterMap PhpOrient\PhpOrient::dbReload()
\PhpOrient\Protocols\Common\ClustersMap PhpOrient\PhpOrient::dbReload()
```
##### Reload the structure of a Database

Expand Down Expand Up @@ -491,7 +503,7 @@ A callback function is needed

### dbOpen
```php
\PhpOrient\Protocols\Common\ClusterMap PhpOrient\PhpOrient::dbOpen(string $database, string $username, string $password, array $params)
\PhpOrient\Protocols\Common\ClustersMap PhpOrient\PhpOrient::dbOpen(string $database, string $username, string $password, array $params)
```
##### Open a Database and perform a connection<br />
if it is not established before
Expand Down Expand Up @@ -686,6 +698,36 @@ Flushes all cached content to the disk storage and allows to perform only read c



### setFetchClass
```php
\PhpOrient\PhpOrient PhpOrient\PhpOrient::setFetchClass(boolean|string $className)
```
##### Allow the next query to be fetched in a custom class



* Visibility: **public**


##### Arguments
* $className **boolean|string**



### getFetchClass
```php
string|boolean PhpOrient\PhpOrient::getFetchClass()
```
##### Get the current value of the fetch custom class name



* Visibility: **public**
* This method is **static**.




### configure
```php
\PhpOrient\Protocols\Common\ConfigurableInterface PhpOrient\Protocols\Common\ConfigurableInterface::configure(array $options)
Expand Down
49 changes: 33 additions & 16 deletions docs/PhpOrient-Protocols-Binary-Abstracts-Operation.md
Expand Up @@ -86,13 +86,13 @@ Properties

#### $_callback
```php
public \Closure $_callback
protected \Closure $_callback
```

Callback function to apply on Async records when they are fetched



* Visibility: **public**
* Visibility: **protected**


Methods
Expand Down Expand Up @@ -185,6 +185,36 @@ Methods



### _pushReceived
```php
mixed PhpOrient\Protocols\Binary\Abstracts\Operation::_pushReceived($command_id, $payload)
```
##### Default callback for received push Notices



* Visibility: **protected**


##### Arguments
* $command_id **mixed**
* $payload **mixed**



### _readError
```php
\PhpOrient\Exceptions\PhpOrientException PhpOrient\Protocols\Binary\Abstracts\Operation::_readError()
```
##### Read an error from the remote server and turn it into an exception.



* Visibility: **protected**




### prepare
```php
\PhpOrient\Protocols\Binary\Abstracts\Operation PhpOrient\Protocols\Binary\Abstracts\Operation::prepare()
Expand Down Expand Up @@ -469,19 +499,6 @@ Methods



### _readError
```php
\PhpOrient\Exceptions\PhpOrientException PhpOrient\Protocols\Binary\Abstracts\Operation::_readError()
```
##### Read an error from the remote server and turn it into an exception.



* Visibility: **protected**




### _readSerialized
```php
mixed PhpOrient\Protocols\Binary\Abstracts\Operation::_readSerialized()
Expand Down
54 changes: 47 additions & 7 deletions docs/PhpOrient-Protocols-Binary-Data-Bag.md
Expand Up @@ -8,7 +8,7 @@ PhpOrient\Protocols\Binary\Data\Bag

* Class name: Bag
* Namespace: PhpOrient\Protocols\Binary\Data
* This class implements: Countable, ArrayAccess, Iterator
* This class implements: Countable, ArrayAccess, Iterator, JsonSerializable


Constants
Expand All @@ -35,9 +35,9 @@ Properties
----------


#### $serialized
#### $base64Content
```php
protected string $serialized
protected string $base64Content
```


Expand All @@ -46,9 +46,9 @@ Properties
* Visibility: **protected**


#### $deserialized
#### $binaryContent
```php
protected string $deserialized
protected string $binaryContent
```


Expand Down Expand Up @@ -184,7 +184,7 @@ Methods

### __construct
```php
mixed PhpOrient\Protocols\Binary\Data\Bag::__construct(string $serialized)
mixed PhpOrient\Protocols\Binary\Data\Bag::__construct(string $base64Content)
```
##### # RIDBag Constructor

Expand All @@ -194,7 +194,7 @@ Methods


##### Arguments
* $serialized **string** <p>the base64 encoded bag</p>
* $base64Content **string** <p>the base64 encoded bag</p>



Expand Down Expand Up @@ -224,6 +224,46 @@ Methods



### getRids
```php
array PhpOrient\Protocols\Binary\Data\Bag::getRids()
```
##### Get the list of contained RIDs



* Visibility: **public**




### getRawBagContent
```php
string PhpOrient\Protocols\Binary\Data\Bag::getRawBagContent()
```
##### Get the original raw content for the Bag



* Visibility: **public**




### jsonSerialize
```php
mixed PhpOrient\Protocols\Binary\Data\Bag::jsonSerialize()
```
##### (PHP 5 &gt;= 5.4.0)<br/>
Specify data which should be serialized to JSON



* Visibility: **public**




### parse
```php
mixed PhpOrient\Protocols\Binary\Data\Bag::parse()
Expand Down
22 changes: 11 additions & 11 deletions docs/PhpOrient-Protocols-Binary-Data-Record.md
Expand Up @@ -154,7 +154,7 @@ Methods

### setOData
```php
\PhpOrient\Protocols\Binary\Data\Record PhpOrient\Protocols\Binary\Data\Record::setOData(array $oData)
\PhpOrient\Protocols\Binary\Data\Record PhpOrient\Protocols\Binary\Data\Record::setOData(array|null $oData)
```
##### Sets the Orient Record Content

Expand All @@ -164,7 +164,7 @@ Methods


##### Arguments
* $oData **array**
* $oData **array|null**



Expand Down Expand Up @@ -337,35 +337,35 @@ content as property



### configure
### fromConfig
```php
\PhpOrient\Protocols\Binary\Data\Record PhpOrient\Protocols\Binary\Data\Record::configure(array $options)
static PhpOrient\Protocols\Binary\Data\Record::fromConfig(array $options)
```
##### Configure the object.
##### Return a new class instance configured from the given options.



* Visibility: **public**
* This method is **static**.


##### Arguments
* $options **array** <p>The options for the object.</p>
* $options **array** <p>The options for the newly created class instance.</p>



### fromConfig
### configure
```php
static PhpOrient\Protocols\Binary\Data\Record::fromConfig(array $options)
\PhpOrient\Protocols\Binary\Data\Record PhpOrient\Protocols\Binary\Data\Record::configure(array $options)
```
##### Return a new class instance configured from the given options.
##### Configure the object.



* Visibility: **public**
* This method is **static**.


##### Arguments
* $options **array** <p>The options for the newly created class instance.</p>
* $options **array** <p>The options for the object.</p>


0 comments on commit 12a160a

Please sign in to comment.