public class PCFRequester extends java.lang.Object implements Requester
Constructor and Description |
---|
PCFRequester(java.util.Map props)
Creates new PCFRequester
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
display(XQueue xq)
It listens to an XQueue for incoming JMS messages and extracts the PCF
request from each message.
|
static java.lang.String |
getCategory(java.lang.String cmd)
returns the category of the target in the PCF command
|
static int |
getCategoryID(java.lang.String category)
returns the id of the category in the PCF command
|
int |
getResponse(java.lang.String pcfCmd,
java.lang.StringBuffer strBuf,
boolean autoDisconn)
This sends a request to the destination and returns the number of items
filled in the given string buffer.
|
static java.lang.String |
getTarget(java.lang.String cmd)
returns the name of the target in the PCF command
|
static java.lang.String |
getType(java.lang.String cmd)
returns the type of the target in the PCF command
|
static int |
getTypeID(int cid,
java.lang.String type)
returns the type id of the target in the PCF command
|
java.lang.String |
getURI() |
boolean |
isConnected() |
static void |
main(java.lang.String[] args) |
java.lang.String |
reconnect()
reconnects and returns null upon success or error msg otherwise
|
public java.lang.String reconnect()
public void display(XQueue xq) throws javax.management.JMException, TimeoutException
javax.management.JMException
TimeoutException
public int getResponse(java.lang.String pcfCmd, java.lang.StringBuffer strBuf, boolean autoDisconn) throws WrapperException
getResponse
in interface Requester
WrapperException
public static int getTypeID(int cid, java.lang.String type)
public static java.lang.String getType(java.lang.String cmd)
public static int getCategoryID(java.lang.String category)
public static java.lang.String getCategory(java.lang.String cmd)
public static java.lang.String getTarget(java.lang.String cmd)
public boolean isConnected()
isConnected
in interface Connector
public static void main(java.lang.String[] args)