Tabnine Logo
JmxManaged.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
de.mhus.lib.annotations.jmx.JmxManaged
constructor

Best Java code snippets using de.mhus.lib.annotations.jmx.JmxManaged.<init> (Showing top 20 results out of 315)

origin: de.mhus.lib/mhu-lib-core

@JmxManaged(descrition="Reset the counter statistic")
public void reset() {
  isClosed = false;
  cnt = 0;
  startTime = 0;
  lastTime = 0;
}

origin: de.mhus.lib/mhu-lib-core

@JmxManaged(descrition="Should the counter create and throw a RunntimeException() on next count")
public boolean isThrowExceptionOnNextCount() {
  return throwExceptionOnNextCount;
}
@JmxManaged(descrition="Should the counter create and throw a RunntimeException() on next count")
origin: de.mhus.lib/mhu-lib-core

@JmxManaged(descrition="Set the interval after it will sleeping")
public void setSleepInterval(long sleepInterval) {
  this.sleepInterval = sleepInterval;
}
@JmxManaged(descrition="Get the seconds to sleep each interval")
origin: de.mhus.lib/mhu-lib-core

@JmxManaged
public long getValue() {
  return value;
}
origin: de.mhus.lib/mhu-lib-persistence

/**
 * Cleanup the connection pool. Unused or closed connections will be removed.
 * TODO new strategy to remove unused connections - not prompt, need a timeout time or minimum pool size.
 * @param unusedAlso 
 */
@JmxManaged(descrition="Cleanup unused connections")
public abstract void cleanup(boolean unusedAlso);
origin: de.mhus.lib/mhu-lib-persistence

/**
 * Returns the persistent schema properties if supported.
 * @return The properties or null
 */
@JmxManaged(descrition="Database Properties of the Schema")
public abstract DbProperties getSchemaProperties();
origin: de.mhus.lib/mhu-lib-persistence

@JmxManaged(descrition="Unique name of the pool")
public String getPoolId() {
  return name;
}
origin: de.mhus.lib/mhu-lib-core

@JmxManaged(descrition="Get the interval")
public long getSleepInterval() {
  return sleepInterval;
}
@JmxManaged(descrition="Set the interval after it will sleeping")
origin: de.mhus.lib/mhu-lib-core

@JmxManaged(descrition="Get the seconds to sleep each interval")
public int getSleepSeconds() {
  return sleepSeconds;
}
@JmxManaged(descrition="Set the seconds to sleep each interval")
origin: de.mhus.lib/mhu-lib-persistence

/**
 * {@inheritDoc}
 *
 * Current pool size.
 */
@Override
@JmxManaged(descrition="Current size of the pool")
public int getSize() {
  synchronized (pool) {
    return pool.size();
  }
}
origin: de.mhus.lib/mhu-lib-core

@Override
@JmxManaged(descrition="Name of the watch")
public String getName() {
  return super.getName();
}

origin: de.mhus.lib/mhu-lib-persistence

@Override
@JmxManaged(descrition="Returns the table for the registry name")
public Table getTable(String registryName) {
  reloadLock.waitWithException(MAX_LOCK);
  return cIndex.get(registryName);
}
origin: de.mhus.lib/mhu-lib-core

  @JmxManaged(descrition="Resize the display, Parameters: width, height")
  public void resize(int width, int height) {
    console.resize(width, height);
  }
}
origin: de.mhus.lib/mhu-lib-core

@Override
@JmxManaged(descrition="Current status of the watch")
public String getStatusAsString() {
  return super.getStatusAsString();
}

origin: de.mhus.lib/mhu-lib-core

@Override
@JmxManaged(descrition="Currently elapsed time")
public String getCurrentTimeAsString() {
  return super.getCurrentTimeAsString();
}

origin: de.mhus.lib/mhu-lib-core

@JmxManaged
public int getCacheSize() {
  return cache.size();
}
origin: de.mhus.lib/mhu-lib-persistence

/**
 * Returns the persistent schema properties if supported.
 * @return The properties or null
 */
@Override
@JmxManaged(descrition="Database Properties of the Schema")
public DbProperties getSchemaProperties() {
  reloadLock.waitWithException(MAX_LOCK);
  return schemaPersistence;
}
origin: de.mhus.lib/mhu-lib-persistence

/** {@inheritDoc} */
@Override
@JmxManaged(descrition="Current used connections in the pool")
public int getUsedSize() {
  int cnt = 0;
  synchronized (pool) {
    for (DbConnection con : new LinkedList<DbConnection>(pool)) {
      if( con.isUsed()) cnt++;
    }
  }
  return cnt;
}
origin: de.mhus.lib/mhu-lib-persistence

@Override
@JmxManaged(descrition="Current mapping of the table and column names")
public Map<String,Object> getNameMapping() {
  reloadLock.waitWithException(MAX_LOCK);
  return nameMappingRO;
}
origin: de.mhus.lib/mhu-lib-persistence

/** {@inheritDoc} */
@Override
@JmxManaged(descrition="Return the usage of the connections")
public String dumpUsage(boolean used) {
  StringBuilder out = new StringBuilder();
  synchronized (pool) {
    for (ConnectionTrace trace : getStackTraces().values()) {
      out.append(trace.toString()).append("\n");
    }
  }
  return out.toString();
}
de.mhus.lib.annotations.jmxJmxManaged<init>

Popular methods of JmxManaged

  • descrition

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now