Examples of execute()


Examples of com.cxy.redisclient.integration.server.QueryDBAmount.execute()

    }
  }

  public int listDBs(int id) {
    QueryDBAmount command = new QueryDBAmount(id);
    command.execute();
    return command.getDbAmount();
  }

  public int listDBs(Server server) throws IOException {
    return listDBs(server.getId());
View Full Code Here

Examples of com.cxy.redisclient.integration.server.QueryServerProperties.execute()

    return listDBs(server.getId());
  }
 
  public Map<String, String[]> listInfo(int id) {
    QueryServerProperties command = new QueryServerProperties(id);
    command.execute();
    return command.getServerInfo();
  }
}
View Full Code Here

Examples of com.cxy.redisclient.integration.server.QueryServerVersion.execute()

    }
  }
 
  public RedisVersion listServerVersion(int id) {
    QueryServerVersion command = new QueryServerVersion(id);
    command.execute();
    return command.getVersionInfo();
  }
 
  public String pasteContainer(int sourceId, int sourceDb, String sourceContainer, int targetId, int targetDb, String targetContainer, boolean copy, boolean overwritten) {
    Set<Node> nodes = listContainerAllKeys(sourceId, sourceDb, sourceContainer);
View Full Code Here

Examples of com.cxy.redisclient.integration.set.AddSet.execute()

import com.cxy.redisclient.integration.set.RemoveSetFactory;

public class SetService {
  public long add(int id, int db, String key, Set<String> values, int ttl) {
    AddSet command = (AddSet) new AddSetFactory(id, db, key, values).getCommand();
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
View Full Code Here

Examples of com.cxy.redisclient.integration.set.ListSet.execute()

    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ListSet command = new ListSet(id, db, key);
    command.execute();
    return command.getValues();
  }
  public void remove(int id, int db, String key, Set<String> values) {
    RemoveSet command = (RemoveSet) new RemoveSetFactory(id, db, key, values).getCommand();
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.set.ListSetPage.execute()

    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
    ListSetPage command = new ListSetPage(id, db, key, start, end);
    command.execute();
    return command.getPage();
  }
}
View Full Code Here

Examples of com.cxy.redisclient.integration.set.RemoveSet.execute()

    command.execute();
    return command.getValues();
  }
  public void remove(int id, int db, String key, Set<String> values) {
    RemoveSet command = (RemoveSet) new RemoveSetFactory(id, db, key, values).getCommand();
    command.execute();
  }
 
  public List<String> getPage(int id, int db, String key, int start, int end) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.string.AddString.execute()

import com.cxy.redisclient.integration.string.UpdateString;

public class NodeService {
  public void addString(int id, int db, String key, String value, int ttl) {
    AddString command = new AddString(id, db, key ,value);
    command.execute();
    expire(id, db, key, ttl);
  }
 
  public String readString(int id, int db, String key) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
View Full Code Here

Examples of com.cxy.redisclient.integration.string.ReadString.execute()

    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ReadString command = new ReadString(id, db, key);
    command.execute();
    return command.getValue();
  }
 
  public void updateString(int id, int db, String key, String value) {
    UpdateString command = new UpdateString(id, db, key, value);
View Full Code Here

Examples of com.cxy.redisclient.integration.string.UpdateString.execute()

    return command.getValue();
  }
 
  public void updateString(int id, int db, String key, String value) {
    UpdateString command = new UpdateString(id, db, key, value);
    command.execute();
  }
  public void deleteKey(int id, int db, String key) {
    DeleteKey command = new DeleteKey(id, db, key);
    command.execute();
  }
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.