public class QMFRequester extends java.lang.Object implements Requester
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
uri |
Constructor and Description |
---|
QMFRequester(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String[] |
getAllAttributes(java.lang.String target)
returns names of all attributes for the target
|
java.util.Map<java.lang.String,java.util.List> |
getInfo(java.lang.String target)
returns a map with the info for the target
|
int |
getResponse(java.lang.String qmfCmd,
java.lang.StringBuffer strBuf,
boolean autoDisconn)
This takes a QMF query command and converts it into a QMF request.
|
java.lang.String |
getURI() |
java.lang.Object |
getValue(java.lang.String target,
java.lang.String attr)
returns the value of the attribute from the target
|
java.util.Map<java.lang.String,java.lang.Object> |
getValues(java.lang.String target,
java.lang.String[] attrs)
returns the key-value map for the attributes from the target
|
protected javax.jms.ConnectionFactory |
initialize() |
boolean |
isConnected() |
java.lang.String[] |
list(java.lang.String target)
returns names of the all objects for the given class on the server
|
java.util.List<java.util.Map> |
listAll(java.lang.String target,
java.lang.String... attrs)
returns a list of all objects for the given class on the server
|
static void |
main(java.lang.String[] args) |
java.lang.String |
reconnect()
returns null if reconnected or error msg otherwise
|
public java.lang.String[] list(java.lang.String target) throws javax.jms.JMSException
javax.jms.JMSException
public java.util.List<java.util.Map> listAll(java.lang.String target, java.lang.String... attrs) throws javax.jms.JMSException
javax.jms.JMSException
public java.util.Map<java.lang.String,java.util.List> getInfo(java.lang.String target) throws javax.jms.JMSException
javax.jms.JMSException
public java.lang.Object getValue(java.lang.String target, java.lang.String attr) throws javax.jms.JMSException
javax.jms.JMSException
public java.util.Map<java.lang.String,java.lang.Object> getValues(java.lang.String target, java.lang.String[] attrs) throws javax.jms.JMSException
javax.jms.JMSException
public int getResponse(java.lang.String qmfCmd, java.lang.StringBuffer strBuf, boolean autoDisconn) throws WrapperException
getResponse
in interface Requester
WrapperException
public java.lang.String[] getAllAttributes(java.lang.String target) throws javax.jms.JMSException
javax.jms.JMSException
protected javax.jms.ConnectionFactory initialize() throws javax.jms.JMSException
javax.jms.JMSException
public boolean isConnected()
isConnected
in interface Connector
public java.lang.String reconnect()
public static void main(java.lang.String[] args)