Package org.apache.uima.ducc.common.utils

Examples of org.apache.uima.ducc.common.utils.AlienFile


    if(userid == null) {
      data = importData();
    }
    else {
      try {
        AlienFile alienFile = new AlienFile(userid, filename, ducc_ling);
        String json = alienFile.getString();
        Type typeOfMap = new TypeToken<JobPerformanceSummaryData>() { }.getType();
        data = gson.fromJson(json, typeOfMap);
      }
      catch(Throwable t) {
        // TODO
View Full Code Here


    if(userid == null) {
      map = importData();
    }
    else {
      try {
        AlienFile alienFile = new AlienFile(userid, filename, ducc_ling);
        String json = alienFile.getString();
            Type typeOfMap = new TypeToken<ConcurrentSkipListMap<Long, WorkItemState>>() { }.getType();
        map = gson.fromJson(json, typeOfMap);
      }
      catch(Throwable t) {
        // TODO
View Full Code Here

      else {
        String ducc_ling =
            Utils.resolvePlaceholderIfExists(
                System.getProperty("ducc.agent.launcher.ducc_spawn_path"),System.getProperties());
       
        AlienFile alienFile = new AlienFile(user,fileName,ducc_ling);
        dis = alienFile.getDataInputStream();
        ois = new ObjectInputStream(new BufferedInputStream(dis));
      }
      try {
        BigInteger mod = (BigInteger) ois.readObject();
          BigInteger exp = (BigInteger) ois.readObject();
View Full Code Here

    if(user == null) {
      return getProperties(path);
    }
    StringReader sir = null;
    try {
      AlienFile alienFile = new AlienFile(user, path, ducc_ling);
      String data = alienFile.getString();
      sir = new StringReader(data);
      Properties properties = new Properties();
      properties.load(sir);
      sir.close();
      return properties;
View Full Code Here

 
  public static InputStreamReader getInputStreamReader(String path, String user) throws Throwable {
    if(user == null) {
      return getInputStreamReader(path);
    }
    AlienFile alienFile = new AlienFile(user, path, ducc_ling);
    return alienFile.getInputStreamReader();
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.common.utils.AlienFile

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.