public class MultiSpeakService extends Object
Modifier and Type | Field and Description |
---|---|
protected MultiSpeakClient |
m_client |
protected org.apache.log4j.Logger |
m_log |
Constructor and Description |
---|
MultiSpeakService(MultiSpeakEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
MultiSpeakResult |
call(String method)
This is a convenience method for Multispeak calls with no parameters
|
MultiSpeakResult |
call(String method,
String[] params)
Call a Multispeak method with the given parameters.
|
MultiSpeakResult |
getLastResult() |
List<String> |
getMethods()
All MultiSpeak Endpoints should implement this
|
boolean |
ping()
All MultiSpeak Endpoints should implement this
|
protected org.apache.log4j.Logger m_log
protected MultiSpeakClient m_client
public MultiSpeakService(MultiSpeakEndpoint endpoint)
endpoint
- a valid MultiSpeakEndpoint - connection informationpublic MultiSpeakResult getLastResult()
public List<String> getMethods()
public boolean ping()
public MultiSpeakResult call(String method)
method
- the method to send to the MultiSpeak Servicepublic MultiSpeakResult call(String method, String[] params)
method
- the method to send to the MultiSpeak Serviceparams
- any parameters to pass, can be nullCopyright © 2021 Eau Claire Energy Cooperative. All rights reserved.