Overview 개요
A Java class to shutdown Apache James Mail Server via TCP/IP. 자바 클래스를 폐쇄 아파치 제임스 메일 서버를 통해 tcp / ip합니다. It shuts down Apache James Mail Server by passing shutdown command via simulated telnet session. 제임스 메일 서버에 아파치를 전달하여 그것을 종료 명령을 통해 모의 텔넷 세션을 종료합니다.

Background 배경
Apache James mail server requires a telnet session (where you pass the shutdown command) for clean shutdown. 텔넷 세션을 아파치 제임스 메일 서버를 필요로합니다 (어디로 통과하여 종료 명령)을 완전 종료합니다.
BTW: Apache James Mail server has a shoddy documentation which doesn’t mention a way to shutdown the server in any intuitive location. btw : 아파치 제임스 메일 서버가 재생모 설명서를 종료하는 방법을 언급하지 않는 서버에 어떤 직관적인 위치를합니다. You have to really hunt it down. 자신이 정말로 사냥을 내려합니다.

However without clean shutdown you cannot have config.xml file and hence cannot modify it to your needs. 그러나 완전 종료하지 않고 config.xml 파일을 가질 수없습니다 그래서 그것을 귀하의 요구를 수정할 수없습니다. Ctrl-C shutdown for some inexplicable reason deletes the file. ctrl - c 시스템 종료 이해할 수없는 이유로 일부 파일을 삭제합니다.

There is a utility floating around on the net which didn’t download properly for me. 이 유틸리티를 다운로드하지 않는 인터넷에서 떠돌아 다니는 나를 위해 적절합니다. Also it isn’t configurable. 또한 그것은 구성할 수없습니다. So I thought of creating a simple configurable utility for my needs. 그래서 단순한 구성 유틸리티를 만들 생각은 내이 필요합니다.

Download 다운로드
Download 다운로드 Apache James Mail Server Shutdown Utility 아파치 제임스 메일 서버를 종료 유틸리티를 . 합니다.

Error handling 오류 처리
The program terminates with error code 1 on error. 오류와 오류 코드 1에 해당 프로그램을 종료합니다. A terse message indicating the error is displayed on console (System.out). a 간결한 메시지를 나타내는 오류 메시지가 표시되는 콘솔 (system.out).

Options 옵션
Specify the host; default localhost 호스트를 지정합니다; 기본 로컬 호스트
-Dhost=hostname - dhost = 호스트 이름

Specify the port; default 4555 포트를 지정합니다; 기본 4555
-Dport=portnumber - dport = 포트

Specify the login; default root 로그인을 지정합니다; 기본 루트
-Dlogin=login - dlogin = 로그인

Specify the password; default root 비밀 번호를 지정합니다; 기본 루트
-Dpassword=password - dpassword = 비밀 번호

Options are used to override the default values. 옵션은 기본값을 재정의하는 데 사용합니다.

Usage 사용법
Simple: 단순하다 :
java JamesShutdown 자바 jamesshutdown

Configure it: 구성합니다 :
java -Dhost=foobah.com -Dlogin=foo -Dpassword=bah JamesShutdown 자바 - dlogin = foo - dhost = dpassword = bah foobah.com - jamesshutdown