identt
Public Types | Public Member Functions | Static Public Member Functions | List of all members
identt::work::WorkServer Class Reference
Inheritance diagram for identt::work::WorkServer:
identt::utils::ServerBase identt::store::StoreBase

Public Types

using pointer = std::shared_ptr< WorkServer >
 
- Public Types inherited from identt::utils::ServerBase
using ParamsListT = std::vector< std::string >
 

Public Member Functions

 WorkServer ()=delete
 make noncopyable
 
 WorkServer (const WorkServer &)=delete
 
WorkServeroperator= (const WorkServer &)=delete
 
pointer share ()
 share : return instance More...
 
virtual ~WorkServer ()
 destructor
 
void init (identt::utils::ServerBase::ParamsListT params)
 init : initialize rocksdb and others More...
 
void stop ()
 stop : shutdown More...
 
- Public Member Functions inherited from identt::utils::ServerBase
 ServerBase (const ServerBase &)=delete
 make noncopyable
 
ServerBaseoperator= (const ServerBase &)=delete
 
virtual ~ServerBase ()
 destructor
 
- Public Member Functions inherited from identt::store::StoreBase
std::string EncodeKeyType (KeyTypeE keytype)
 EncodeKeyType : make prefix key with keytype. More...
 
std::string EncodePrimaryKey (KeyTypeE keytype, ::google::protobuf::uint64 id)
 EncodePrimaryKey : make primary key with id only. More...
 
std::pair< KeyTypeE, uint64_t > DecodePrimaryKey (std::string &key)
 DecodePrimaryKey : get keytype and id from primary key. More...
 
template<typename T >
std::string EncodeSecondaryKey (KeyTypeE keytype, T key)
 EncodeSecondaryKey : make secondary key with one variable only. More...
 
template<typename T , typename U >
std::string EncodeSecondaryKey (KeyTypeE keytype, T key1, U key2)
 EncodeSecondaryKey : make secondary key with two variables. More...
 
template<typename T , typename U , typename V >
std::string EncodeSecondaryKey (KeyTypeE keytype, T key1, U key2, V key3)
 EncodeSecondaryKey : make secondary key with three variables. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key)
 1 value More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key)
 EncodeSecondaryKey : make secondary key with std::string : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, uint64_t key2)
 2 value More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, std::string key2)
 EncodeSecondaryKey : make secondary key with two keys uint64_t , std::string : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key1, uint64_t key2)
 EncodeSecondaryKey : make secondary key with two keys std::string , uint64_t : always unique : s-u unique , s non unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key1, std::string key2)
 EncodeSecondaryKey : make secondary key with two keys std::string , std::string : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, int32_t key2)
 EncodeSecondaryKey : make secondary key with two keys uint64_t, int32_t : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, uint64_t key2, uint64_t key3)
 3 value More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, uint64_t key2, std::string key3)
 EncodeSecondaryKey : make secondary key with three keys uint64_t , uint64_t , std::string : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, std::string key2, uint64_t key3)
 EncodeSecondaryKey : make secondary key with three keys uint64_t , std::string , uint64_t : always unique : u-s-u unique , u-s non unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, uint64_t key1, std::string key2, std::string key3)
 EncodeSecondaryKey : make secondary key with three keys uint64_t , std::string , std::string : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key1, uint64_t key2, uint64_t key3)
 EncodeSecondaryKey : make secondary key with three keys std::string , uint64_t , uint64_t : s-u-u unique , s-u non unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key1, uint64_t key2, std::string key3)
 EncodeSecondaryKey : make secondary key with three keys std::string , uint64_t , std::string : always unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key1, std::string key2, uint64_t key3)
 EncodeSecondaryKey : make secondary key with three keys std::string , std::string , uint64_t : s-s-u unique , s-s non unique. More...
 
template<>
std::string EncodeSecondaryKey (KeyTypeE keytype, std::string key1, std::string key2, std::string key3)
 EncodeSecondaryKey : make secondary key with three keys std::string , std::string , std::string : always unique. More...
 

Static Public Member Functions

static pointer create (identt::utils::SharedTable::pointer stptr)
 create : static construction creates new first time More...
 
static const std::string GetSection ()
 GetSection : section required. More...
 
static const identt::utils::ServerBase::ParamsListT GetRequire ()
 GetRequire : parameters required. More...
 
- Static Public Member Functions inherited from identt::utils::ServerBase
static const std::string GetSection ()
 GetSection : section required. More...
 
static const ParamsListT GetRequire ()
 GetRequire : parameters required. More...
 

Additional Inherited Members

- Protected Member Functions inherited from identt::utils::ServerBase
 ServerBase (SharedTable::pointer sharedtable_)
 Constructor : private. More...
 
- Protected Attributes inherited from identt::utils::ServerBase
bool is_init
 
SharedTable::pointer sharedtable
 

Member Function Documentation

§ create()

static pointer identt::work::WorkServer::create ( identt::utils::SharedTable::pointer  stptr)
inlinestatic

create : static construction creates new first time

Parameters
stptridentt::utils::SharedTable::pointer stptr
Returns
none

§ GetRequire()

const identt::utils::ServerBase::ParamsListT identt::work::WorkServer::GetRequire ( )
static

GetRequire : parameters required.

Returns
ParamsListT

§ GetSection()

const std::string identt::work::WorkServer::GetSection ( )
static

GetSection : section required.

Returns
std::string section

§ init()

void identt::work::WorkServer::init ( identt::utils::ServerBase::ParamsListT  params)
virtual

init : initialize rocksdb and others

Parameters
paramsParamsListT parameters to init backend
Returns
none

Implements identt::utils::ServerBase.

§ share()

pointer identt::work::WorkServer::share ( )
inline

share : return instance

Returns
none

§ stop()

void identt::work::WorkServer::stop ( )
virtual

stop : shutdown

Returns
none

Implements identt::utils::ServerBase.


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