Package com.ibm.commons.util.profiler

Examples of com.ibm.commons.util.profiler.ProfilerAggregator


    public AccessToken acquireToken(boolean login) throws OAuthException {
        return acquireToken(login, false);
    }
    public AccessToken acquireToken(boolean login, boolean force) throws OAuthException {
        if (Profiler.isEnabled()) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerAcquireToken, "");
            long ts = Profiler.getCurrentTime();
            try {
                return _acquireToken(login, force);
            } finally {
                Profiler.endProfileBlock(agg, ts);
View Full Code Here


        return null;
    }
   
    protected AccessToken findTokenFromStore(Context context, String userId) throws OAuthException {
        if (Profiler.isEnabled()) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerLoadCredentialStore, "");
            long ts = Profiler.getCurrentTime();
            try {
                return _findTokenFromStore(context, userId);
            } finally {
                Profiler.endProfileBlock(agg, ts);
View Full Code Here

    //  Delete token
    // ==========================================================
   
    public void deleteToken() throws OAuthException {
        if (Profiler.isEnabled()) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerDeleteToken, "");
            long ts = Profiler.getCurrentTime();
            try {
                _deleteToken(Context.get(), null);
            } finally {
                Profiler.endProfileBlock(agg, ts);
View Full Code Here

        return renewToken(null);
    }

    public AccessToken renewToken(AccessToken token) throws OAuthException {
        if (Profiler.isEnabled()) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerRenewToken, "");
            long ts = Profiler.getCurrentTime();
            try {
                return _renewToken(token);
            } finally {
                Profiler.endProfileBlock(agg, ts);
View Full Code Here

    return acquireToken(login, false);
  }

  public AccessToken acquireToken(boolean login, boolean force) throws OAuthException {
    if (Profiler.isEnabled()) {
      ProfilerAggregator agg = Profiler.startProfileBlock(profilerAcquireToken, "");
      long ts = Profiler.getCurrentTime();
      try {
        return _acquireToken(login, force);
      } finally {
        Profiler.endProfileBlock(agg, ts);
View Full Code Here

   * Request a temporary token for the application and redirect to a callback
   * page.
   */
  public synchronized void performOAuth1Dance() throws OAuthException {
    if (Profiler.isEnabled()) {
      ProfilerAggregator agg = Profiler.startProfileBlock(
          profilerReadTempToken, "");
      long ts = Profiler.getCurrentTime();
      try {
        _performOAuth1Dance();
      } finally {
View Full Code Here

        + extraInfo.toString());
  }

  protected AccessToken findTokenFromStore(Context context, String userId) throws OAuthException {
    if (Profiler.isEnabled()) {
      ProfilerAggregator agg = Profiler.startProfileBlock(profilerLoadCredentialStore, "");
      long ts = Profiler.getCurrentTime();
      try {
        return _findTokenFromStore(context, userId);
      } finally {
        Profiler.endProfileBlock(agg, ts);
View Full Code Here

    return renewToken(null);
  }

  public AccessToken renewToken(AccessToken token) throws OAuthException {
    if (Profiler.isEnabled()) {
      ProfilerAggregator agg = Profiler.startProfileBlock(profilerRenewToken, "");
      long ts = Profiler.getCurrentTime();
      try {
        return _renewToken(token);
      } finally {
        Profiler.endProfileBlock(agg, ts);
View Full Code Here

  // Delete the token
  // ==========================================================

  public void deleteToken() throws OAuthException {
    if (Profiler.isEnabled()) {
      ProfilerAggregator agg = Profiler.startProfileBlock(profilerDeleteToken, "");
      long ts = Profiler.getCurrentTime();
      try {
        _deleteToken(Context.get(), null);
      } finally {
        Profiler.endProfileBlock(agg, ts);
View Full Code Here

   * Read the OAuth token from the verifier.
   */
  public AccessToken readToken(String token, String verifier)
  throws OAuthException {
    if (Profiler.isEnabled()) {
      ProfilerAggregator agg = Profiler.startProfileBlock(
          profilerReadToken, "");
      long ts = Profiler.getCurrentTime();
      try {
        return _readToken(token, verifier);
      } finally {
View Full Code Here

TOP

Related Classes of com.ibm.commons.util.profiler.ProfilerAggregator

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.