Examples of update()


Examples of org.wso2.carbon.statistics.services.util.SystemStatistics.update()

*/
public class SystemStatisticsUtil {

     public SystemStatistics getSystemStatistics(AxisConfiguration axisConfig) throws AxisFault{
        SystemStatistics systemStatistics = new SystemStatistics();
        systemStatistics.update(axisConfig);
        return systemStatistics;
    }

    public ServiceStatistics getServiceStatistics(AxisService axisService) throws AxisFault {
        ServiceStatistics serviceStatistics = new ServiceStatistics();
View Full Code Here

Examples of org.xBaseJ.micro.fields.Field.update()


    for (i=0; i < fldcount; i++)
    {
      tField = (Field) fld_root.elementAt(i);
      if (tField instanceof MemoField) tField.update();
      else tField.write();
    }

    for (i=1; i<= jNDXes.size(); i++)
    {
View Full Code Here

Examples of org.xBaseJ.micro.indexes.Index.update()

    }

    for (i=1; i<= jNDXes.size(); i++)
    {
      NDXes =  (Index) jNDXes.elementAt(i-1);
      NDXes.update(current_record);
    }


  }
View Full Code Here

Examples of org.xbill.DNS.utils.HMAC.update()

  if (old != null) {
    DNSOutput out = new DNSOutput();
    out.writeU16(old.getSignature().length);
    if (hmac != null) {
      hmac.update(out.toByteArray());
      hmac.update(old.getSignature());
    }
  }

  /* Digest the message */
 
View Full Code Here

Examples of org.xmlBlaster.client.protocol.I_CallbackExtended.update()

               }
               MsgUnitRaw[] arr = receiver.getMessageArr();
               if (arr == null || arr.length < 1) {
                  throw new XmlBlasterException(glob, ErrorCode.USER_UPDATE_INTERNALERROR, ME, "Invocation of " + receiver.getMethodName() + "() failed, missing arguments");
               }
               String[] response = cbClientTmp.update(receiver.getSecretSessionId(), arr);
               executeResponse(receiver, response, udp);
            }
            catch (XmlBlasterException e) {
               executeException(receiver, e, udp);
               return true;
View Full Code Here

Examples of org.xmlBlaster.contrib.db.DbPool.update()

        
         SearchableConfig searchableConfig = new SearchableConfig();
         searchableConfig.init(info);
         info.putObject(SearchableConfig.NAME, searchableConfig);
        
         pool.update("drop table table1");
         String txt = "create table table1 (first VARCHAR(100), second VARCHAR(100), third blob, fifth VARCHAR(29), primary key(first))";
         pool.update(txt);
        
         pool.update("INSERT INTO table1 (first, second, fifth) values ('oldOne', 'oldTwo', 'oldFive')");
        
View Full Code Here

Examples of org.xmlBlaster.contrib.db.I_DbPool.update()

         conn.setAutoCommit(true);
         String sql = null;
         {
            try {
               sql = "CREATE TABLE " + this.tableName + " (name VARCHAR(20), age INTEGER, PRIMARY KEY(name))";
               pool.update(sql);
               Thread.sleep(500L);
               conn = this.pool.reserve();
               Statement st = conn.createStatement();
               ResultSet rs = st.executeQuery("SELECT * from " + this.replPrefix + "items");
               assertEquals("Testing creation of table '" + this.tableName + "' checking that the operation generated an entry in " + this.replPrefix + "items", true, rs.next());
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwriter.DbWriter.update()

                  throw new Exception("The message unit for '" + file.getAbsoluteFile() + "' is null");
               if (msgUnit.getQosData() == null)
                  throw new Exception("The qos for message unit of '" + file.getAbsoluteFile() + "' is null");
               Map subMap = msgUnit.getQosData().getClientProperties();
               byte[] subContent = msgUnit.getContent();
               dbWriter.update(topic, new ByteArrayInputStream(subContent), subMap);
            }
         }
      }
   }
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwriter.info.SqlDescription.update()

                  ClientProperty oldRowProp = new ClientProperty(ReplicationConstants.OLD_CONTENT_ATTR, null, null, row.toXml("", false));
                  row.setAttribute(oldRowProp);
                  try {
                     I_Parser parser = new SqlInfoParser();
                     parser.init(this.info);
                     int ret = desc.update(conn, row, parser);
                     if (ret != 1)
                        throw new Exception("the number of updated entries is wrong '" + ret + "' but should be 1");
                  }
                  catch(Exception ex) {
                     log.info("exception when updating '" + row.toXml("") + " where description is '" + desc.toXml("") + "'");
View Full Code Here

Examples of org.xmlBlaster.contrib.filewriter.FileWriterCallback.update()

      try {
         FileWriterCallback callback = new FileWriterCallback(importLocation, tmpImportLocation, lockExtention, overwriteDumpFiles, keepDumpFiles);
         byte[] content = new byte[100000];
         File checkFile = new File("/tmp/dummy");
         checkFile.delete();
         callback.update("dummy", new ByteArrayInputStream(content), null);
         assertTrue("The file 'dummy' must exist", checkFile.exists());
      }
      catch (Exception ex) {
         ex.printStackTrace();
         assertTrue("An exception should not occur. " + ex.getMessage(), false);
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.