FileDocCategorySizeDatePackage
JMXInbandStream.javaAPI DocGlassfish v2 API3341Fri May 04 22:36:32 BST 2007com.sun.enterprise.admin.jmx.remote.streams

JMXInbandStream

public class JMXInbandStream extends Object

Fields Summary
private static ThreadLocal
thrLocal
Constructors Summary
Methods Summary
private static com.sun.enterprise.admin.jmx.remote.streams.JMXInbandStream$JMXInbandStreamContextgetContext()

        JMXInbandStreamContext ctx = 
            (JMXInbandStreamContext) thrLocal.get();
        if (ctx == null) {
            ctx = new JMXInbandStreamContext();
        }
        return ctx;
    
public static java.io.InputStreamgetInputStream()

        JMXInbandStreamContext ctx = getContext();
        return ctx.incoming;
    
public static java.io.InputStreamgetOutgoingStream()

        JMXInbandStreamContext ctx = getContext();
        return ctx.outgoing;
    
public static longgetOutgoingStreamLength()

        JMXInbandStreamContext ctx = getContext();
        return ctx.length;
    
public static voidsetIncomingStream(java.io.InputStream in)

        JMXInbandStreamContext ctx = getContext();
        ctx.incoming = in;
        thrLocal.set(ctx);
    
public static voidsetOutputStream(java.io.InputStream in, long len)


           
        JMXInbandStreamContext ctx = getContext();
        ctx.outgoing = in;
        if (len > 0)
            ctx.length = len;
        thrLocal.set(ctx);