Codota Logo
Configure.getPropertyFile
Code IndexAdd Codota to your IDE (free)

How to use
getPropertyFile
method
in
scouter.agent.Configure

Best Java code snippets using scouter.agent.Configure.getPropertyFile (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: scouter-project/scouter

public boolean saveText(String text) {
  File file = getPropertyFile();
  OutputStream out = null;
  try {
    if (file.getParentFile().exists() == false) {
      file.getParentFile().mkdirs();
    }
    out = new FileOutputStream(file);
    out.write(text.getBytes());
    return true;
  } catch (Exception e) {
  } finally {
    FileUtil.close(out);
  }
  return false;
}
origin: scouter-project/scouter

public boolean saveText(String text) {
  File file = getPropertyFile();
  OutputStream out = null;
  try {
    if (file.getParentFile().exists() == false) {
      file.getParentFile().mkdirs();
    }
    out = new FileOutputStream(file);
    out.write(text.getBytes());
    return true;
  } catch (Exception e) {
  } finally {
    FileUtil.close(out);
  }
  return false;
}
origin: scouter-project/scouter

public boolean saveText(String text) {
  File file = getPropertyFile();
  OutputStream out = null;
  try {
    if (file.getParentFile().exists() == false) {
      file.getParentFile().mkdirs();
    }
    out = new FileOutputStream(file);
    out.write(text.getBytes());
    return true;
  } catch (Exception e) {
  } finally {
    FileUtil.close(out);
  }
  return false;
}
origin: scouter-project/scouter

public String loadText() {
  File file = getPropertyFile();
  InputStream fin = null;
  try {
    fin = new FileInputStream(file);
    byte[] buff = FileUtil.readAll(fin);
    return new String(buff);
  } catch (Exception e) {
  } finally {
    FileUtil.close(fin);
  }
  return null;
}
origin: scouter-project/scouter

public String loadText() {
  File file = getPropertyFile();
  InputStream fin = null;
  try {
    fin = new FileInputStream(file);
    byte[] buff = FileUtil.readAll(fin);
    return new String(buff);
  } catch (Exception e) {
  } finally {
    FileUtil.close(fin);
  }
  return null;
}
origin: scouter-project/scouter

public String loadText() {
  File file = getPropertyFile();
  InputStream fin = null;
  try {
    fin = new FileInputStream(file);
    byte[] buff = FileUtil.readAll(fin);
    return new String(buff);
  } catch (Exception e) {
  } finally {
    FileUtil.close(fin);
  }
  return null;
}
origin: scouter-project/scouter

public synchronized boolean reload(boolean force) {
  long now = System.currentTimeMillis();
  if (force == false && now < last_check + 3000)
    return false;
  last_check = now;
  File file = getPropertyFile();
  if (file.lastModified() == last_load_time) {
    return false;
  }
  last_load_time = file.lastModified();
  Properties temp = new Properties();
  if (file.canRead()) {
    FileInputStream in = null;
    try {
      in = new FileInputStream(file);
      temp.load(in);
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      FileUtil.close(in);
    }
  }
  property = ConfigValueUtil.replaceSysProp(temp);
  apply();
  ConfObserver.run();
  return true;
}
origin: scouter-project/scouter

public synchronized boolean reload(boolean force) {
  long now = System.currentTimeMillis();
  if (force == false && now < last_check + 3000)
    return false;
  last_check = now;
  File file = getPropertyFile();
  if (file.lastModified() == last_load_time) {
    return false;
  }
  last_load_time = file.lastModified();
  Properties temp = new Properties();
  if (file.canRead()) {
    FileInputStream in = null;
    try {
      in = new FileInputStream(file);
      temp.load(in);
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      FileUtil.close(in);
    }
  }
  property = ConfigValueUtil.replaceSysProp(temp);
  apply();
  ConfObserver.run();
  return true;
}
origin: scouter-project/scouter

public synchronized boolean reload(boolean force) {
  long now = System.currentTimeMillis();
  if (force == false && now < last_check + 3000)
    return false;
  last_check = now;
  File file = getPropertyFile();
  if (file.lastModified() == last_load_time) {
    return false;
  }
  last_load_time = file.lastModified();
  Properties temp = new Properties();
  if (file.canRead()) {
    FileInputStream in = null;
    try {
      in = new FileInputStream(file);
      temp.load(in);
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      FileUtil.close(in);
    }
  }
  property = ConfigValueUtil.replaceSysProp(temp);
  apply();
  ConfObserver.run();
  return true;
}
origin: scouter-project/scouter

private void load() {
  File dir = conf.getPropertyFile().getParentFile();
  String filename = conf.trace_delayed_service_mgr_filename;
  File file = new File(dir, filename);
origin: scouter-project/scouter

private void load() {
  File dir = conf.getPropertyFile().getParentFile();
  String filename = conf.trace_delayed_service_mgr_filename;
  File file = new File(dir, filename);
origin: io.github.scouter-project/scouter-agent-java

public boolean saveText(String text) {
  File file = getPropertyFile();
  OutputStream out = null;
  try {
    if (file.getParentFile().exists() == false) {
      file.getParentFile().mkdirs();
    }
    out = new FileOutputStream(file);
    out.write(text.getBytes());
    return true;
  } catch (Exception e) {
  } finally {
    FileUtil.close(out);
  }
  return false;
}
origin: io.github.scouter-project/scouter-agent-java

public String loadText() {
  File file = getPropertyFile();
  InputStream fin = null;
  try {
    fin = new FileInputStream(file);
    byte[] buff = FileUtil.readAll(fin);
    return new String(buff);
  } catch (Exception e) {
  } finally {
    FileUtil.close(fin);
  }
  return null;
}
origin: io.github.scouter-project/scouter-agent-java

public synchronized boolean reload(boolean force) {
  long now = System.currentTimeMillis();
  if (force == false && now < last_check + 3000)
    return false;
  last_check = now;
  File file = getPropertyFile();
  if (file.lastModified() == last_load_time) {
    return false;
  }
  last_load_time = file.lastModified();
  Properties temp = new Properties();
  if (file.canRead()) {
    FileInputStream in = null;
    try {
      in = new FileInputStream(file);
      temp.load(in);
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      FileUtil.close(in);
    }
  }
  property = ConfigValueUtil.replaceSysProp(temp);
  apply();
  ConfObserver.run();
  return true;
}
origin: io.github.scouter-project/scouter-agent-java

private void load() {
  File dir = conf.getPropertyFile().getParentFile();
  String filename = conf.trace_delayed_service_mgr_filename;
  File file = new File(dir, filename);
scouter.agentConfiguregetPropertyFile

Popular methods of Configure

  • <init>
  • apply
  • getBoolean
  • getConfigureDesc
  • getConfigureValueType
  • getInstance
  • getInt
  • getKeyValueInfo
  • getLong
  • getObjDetectedType
  • getObjHash
  • getObjName
  • getObjHash,
  • getObjName,
  • getStringSet,
  • getValue,
  • loadText,
  • printConfig,
  • reload,
  • resetObjInfo,
  • saveText

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now