(PECL mongo >=1.3.0)
MongoClient::getHosts — 锟斤拷锟斤拷锟斤拷锟叫癸拷锟斤拷锟斤拷锟斤拷锟斤拷状态锟斤拷息
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:
锟剿凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟接碉拷锟斤拷锟斤拷锟斤拷时锟斤拷锟矫★拷 锟斤拷锟斤拷锟斤拷锟剿硷拷群锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷状态锟斤拷锟斤拷锟矫伙拷懈锟斤拷锟斤拷锟斤拷锟斤拷锟街伙拷锟斤拷锟揭伙拷锟皆拷氐锟斤拷锟斤拷椋拷锟斤拷锟斤拷愕鼻帮拷锟斤拷拥锟斤拷锟斤拷锟斤拷锟�
锟轿硷拷锟街诧拷锟斤拷锟斤拷询一锟斤拷锟斤拷锟节分诧拷式锟斤拷询锟斤拷锟捷节碉拷锟斤拷锟较拷锟�
锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷
锟斤拷锟截硷拷群锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷息锟斤拷锟介。 锟斤拷锟斤拷锟斤拷每锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥斤拷锟斤拷锟教度o拷1 锟角很斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷状态锟斤拷1 锟角伙拷跃锟节点,2 锟角憋拷锟矫节点,0 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷ping 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟绞憋拷洌拷约锟斤拷锟斤拷一锟斤拷 ping 锟斤拷时锟戒。 锟斤拷锟界,锟节撅拷锟斤拷锟斤拷锟斤拷锟斤拷员锟侥硷拷群锟叫o拷锟斤拷锟斤拷锟斤拷去锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥o拷
array(3) { ["A:27017"]=> array(4) { ["host"]=> "A" ["port"]=> 27017 ["health"]=> int(1) ["state"]=> int(2) ["ping"]=> int(369) ["lastPing"]=> int(1309470644) } ["B:27017"]=> array(4) { ["host"]=> "B" ["port"]=> 27017 ["health"]=> int(1) ["state"]=> int(1) ["ping"]=> int(139) ["lastPing"]=> int(1309470644) } ["C:27017"]=> array(4) { ["host"]=> "C" ["port"]=> 27017 ["health"]=> int(1) ["state"]=> int(2) ["ping"]=> int(1012) ["lastPing"]=> int(1309470644) } }
锟芥本 | 说锟斤拷 |
---|---|
1.2.10 |
锟皆非硷拷群锟斤拷支锟街★拷 锟斤拷锟截碉拷锟斤拷锟斤拷元锟斤拷锟斤拷锟斤拷也锟斤拷锟斤拷锟斤拷 hostname 锟斤拷 port锟斤拷 |