SequoiaDB
 All Classes Files Functions
Public Member Functions | List of all members
SequoiaGroup Class Reference

Public Member Functions

int getNodeNum (int $status)
 get the status node number
 
array string getDetail (void)
 get the group detail
 
SequoiaNode getMaster (void)
 get the master node
 
SequoiaNode getSlave (void)
 get the slave node
 
SequoiaNode getNode (string $nodeName)
 get the node
 
array string createNode (string $hostName, string $serviceName, string $databasePath, array|string $config)
 create node
 
array string start (void)
 start group
 
array string stop (void)
 stop group
 
bool isCatalog (void)
 judge group is catalog
 

Member Function Documentation

array string SequoiaGroup::createNode ( string  $hostName,
string  $serviceName,
string  $databasePath,
array|string  $config 
)

create node

Parameters
[in]$hostNameThe node host name, cannot be null
[in]$serviceNameThe node service name, cannot be null
[in]$databasePathThe node database path, cannot be null
[in]$configThe node name
Return values
Returnsthe database response
array string SequoiaGroup::getDetail ( void  )

get the group detail

Return values
Returnsthe group detail
SequoiaNode SequoiaGroup::getMaster ( void  )

get the master node

Return values
Returnsthe master node
SequoiaNode SequoiaGroup::getNode ( string  $nodeName)

get the node

Parameters
[in]$nodeNameThe node name, cannot be null
Return values
Returnsthe node
int SequoiaGroup::getNodeNum ( int  $status)

get the status node number

Parameters
[in]$statusThe node status, cannot be null
Return values
Returnsthe node number
SequoiaNode SequoiaGroup::getSlave ( void  )

get the slave node

Return values
Returnsthe slave node
bool SequoiaGroup::isCatalog ( void  )

judge group is catalog

Return values
Returnstrue or false
array string SequoiaGroup::start ( void  )

start group

Return values
Returnsthe database response
array string SequoiaGroup::stop ( void  )

stop group

Return values
Returnsthe database response

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