Permalink
Switch branches/tags
Commits on Jul 7, 2010
  1. mark new version

    markwkm committed Jul 7, 2010
    Increment the verserionName to 1.1 not that 1.0 has been released.
Commits on Jul 6, 2010
  1. add TODO

    markwkm committed Jul 6, 2010
  2. add README

    markwkm committed Jul 6, 2010
  3. update hello message

    markwkm committed Jul 6, 2010
    Instead of removing the default message, change it to something more
    meaningful.
  4. notes for sql injection

    markwkm committed Jul 6, 2010
    Added some FIXME notes for where to prevent SQL injection.
  5. add pg_stat_activity_display

    markwkm committed Jul 6, 2010
    Added PGStatActivity Activity class to show some of the stats from the
    pg_stat_activity table such as: number of idle transaction, number of
    idle connections, and the current longest running SQL statement.
    
    Also added a ScrollView to the layout since the new buttons were not
    fitting into the fixed screen size.
  6. add bgwriter stats display

    markwkm committed Jul 5, 2010
    Create PGStatBgwriter Activity class to display background writer
    statistics.
    
    Moved some enums into the PGTop class and changed the main layout back
    to a linear layout to have multiple buttons to display different
    statistics.
Commits on Jul 5, 2010
  1. add basic menus

    markwkm committed Jul 5, 2010
    Add a menu on the main layout to exit the app.  Added a menu on the
    display of database statistics to stop monitoring and return to the main
    layout.
  2. display all pg_stat_database stats

    markwkm committed Jul 5, 2010
    Display all the stats from pg_stat_database for a particular database.  Also
    converts the blocks read and hit into number of bytes as well as database
    blocks.
  3. rename StatDisplay to PGStatDatabase

    markwkm committed Jul 5, 2010
    Renamed the class to more closely resemble the new intended purpose of
    only display database statistics from the pg_stat_database table, and
    the associated layout XML.
  4. comments

    markwkm committed Jul 5, 2010
    Added code comments.
  5. rename variables

    markwkm committed Jul 5, 2010
    Name variables to more closely represent the environment variable names
    that psql uses.
  6. hard coded refresh

    markwkm committed Jul 5, 2010
    Hard coded a 2 second refresh rate for the database statistics
    displayed.  Hopefully handled onResume(), onPause(), onStop(), and
    onDestroy() properly.  Used 3 values for the enum on handling what the
    state of execution is, but because of the limited nature of the Thread
    class implemented in Dalvik virtual machine and if I understand things
    correctly, this probably only needs to be a boolean value.
  7. separate layouts

    markwkm committed Jul 5, 2010
    Separate layouts for the database connection information and the database
    statistics into two different activity classes.
Commits on Jul 4, 2010
  1. use TableLayout

    markwkm committed Jul 4, 2010
    Use a TableLayout for the connection information and mask the password
    field.
Commits on Jul 3, 2010
  1. start monitoring OnClickListener

    markwkm committed Jul 3, 2010
    Implement the OnClickListener for starting the database monitoring as
    part of the activity class.  This is supposed to avoid an extra class
    load and object allocation.
  2. handle errors partial

    markwkm committed Jul 3, 2010
    When an exception is thrown, display it to the screen with the Toast
    class and show the 'main' layout again.  Unfortunately the app doesn't
    try to connect again.
  3. display database connections

    markwkm committed Jul 3, 2010
    Query the pg_stat_database table for the number of connections to this
    paritcular database, as opposed to all connections to this instance of
    PostgreSQL.
  4. BSD license

    markwkm committed Jul 3, 2010
    Added BSD license, which was intended to be added in the original
    commit.
  5. postgresql connection

    markwkm committed Jul 3, 2010
    Open and close a PostgreSQL database connection when the "Start Monitoring"
    button is pressed.
  6. enable network access

    markwkm committed Jul 3, 2010
  7. git ignore file

    markwkm committed Jul 3, 2010
    Ignore Java .class files.
  8. add button listener

    markwkm committed Jul 3, 2010
    Added a listener for the click of the "Start Monitoring" button.  This
    button then closes the app.
  9. default screen

    markwkm committed Jul 3, 2010
    Add EditText fields to the default screen for login information to a
    PostgreSQL database.
  10. Initial commit

    markwkm committed Jul 3, 2010
    Initial files created from new Android Project from Eclipse 3.5.2 for
    the PGTop project