FileDocCategorySizeDatePackage
Shm14.javaAPI DocApache Tomcat 6.0.142775Fri Jul 20 04:20:34 BST 2007org.apache.jk.common

Shm14

public class Shm14 extends Shm
Shm implementation using JDK1.4 nio.
author
Costin Manolache

Fields Summary
private static org.apache.juli.logging.Log
log
MappedByteBuffer
bb
Constructors Summary
Methods Summary
public voiddumpScoreboard(java.lang.String file)

        // We can only sync with our backing store.
        bb.force();
        // XXX we should copy the content to the file
    
public voidinit()


       
        try {
            RandomAccessFile f=new RandomAccessFile( file, "rw" );
            FileChannel fc=f.getChannel();
            
            bb=fc.map( FileChannel.MapMode.READ_WRITE, 0, f.length());
        } catch( IOException ex ) {
            ex.printStackTrace();
        }
    
public voidinitCli()

    
public intinvoke(org.apache.jk.core.Msg msg, org.apache.jk.core.MsgContext ep)

        if (log.isDebugEnabled())
            log.debug("ChannelShm14.invoke: "  + ep );

        // 
        
        return 0;
    
public static voidmain(java.lang.String[] args)

        try {
            Shm14 shm=new Shm14();

            if( args.length == 0 ||
                ( "-?".equals(args[0]) ) ) {
                shm.setHelp( true );
                return;
            }

            IntrospectionUtils.processArgs( shm, args);
            shm.execute();
        } catch( Exception ex ) {
            ex.printStackTrace();
        }
    
public voidresetScoreboard()

        // XXX Need to write the head