HCE Project PHP language client API bindings OOP style  1.1.1
Hierarchical Cluster Engine PHP Client Interface API OOP style
 All Classes Namespaces Files Functions Variables Pages
HCE\transport\IdGenerator Class Reference

Public Member Functions

 __construct ()
 __destruct ()

Static Public Member Functions

static getClientId ($type=1, $prefix=null)
static getMessageId ($type=1, $prefix= '')
static getUniqueId ($type=0)

Detailed Description

HCE Connection class implements basic functionality of client-side of HCE Cluster Node application interaction

Definition at line 19 of file IdGenerator.inc.php.

Constructor & Destructor Documentation

HCE\transport\IdGenerator::__construct ( )

create instance of IdGenerator

Definition at line 23 of file IdGenerator.inc.php.

HCE\transport\IdGenerator::__destruct ( )

delete the IdGenerator object instance

Definition at line 29 of file IdGenerator.inc.php.

Member Function Documentation

static HCE\transport\IdGenerator::getClientId (   $type = 1,
  $prefix = null 
)
static

generate unique client identifier

Parameters
$type- type of algorithm of Id generation algorithm, supported values from 0 to 5
$prefix- $prefix for Id string
Returns
unique client identifier string

Definition at line 42 of file IdGenerator.inc.php.

Here is the caller graph for this function:

static HCE\transport\IdGenerator::getMessageId (   $type = 1,
  $prefix = '' 
)
static

Generate unique message identifier

Parameters
$type- type of algorithm of Id generation algorithm, supported values from 0 to 5
$prefix- $prefix for Id string
Returns
unique message identifier string

Definition at line 70 of file IdGenerator.inc.php.

Here is the caller graph for this function:

static HCE\transport\IdGenerator::getUniqueId (   $type = 0)
static

Generate unique identifier by one of several methods

Parameters
$type- type of algorithm of Id generation algorithm, supported values from 0 to 5
Returns
unique identifier string

Definition at line 92 of file IdGenerator.inc.php.


The documentation for this class was generated from the following file: