net.m2technologies.open_arm.transport.transaction.logging
Class LoggingMediator

java.lang.Object
  extended bynet.m2technologies.open_arm.transport.transaction.AbstractTransactionMediatorImpl
      extended bynet.m2technologies.open_arm.transport.transaction.logging.LoggingMediator
All Implemented Interfaces:
ArmInterface, ArmTransaction, ArmTransactionWithMetrics, TransactionMediator, TransportMediator

public class LoggingMediator
extends AbstractTransactionMediatorImpl

Copyright 2005 Mark Masterson

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Description: This class outputs the information for a given transaction to log4J.

Version:
0.009
Author:
Mark Masterson

Constructor Summary
LoggingMediator(java.lang.Object transactionDelegate)
           
 
Method Summary
protected  void doBlocked(long tmpHandle)
          Concrete implementations implement this method to persist/record/transmit the event.
protected  void doStop(long elapsedTime, long totalElapsedTime, int status, java.lang.String diagnosticDetail)
          Concrete implementations implement this method to persist/record/transmit the event.
protected  void doUnblocked(long blockHandle)
          Concrete implementations implement this method to persist/record/transmit the event.
protected  void doUpdate(long runningTime, long totalRunningTime)
          Concrete implementations implement this method to persist/record/transmit the event.
 void setConfiguration(java.lang.Object configuration)
           
 
Methods inherited from class net.m2technologies.open_arm.transport.transaction.AbstractTransactionMediatorImpl
bindThread, blocked, getApplication, getBlockedMessage, getContextURIValue, getContextValue, getCorrelator, getCreatingFactory, getDefinition, getDelegate, getErrorCode, getErrorMessage, getMetricGroup, getParentCorrelator, getStatus, getStopMessage, getTransactionWithMetricsDefinition, getUnblockedMessage, getUpdateMessage, getUser, isTraceRequested, reset, setArrivalTime, setContextURIValue, setContextValue, setErrorCode, setTraceRequested, setTransactionalDelegate, setUser, start, start, start, start, stop, stop, unbindThread, unblocked, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingMediator

public LoggingMediator(java.lang.Object transactionDelegate)
Method Detail

setConfiguration

public void setConfiguration(java.lang.Object configuration)

doBlocked

protected void doBlocked(long tmpHandle)
Description copied from class: AbstractTransactionMediatorImpl
Concrete implementations implement this method to persist/record/transmit the event.

Specified by:
doBlocked in class AbstractTransactionMediatorImpl
Parameters:
tmpHandle -

doStop

protected void doStop(long elapsedTime,
                      long totalElapsedTime,
                      int status,
                      java.lang.String diagnosticDetail)
Description copied from class: AbstractTransactionMediatorImpl
Concrete implementations implement this method to persist/record/transmit the event.

Specified by:
doStop in class AbstractTransactionMediatorImpl
Parameters:
elapsedTime -
totalElapsedTime -
status -
diagnosticDetail -

doUnblocked

protected void doUnblocked(long blockHandle)
Description copied from class: AbstractTransactionMediatorImpl
Concrete implementations implement this method to persist/record/transmit the event.

Specified by:
doUnblocked in class AbstractTransactionMediatorImpl
Parameters:
blockHandle -

doUpdate

protected void doUpdate(long runningTime,
                        long totalRunningTime)
Description copied from class: AbstractTransactionMediatorImpl
Concrete implementations implement this method to persist/record/transmit the event.

Specified by:
doUpdate in class AbstractTransactionMediatorImpl
Parameters:
runningTime -
totalRunningTime -