Package org.xmlBlaster.util.qos

Examples of org.xmlBlaster.util.qos.ClientProperty


               if (sessionInfo != null) {
                  clientProperties = sessionInfo.getRemotePropertyArr();
                  ArrayList list = new ArrayList();
                  for (int i=0; i<clientProperties.length; i++)
                    list.add(clientProperties[i]);
                  list.add(new ClientProperty("_DispatchStatistic",
                      Constants.TYPE_STRING,
                      Constants.ENCODING_NONE,
                      dispatchManager.getDispatchStatistic().toXml("")));
                  clientProperties = (ClientProperty[])list.toArray(new ClientProperty[list.size()]);
               }
View Full Code Here


               if (sessionInfo != null) {
                  clientProperties = sessionInfo.getRemotePropertyArr();
                  ArrayList list = new ArrayList();
                  for (int i = 0; i < clientProperties.length; i++)
                     list.add(clientProperties[i]);
                  list.add(new ClientProperty("_DispatchStatistic", Constants.TYPE_STRING, Constants.ENCODING_NONE,
                        ((XmlBlasterAccess) connection).getDispatchStatistic().toXml("")));
                  clientProperties = (ClientProperty[]) list.toArray(new ClientProperty[list.size()]);
               }
            }
            sendMessage(summary, description, eventType, errorCode, sessionName, clientProperties);
View Full Code Here

     * Helper method to retrieve a particular client property. If the property has not
     * been found in the map, then a NULL_OBJECT symbol is returned. The type of this
     * object is not determined here. It is handled syntactically in the parser.
     */
    private Symbol symbolFromProperty(String propertyName) {
       ClientProperty clientProperty = null;
       if (properties != null) clientProperty = (ClientProperty)properties.get(propertyName);
       if (clientProperty == null) {
          return symbol(Sql92Symbols.NULL_OBJECT, null);
       }  
       String str = clientProperty.getStringValue();
       if (log.isLoggable(Level.FINE)) this.logBuffer.append(propertyName).append("(").append(str).append(")");
       if (clientProperty.isStringType()) {
          return symbol(Sql92Symbols.STRING, str);
       }
       return symbol(Sql92Symbols.NUMBER, new Double(str));
    }
View Full Code Here

      if (obj instanceof Long) return ((Long)obj).longValue();
      throw new XBException(ME + ".getLongProperty('" + key + "') is illegal since of type '" + obj.getClass().getName() + "'", ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
   }

   public Object getObjectProperty(String key) throws JMSException {
      ClientProperty prop = (ClientProperty)this.props.get(addToKeyAndCheck(key));
      if (prop == null)
         return null;
      return prop.getObjectValue();
   }
View Full Code Here

  
   public void setBooleanProperty(String key, boolean value)
      throws JMSException {
      key = addToKeyAndCheck(key);
      checkPropertiesReadOnly("setBooleanProperty", key);
      this.props.put(key, new ClientProperty(key, Constants.TYPE_BOOLEAN, null, "" + value));  
   }
View Full Code Here

   }

   public void setByteProperty(String key, byte value) throws JMSException {
      key = addToKeyAndCheck(key);
      checkPropertiesReadOnly("setByteProperty", key);
      this.props.put(key, new ClientProperty(key, Constants.TYPE_BYTE, null, "" + value));  
   }
View Full Code Here

   public void setDoubleProperty(String key, double value)
      throws JMSException {
      key = addToKeyAndCheck(key);
      checkPropertiesReadOnly("setDoubleProperty", key);
      this.props.put(key, new ClientProperty(key, Constants.TYPE_DOUBLE, null, "" + value));  
   }
View Full Code Here

   }

   public void setFloatProperty(String key, float value) throws JMSException {
      key = addToKeyAndCheck(key);
      checkPropertiesReadOnly("setFloatProperty", key);
      this.props.put(key, new ClientProperty(key, Constants.TYPE_FLOAT, null, "" + value));  
   }
View Full Code Here

   }

   public void setIntProperty(String key, int value) throws JMSException {
      key = addToKeyAndCheck(key);
      checkPropertiesReadOnly("setIntProperty", key);
      this.props.put(key, new ClientProperty(key, Constants.TYPE_INT, null, "" + value));  
   }
View Full Code Here

   }

   public void setLongProperty(String key, long value) throws JMSException {
      key = addToKeyAndCheck(key);
      checkPropertiesReadOnly("setLongProperty", key);
      this.props.put(key, new ClientProperty(key, Constants.TYPE_LONG, null, "" + value));
   }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.qos.ClientProperty

Copyright © 2018 www.massapicom. 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.