FileDocCategorySizeDatePackage
CallStack.javaAPI DocGlassfish v2 API3180Fri May 04 22:25:58 BST 2007com.sun.enterprise.admin.util.proxy

CallStack

public class CallStack extends Object
Represents a call stack.

Fields Summary
private Stack
callStack
Constructors Summary
public CallStack()
Creates a new instance of CallStack


           
      
    
Methods Summary
public voidbeginCall(java.lang.reflect.Method m, java.lang.Object[] args)

        Call call = new Call(m, args);
        beginCall(call);
    
public voidbeginCall(Call call)

        callStack.push(call);
    
public voidendCall()

        Call call = (Call)callStack.pop();
        if (!call.getState().isFinished()) {
            call.setState(CallState.SUCCESS);
        }
    
public voidendCallWithError(java.lang.Throwable th)

        Call call = (Call)callStack.peek();
        call.setState(CallState.FAILED);
        call.setFailureReason(th);
        endCall();
    
public CallgetActiveCall()

        return (Call)callStack.peek();
    
public java.util.IteratorgetCallStack()

        return callStack.iterator();
    
public intgetStackSize()

        return callStack.size();