public class LyrebirdClient extends Object
| Constructor and Description |
|---|
LyrebirdClient(String lyrebirdRemoteAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(Method method)
Activate lyrebird mock data group by @MockData annotation
|
void |
activate(String groupID)
Activate lyrebird mock data group by group ID
|
void |
clearFlowList()
Clear all flow data
|
void |
deactivate()
Deactivate lyrebird mock data group
|
Events |
getEventList(String channel)
Get event list by channel
|
FlowDetail |
getFlowDetail(String flowId)
Get Lyrebird flow data detail
|
Flow[] |
getFlowList()
Get a set of flow data from lyrebird API
|
LBMockData |
getMockData(String dataId)
get mock data by data id
|
io.socket.client.Socket |
getSocketInstance(String lyrebirdRemoteAddress)
Get an object of socket io
|
Status |
status()
Get lyrebird services status
|
public LyrebirdClient(String lyrebirdRemoteAddress)
public Status status() throws LyrebirdClientException
LyrebirdClientExceptionpublic void activate(String groupID) throws LyrebirdClientException
groupID - LyrebirdClientExceptionpublic void activate(Method method) throws LyrebirdClientException
method - test methodLyrebirdClientExceptionpublic void deactivate()
throws LyrebirdClientException
LyrebirdClientExceptionpublic Flow[] getFlowList() throws LyrebirdClientException
LyrebirdClientExceptionpublic FlowDetail getFlowDetail(String flowId) throws LyrebirdClientException
flowId - 每条flow data都对应一个ID标识,通过ID可以查询该条数据的详细信息LyrebirdClientExceptionpublic void clearFlowList()
throws LyrebirdClientException
LyrebirdClientExceptionpublic Events getEventList(String channel) throws LyrebirdClientException
channel - channel nameLyrebirdClientExceptionpublic LBMockData getMockData(String dataId) throws LyrebirdClientException
dataId - mock data idLyrebirdClientExceptionpublic io.socket.client.Socket getSocketInstance(String lyrebirdRemoteAddress) throws URISyntaxException
lyrebirdRemoteAddress - URISyntaxExceptionCopyright © 2020. All rights reserved.