1 21 package oracle.toplink.essentials.sessions; 23 24 import oracle.toplink.essentials.queryframework.*; 25 26 32 public interface SessionProfiler { 33 public static final int NONE = 0; 35 public static final int NORMAL = 5; 36 public static final int HEAVY = 10; 37 public static final int ALL = Integer.MAX_VALUE; 38 39 public static final String TopLinkRootNoun = "/TopLink"; 41 public static final String SessionNounType = "TopLink Session"; 42 public static final String TransactionNounType = "TopLink Transaction"; 43 public static final String QueryNounType = "Toplink Queries"; 44 public static final String RcmNounType = "Toplink RCM"; 45 public static final String ConnectionNounType = "TopLink Connections"; 46 public static final String CacheNounType = "TopLink Cache"; 47 public static final String MiscellaneousNounType = "TopLink Miscellaneous"; 48 49 public static final String SessionName = "SessionName"; 51 public static final String LoginTime = "loginTime"; 52 public static final String ClientSessionCreated = "ClientSession"; 53 public static final String UowCreated = "UnitOfWork"; 54 public static final String UowCommit = "UnitOfWorkCommits"; 55 public static final String UowRollbacks = "UnitOfWorkRollbacks"; 56 public static final String OptimisticLockException = "OptimisticLocks"; 57 public static final String ReadQuery = "ReadQueries"; 58 public static final String WriteQuery = "WriteQueries"; 59 public static final String DeleteQuery = "DeleteQueries"; 60 public static final String RcmStatus = "RCMStatus"; 61 public static final String RcmReceived = "MessagesReceived"; 62 public static final String RcmSent = "MessagesSent"; 63 public static final String RemoteChangeSet = "RemoteChangeSets"; 64 public static final String TlConnects = "ConnectCalls"; 65 public static final String TlDisconnects = "DisconnectCalls"; 66 public static final String CachedObjects = "CachedObjects"; 67 public static final String CacheHits = "CacheHits"; 68 public static final String CacheMisses = "CacheMisses"; 69 public static final String ChangeSetsProcessed = "ChangesProcessed"; 70 public static final String ChangeSetsNotProcessed = "ChangesNotProcessed"; 71 public static final String DescriptorEvent = "DescriptorEvents"; 72 public static final String SessionEvent = "SessionEvents"; 73 public static final String ConnectionInUse = "ConnectionsInUse"; 74 public static final String QueryPreparation = "QueryPreparation"; 75 public static final String SqlGeneration = "SqlGeneration"; 76 public static final String DatabaseExecute = "DatabaseExecute"; 77 public static final String SqlPrepare = "SqlPrepare"; 78 public static final String RowFetch = "RowFetch"; 79 public static final String ObjectBuilding = "ObjectBuilding"; 80 public static final String MergeTime = "MergeTime"; 81 public static final String UnitOfWorkRegister = "UnitOfWorkRegister"; 82 public static final String DistributedMergeDmsDisplayName = "DistributedMerge"; 83 public static final String Sequencing = "Sequencing"; 84 public static final String Caching = "Caching"; 85 public static final String ConnectionManagement = "ConnectionManagement"; 86 public static final String LoggingDMSDisPlayName = "Logging"; 87 public static final String JtsBeforeCompletion = "TXBeforeCompletion"; 88 public static final String JtsAfterCompletion = "TXAfterCompletion"; 89 90 public static final String Register = "register"; 92 public static final String Merge = "merge"; 93 public static final String AssignSequence = "assign sequence"; 94 public static final String DistributedMerge = "distributed merge"; 95 public static final String DeletedObject = "deleted object"; 96 public static final String Wrapping = "wrapping"; 97 public static final String Logging = "logging"; 98 public static final String OBJECT_BUILDING = "object building"; 99 public static final String SQL_GENERATION = "sql generation"; 100 public static final String QUERY_PREPARE = "query prepare"; 101 public static final String STATEMENT_EXECUTE = "sql execute"; 102 public static final String ROW_FETCH = "row fetch"; 103 public static final String SQL_PREPARE = "sql prepare"; 104 public static final String TRANSACTION = "transactions"; 105 public static final String CONNECT = "connect"; 106 public static final String CACHE = "cache"; 107 108 112 public void endOperationProfile(String operationName); 113 114 122 public Object profileExecutionOfQuery(DatabaseQuery query, oracle.toplink.essentials.internal.sessions.AbstractRecord row, oracle.toplink.essentials.internal.sessions.AbstractSession session); 123 124 128 public void setSession(Session session); 129 130 134 public void startOperationProfile(String operationName); 135 136 140 public void update(String operationName, Object value); 141 142 146 public void occurred(String operationName); 147 148 152 public void setProfileWeight(int weight); 153 154 158 public int getProfileWeight(); 159 160 164 public void initialize(); 165 } 166 | Popular Tags |