Examples of QueryKeyData


Examples of org.xmlBlaster.util.key.QueryKeyData

    * @param queryString  The String with e.g. XPath syntax
    * @param queryType    The query syntax, e.g. Constants.XPATH
    * @param XmlBlasterException for invalid queryType
    */
   public SubscribeKey(Global glob, String queryString, String queryType) throws XmlBlasterException {
      this.queryKeyData = new QueryKeyData(glob, queryString, queryType);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    *        For example a topic oid like "Hello" or "oid:Hello"
    *        or a query like "xpath://key", "domain:CLUSTER"
    *        or an explicit "subscriptionId:__subId:heron-34560459046"
    */
   public UnSubscribeKey(Global glob, String query) {
      this.queryKeyData = new QueryKeyData(glob, query);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    * @param queryString  The String with e.g. XPath syntax
    * @param queryType    The query syntax, e.g. Constants.XPATH
    * @param XmlBlasterException for invalid queryType
    */
   public UnSubscribeKey(Global glob, String queryString, String queryType) throws XmlBlasterException {
      this.queryKeyData = new QueryKeyData(glob, queryString, queryType);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    * @param query The query string
    *        For example a topic oid like "Hello" or "oid:Hello"
    *        or a query like "xpath://key", "domain:CLUSTER")
    */
   public EraseKey(Global glob, String query) {
      this.queryKeyData = new QueryKeyData(glob, query);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    * @param queryString  The String with e.g. XPath syntax
    * @param queryType    The query syntax, e.g. Constants.XPATH
    * @param XmlBlasterException for invalid queryType
    */
   public EraseKey(Global glob, String queryString, String queryType) throws XmlBlasterException {
      this.queryKeyData = new QueryKeyData(glob, queryString, queryType);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    * @param query The query string
    *        For example a topic oid like "Hello" or "oid:Hello"
    *        or a query like "xpath://key", "domain:CLUSTER")
    */
   public GetKey(Global glob, String query) {
      this.queryKeyData = new QueryKeyData(glob, query);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    * @param queryString  The String with e.g. XPath syntax
    * @param queryType    The query syntax, e.g. Constants.XPATH
    * @param XmlBlasterException for invalid queryType
    */
   public GetKey(Global glob, String queryString, String queryType) throws XmlBlasterException {
      this.queryKeyData = new QueryKeyData(glob, queryString, queryType);
   }
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

         lastCommand = "";

         if (log.isLoggable(Level.FINE)) log.fine("Invoking cmdType=" + cmdType + " query=" + query + " from '" + cmd + "'");

         if (cmdType.equalsIgnoreCase("GET")) {
            QueryKeyData keyData = new QueryKeyData(this.glob);
            keyData.setOid("__cmd:" + query);
            MsgUnit[] msgs = commandManager.get(this.addressServer, sessionId, keyData, null);
            if (msgs.length == 0) return "NO ENTRY FOUND: " + cmd + CRLF;
            StringBuffer sb = new StringBuffer(msgs.length * 40);
            for (int ii=0; ii<msgs.length; ii++) {
               MsgUnit msg = msgs[ii];
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

         // !!! Transfer MIB command to internal command !!!!
         // e.g. query="/node/heron/?freeMem"
         // String query = cmd; // TODO mapping

         QueryKeyData query = new QueryKeyData(this.glob);
         query.setOid("__cmd:" + cmd);
         if (log.isLoggable(Level.FINE)) log.fine("Invoking SNMP cmd=" + cmd + " as query=" + query.toXml());

         AddressServer addressServer = null; // TODO !!!
         MsgUnit[] msgs = manager.get(addressServer, sessionId, query, null);
         if (msgs.length == 0)
            return "NOT FOUND";
View Full Code Here

Examples of org.xmlBlaster.util.key.QueryKeyData

    */
   public final String update(SessionInfo sessionInfo, UpdateKey updateKey, byte[] content, MsgQosData msgQosData) throws XmlBlasterException
   {
      if (msgQosData.isErased()) {
         String eraseKey = msgQosData.getClientProperty("__eraseKey", updateKey.toXml());
         QueryKeyData key = glob.getQueryKeyFactory().readObject(eraseKey);
         String eraseQos = msgQosData.getClientProperty("__eraseQos", "<qos/>");
         EraseQosServer qos = new EraseQosServer(glob, eraseQos);
         String[] ret = erase(sessionInfo, key, qos, true);
         if (ret != null && ret.length > 0)
            return ret[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.