Groovy

Just another WordPress.com weblog

apache mina 2.x

Posted by groovy on 10월 14, 2011

3-layer

  • I/O Service - Performs actual I/O
  • I/O Filter Chain - Filters/Transforms bytes into desired Data Structures and vice-versa
  • I/O Handler - Here resides the actual business logic

create mina application process

  • Create I/O service - Choose from already available Services (*Acceptor) or create your own
  • Create Filter Chain - Choose from already existing Filters or create a custom Filter for transforming request/response
  • Create I/O Handler - Write business logic, on handling different messages
    Creating a MINA application is this simple

서버 및 클라이언트 아키텍쳐

Service

  •  Server - IoAcceptor implement
  • client -IoConnector implement

 

  Session

client 가  server 에 접속시 생성되며,  disconected 하기전까지 메모리에 상주한다.

  • Connected : the session has been created and is available
  • Idle : the session hasn’t processed any request for at least a period of time (this period is configurable)
    • Idle for read : no read has actually been made for a period of time
    • Idle for write : no write has actually been made for a period of time
    • Idle for both : no read nor write for a period of time
  • Closing : the session is being closed (the remaining messages are being flushed, cleaning up is not terminated)
  • Closed : The session is now closed, nothing else can be done to revive it.

IOBuffer

  •  Buffers are just buffers
  • ByteBuffer의 wrapper 객체인 IOBuffer는 3.x에 대폭 수정되거나,  deprecated 될것으로 보여진다.
  • Assuming that the MINA ByteBuffer is just a wrapper on top of NIO ByteBuffer, this can be a real problem when using direct buffers.

 

 

Posted in Maven | Leave a Comment »

maven practice

Posted by groovy on 10월 13, 2011

3.0.3설치…

mina  프로젝트를 보던중..build 시 .3.0.x,를 요구하더군요..

달라진게 먼지 아직 보진 못했으니..

이것도 공부해야할 대상..

 

$ mvn -Pserial clean install             # Build packages (JARs) for the core API and other extensions and install them to the local Maven repository.
$ mvn -Pserial site                      # Generate reports (JavaDoc and JXR)
$ mvn -Pserial package assembly:assembly # Generate a tarball (package goal needed to fix an assembly plugin bug)
$ mvn -Pserial eclipse:eclipse           # Generate Eclipse project files if you want
최초 이것만 알아도 별 문제없이 진행될듯..

Posted in Maven | Tagged: | Leave a Comment »

TODO LIST

Posted by groovy on 8월 20, 2007

  • [private] Unbuntu 7.04 + Beryl  8.21
  • [private] svn  setup
  • [project] New Project Design – UPIS V1.0
  • [LIFE'S] Boxing in step by step
  • [private] os change : office  computer

Posted in works | Leave a Comment »

 
팔로우

Get every new post delivered to your Inbox.