Examples of Properties


Examples of com.swiftmq.amqp.v100.generated.messaging.message_format.Properties

        Consumer c = s.createConsumer(consumerSource, CONSUMER_LINK_CREDIT, QoS.AT_LEAST_ONCE, false, null);
        Producer p = s.createProducer(producerTarget, QoS.AT_LEAST_ONCE);
        AMQPMessage msg = msg();
        AmqpValue sentinel = new AmqpValue(new AMQPDouble(Math.random()));
        msg.setAmqpValue(sentinel);
        Properties props = new Properties();
        props.setSubject(new AMQPString(routingKey));
        msg.setProperties(props);
        p.send(msg);

        if (succeed) {
            AMQPMessage m = c.receive();
View Full Code Here

Examples of com.zaranux.client.java.util.Properties

 
  private void listProperties(String absolutePath, final AsyncCallback<Boolean> callback)
  {
    FileInputStream fis = new FileInputStream(absolutePath);
   
    final Properties properties = new Properties();
    properties.load(fis, new AsyncCallback<Boolean>()
        {
        public void onSuccess(Boolean b)
        {
          properties.list(System.out, callback);
        }
        public void onFailure(Throwable t)
        {
          callback.onFailure(t);
        }
View Full Code Here

Examples of com.zenesis.qx.remote.annotations.Properties

    methodsCompiler.removeSuperTypeMethods();
   
    // Load properties
    HashMap<String, ProxyEvent> events = new HashMap<String, ProxyEvent>();
    HashMap<String, ProxyProperty> properties = new HashMap<String, ProxyProperty>();
    Properties annoProperties = (Properties)clazz.getAnnotation(Properties.class);
    if (annoProperties != null) {
      for (Property anno : annoProperties.value()) {
        ProxyProperty property = new ProxyPropertyImpl(clazz, anno.value(), anno, annoProperties);
        properties.put(property.getName(), property);
        ProxyEvent event = property.getEvent();
        if (event != null)
          events.put(event.getName(), event);
View Full Code Here

Examples of edu.ucla.sspace.util.Properties

    /**
     * Creates a new generator using the system properties.
     */
    public StreamingKMeans() {
        this(new Properties());
    }
View Full Code Here

Examples of eu.isas.peptideshaker.utils.Properties

        experiment.addAnalysisSet(sample, analysisSet);

        // Set the project details
        projectDetails = new ProjectDetails();
        projectDetails.setCreationDate(new Date());
        projectDetails.setPeptideShakerVersion(new Properties().getVersion());

        // Get the search parameters
        searchParameters = cliInputBean.getIdentificationParameters();
        String error = PeptideShaker.loadModifications(searchParameters);
        if (error != null) {
View Full Code Here

Examples of fr.dyade.aaa.common.stream.Properties

  public void setProperty(String name, Object value) {
    if (name == null || name.equals(""))
      throw new IllegalArgumentException("Invalid property name: " + name);
   
    if (properties == null)
      properties = new Properties();
   
    if (value instanceof Boolean || value instanceof Number || value instanceof String) {
      properties.put(name, value);
    } else {
      properties.put(name, value.toString());
View Full Code Here

Examples of it.freedomotic.model.object.Properties

public class PropertiesConverter
        implements Converter {

    @Override
    public void marshal(Object o, HierarchicalStreamWriter writer, MarshallingContext mc) {
        Properties rea = (Properties) o;

        for (String name : rea.stringPropertyNames()) {
            writer.startNode("property");
            writer.addAttribute("name", name);
            writer.addAttribute("value",
                    rea.getProperty(name));
            writer.endNode();
        }
    }
View Full Code Here

Examples of it.unimi.dsi.util.Properties

    //    new int[] { 0, 1 }
    //  );
    //map.defaultReturnValue( 2 );
    //DispatchingStrategy strategy = new StringBasedDispatchingStrategy( MetadataKeys.MIMETYPE, map  );
   
    Properties p = new Properties();
    p.addProperty( MetadataKeys.FIELDNAME.name().toLowerCase(), "text,title" );
    p.addProperty( MetadataKeys.KEY.name().toLowerCase(), PropertyBasedDocumentFactory.MetadataKeys.MIMETYPE.name() );
    p.addProperty( MetadataKeys.RULE.name().toLowerCase(), "application/pdf:it.unimi.dsi.mg4j.document.PdfDocumentFactory,text/html:it.unimi.dsi.mg4j.document.HtmlDocumentFactory,?:it.unimi.dsi.mg4j.document.IdentityDocumentFactory" );
    p.addProperty( MetadataKeys.MAP.name().toLowerCase(), "0:-1,0:1,0:-1" );
    p.addProperty( MetadataKeys.MAP.name().toLowerCase(), "0:-1,0:1,0:-1" );
    p.addProperty( MetadataKeys.MAP.name().toLowerCase(), "0:-1,0:1,0:-1" );
    p.addProperty( PropertyBasedDocumentFactory.MetadataKeys.ENCODING.name().toLowerCase(), "iso-8859-1" );
   
    DispatchingDocumentFactory factory = new DispatchingDocumentFactory( p );
    DocumentCollection dc = new FileSetDocumentCollection( arg, factory );
    BinIO.storeObject( dc, "test.collection" );
  }
View Full Code Here

Examples of jade.util.leap.Properties

              if(myLogger.isLoggable(Logger.INFO))
                myLogger.log(Logger.INFO,"Received a CREATE_MEDIATOR request from "+ addr + ":" + port);
             
              // Starts a new Mediator and sends back its ID
              String s = new String(pkt.getData());
              Properties p = FrontEndStub.parseCreateMediatorRequest(s);

              // If the platform-name is specified refuse the request: JICPServer does not accept this kind of mediator creation request
              String pn = p.getProperty(Profile.PLATFORM_ID);
              if (pn != null) {
                myLogger.log(Logger.WARNING, "CREATE_MEDIATOR request with specified platform-name: "+pn);
                reply = new JICPPacket(JICPProtocol.NOT_AUTHORIZED_ERROR, new JADESecurityException("Platform-name specified"));
                break;
              }

              // If there is a PDPContextManager add the PDP context properties
              if (myPDPContextManager != null) {
                try{
                  //FIXME: Get username and password specified among the CREATE_MEDIATOR properties
                  Properties pdpContextInfo = myPDPContextManager.getPDPContextInfo(addr, p.getProperty(Profile.OWNER));
                  myLogger.log(Logger.FINE, "PDPContext properties = "+pdpContextInfo);
                  mergeProperties(p, pdpContextInfo);
                }catch(JADESecurityException jse){
                  if(myLogger.isLoggable(Logger.WARNING))
                    myLogger.log(Logger.WARNING,"CREATE_MEDIATOR request from non authorized address: "+addr);
View Full Code Here

Examples of java.util.Properties

  public DefaultSettings(Properties prop) {
    mProperties = prop;
  }
 
  public DefaultSettings() {
    mProperties = new Properties();
    File settingsFile = new File(FILENAME);
    if (settingsFile.canRead() && !TVBrowser.isTransportable()) {
      StreamUtilities.inputStreamIgnoringExceptions(settingsFile,
          new InputStreamProcessor() {
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.