일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- DDD
- scala
- Linux
- Java
- Gradle
- hibernate
- Spring Batch
- Spring
- Clean Code
- Domain Driven Design
- docker
- hdfs
- intellij
- Storm
- spark
- elasticsearch
- design pattern
- 엘라스틱서치
- elastic search
- SBT
- Angular2
- nginx
- 제주
- 스프링 배치
- apache storm
- Spring Boot
- 도메인주도설계
- hadoop
- Spring XD
- Hbase
- Today
- Total
목록분류 전체보기 (236)
욱'S 노트
JMX란? JMX는 java management extension의 약자이다. JDK 1.5부터 기본적으로 탑재되어 제공되고 있다. Application 관리를 위한 다양한 기능을 제공할 목적으로 시작되었다. Non-Java resources와 하드웨어에 대해 wrapping한 인터페이스를 제공하며, API를 외부로 노출해 application 설정 및 통계데이터를 수집할수도 있다. JMX 용어 Manageable Resource : 관리대상의 되는 리소스 MBean : Managed bean의 약자이며, Manageble Resource에 대한 접근 및 조작에 대한 interface를 제공한다. MBean Server : MBean을 관리하는 Java Class JMX Agent : Mbean 관리를 ..
다운로드 및 설치 회사에서 2.2.1버젼을 사용하기 때문에 2.2.1버젼으로 포스팅을 진행하겠다. Apache 메이븐 프로젝트 사이트(http://maven.apache.org/)로 가서 다운로드를 받는다. 원하는 위치에 압축을 해제함으로서 설치는 완료된다. 환경설정 시스템 환경변수 PATH에 MAVEN_HOME/bin 디렉토리를 등록한다. 점검 역시 가장 쉽게 설치가 제대로 되었는지 점검하는 방법은 버젼을 확인하는 방법이다. mvn -version 명령으로 제대로 설치되었는지 확인하자. Eclipse Plugin 설치하기 기본적으로 메이븐은 커맨드 라인으로 모든 기능을 이용할 수 있다. 하지만 커맨드 라인에서 작업을 하는 것은 굉장히 불편한 일이다. STS에 같은 툴이나 GWT Plugin을 사용하면 ..
When Using It 언어로 문제를 해결하기 Class Diagram Sample Code public interface AbstractExpression { public void interprete(Context context); } public class TerminalExpression implements AbstractExpression { @Override public void interprete(Context context) { String token = context.currentToken(); if (!"go".equals(token) ) { new NonTerminalExpression().interprete(context); } else { System.out.println("g..
When Using It 명령을 클래스로 표현하고 싶을때 Class Diagram Sample Code public interface Command { public void execute(); } public class ConcreteCommand implements Command { private Receiver receiver = new Receiver(); @Override public void execute() { receiver.action(); } } public class Receiver { public void action() { System.out.println("Action Performed!!!"); } } public class Invoker { private List comma..
When Using It 조건에 따른 상태 자체를 클래스로 표현하고 싶을때 Class Diagram Sample Code public interface State { public void handle(Context context, boolean condition); } public class ConcreteState implements State { @Override public void handle(Context context, boolean condition) { if (condition) { System.out.println("ConcreteState Handled."); } else { context.setState(new ConcreteState2()); } } } public class Con..
When Using It 자신의 상태의 저장본을 만들기 Class Diagram Sample Code public class Memento { private String state; public String getState() { return state; } public void setState(String state) { this.state = state; } } public class Organitor { private String state; public Memento createMemento() { Memento memento = new Memento(); memento.setState(state); return memento; } public void setMemento(Memento memen..
When Using It 자신의 상태에 변화가 일어났을 경우 Observer들에게 통보하기 Class Diagram Sample Code public interface Observer { public void update(Subject subject); } public class ConcreteObserver implements Observer { @Override public void update(Subject subject) { System.out.println(subject.getState()); } } public abstract class Subject { private List observers = new ArrayList(); public void attach(Observer observ..
When Using It 다수의 객체에 통합적인 지시를 내리기 위한 패턴. 클래스의 기능들을 분할하여 세분화된 클래스로 내렸을때, 세분화된 클래스간의 통신이 필요할때 유용하다. Class Diagram Sample Code public interface Mediator { } public class ConcreteMediator implements Mediator { private Colleague colleague; private Colleague colleague2; public void initializeColleague() { colleague = new Colleague(); colleague2 = new Colleague(); colleague.setMediator(this); colleagu..
When Using It 다수의 처리자들을 연결하고 싶을때 Class Diagram Sample Code public abstract class Handler { private Handler nextHandler; public abstract boolean handleRequest(); public final void setNext(Handler handler) { this.nextHandler = handler; } public final void process() { if (handleRequest() == false) { if ( nextHandler != null) { nextHandler.handleRequest(); } } } } public class ConcreteHandler exte..
When Using It 특정한 데이터 구조 가진 오브젝트를 방문하면서 처리를 하고 싶을때 Class Diagram Sample Code public interface Element { public void accept(Visitor visitor); public void add(Element element); public List getChildren(); } public class ConcreteElement implements Element { private List children = new ArrayList(); @Override public void accept(Visitor visitor) { visitor.visitConcreteElement(this); } @Override publi..