com.neeve.tools
Class TransactionLogTool

java.lang.Object
  extended by com.neeve.tools.TransactionLogTool

public class TransactionLogTool
extends Object

Interactive tool that enables a user to interactively browse and query RogLog logs.

This tool allows the user to switch between two operation modes, browse mode and query mode. In browse mode the user can interact with a single log file and browse its contents. In query mode the user can execute queries against all of the currently open logs. The user can switch back and forth between the two modes using the 'switch' command.


Nested Class Summary
 class TransactionLogTool.Archive
           
 class TransactionLogTool.Close
           
 class TransactionLogTool.Compact
           
 class TransactionLogTool.Compare
           
 class TransactionLogTool.Consume
           
 class TransactionLogTool.Count
           
 class TransactionLogTool.Create
           
 class TransactionLogTool.Describe
           
 class TransactionLogTool.Diag
           
 class TransactionLogTool.Drop
           
 class TransactionLogTool.Dump
           
 class TransactionLogTool.Factories
           
 class TransactionLogTool.Factory
           
static class TransactionLogTool.FullscanThresholdParser
           
 class TransactionLogTool.ListCommand
           
 class TransactionLogTool.LogMetadata
           
 class TransactionLogTool.Next
           
 class TransactionLogTool.NextTransaction
           
 class TransactionLogTool.Open
           
 class TransactionLogTool.PktDiag
           
 class TransactionLogTool.Rewind
           
 class TransactionLogTool.Rewrite
           
 class TransactionLogTool.Schema
           
 class TransactionLogTool.Select
           
 class TransactionLogTool.Skip
           
 class TransactionLogTool.SkipTransaction
           
 class TransactionLogTool.Stats
           
 class TransactionLogTool.Switch
           
 class TransactionLogTool.Tail
           
 
Constructor Summary
TransactionLogTool()
           
TransactionLogTool(File archiveExtractionDir)
           
 
Method Summary
 String getLogFromUUID(String logId)
          Gets the name of the open log with the given id or null if no open log exists.
 Collection<RogLog> getOpenLogs()
           
 RogLogQueryEngine getQueryEngine()
          Gets the tool's query engine.
 Collection<Class<?>> getTypes()
           
static void main(String[] args)
           
 Collection<RogLog> open(String logPath)
          Open the log or logs at the given path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionLogTool

public TransactionLogTool()
                   throws Exception
Throws:
Exception

TransactionLogTool

public TransactionLogTool(File archiveExtractionDir)
                   throws Exception
Throws:
Exception
Method Detail

main

public static void main(String[] args)

open

public Collection<RogLog> open(String logPath)
Open the log or logs at the given path.

Parameters:
logPath - The file or directory name of logs to open

getOpenLogs

public Collection<RogLog> getOpenLogs()
Returns:
The collection of open RogLogs

getQueryEngine

public RogLogQueryEngine getQueryEngine()
                                 throws Exception
Gets the tool's query engine.

Throws:
Exception - If there is an error opening the query engine.

getLogFromUUID

public String getLogFromUUID(String logId)
Gets the name of the open log with the given id or null if no open log exists.

Parameters:
logId - The logId to locate
Returns:
The log or null if no log is opened.

getTypes

public Collection<Class<?>> getTypes()
                              throws Exception
Returns:
The list of discovered query types
Throws:
Exception - Get the list of types.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.