|
||||||||||
| 전의 Class에 다음의 Class에 | 프레임 있어 프레임 없음 | |||||||||
| Summary : 네스트 | 필드 | constructor | 메소드 | 상세 : 필드 | constructor | 메소드 | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.AbstractService
flex.messaging.services.MessageService
Public Class MessageService
MessageService Class는, point-to-point Messaging 과 Publish/예약(subscribe)멧세이징을 Management하는 Service 실장입니다.
| 필드 Summary | |
|---|---|
static String |
LOG_CATEGORY
MessageService 에 의해 로그아웃 된 메세지의 로그 카테고리입니다. |
| Class flex.messaging.services.AbstractService 로부터 상속 받는 필드 |
|---|
broker, destinations, settings, supportedMessageTypes |
| Interface flex.messaging.services.messaging.MessagingConstants 로부터 상속 받는 필드 |
|---|
ALLOW_SUBTOPICS_ELEMENT, BATCH_WRITE_SIZE_ELEMENT, DEFAULT_DURABLE_STORE, DEFAULT_MAX_CACHE_SIZE, DEFAULT_SUBTOPIC_SEPARATOR, DURABLE_STORE_TYPE_ELEMENT, IS_DURABLE_ELEMENT, MAX_CACHE_SIZE_ELEMENT, SUBTOPIC_SEPARATOR_ELEMENT, TIME_TO_LIVE_ELEMENT |
| 메소드 Summary | |
|---|---|
protected void |
incrementMessageCount (boolean commandMessage)
MessageService 의 메세지 카운트 시학을 인크리먼트(increment) 합니다. |
protected Message |
manageSubscriptions (CommandMessage command, boolean useAdapter)
CommandMessage 에 관련하는 예약 구독을 처리합니다. |
void |
pushMessageToClients (Message message, boolean evalSelector)
메세지를 이 메세지의 타겟 행선지에 예약(subscribe) 하고 있는 모든 클라이언트에 푸쉬 합니다. |
void |
pushMessageToClients (Set 예약(subscribe)rIds, Message message, boolean evalSelector)
클러스터 전체에서는 불려 가지 않고, 항상 로컬로 불려 갑니다. |
void |
sendPushMessageFromPeer (Message message, boolean evalSelector)
건네받은 메세지를 클러스터의 다른 서바피아노드에 접속되고 있는 클라이언트에 송신합니다. |
void |
serviceMessageFromAdapter (Message message, boolean sendToAllSubscribers)
메세지 어댑터로부터 불려 가 클라이언트에의 메세지의 전달을 처리합니다. |
protected void |
setupServiceControl (flex.messaging.MessageBroker broker)
MessageService 로 그 MBean 컨트롤을 인스턴스화해 등록할 수 있도록(듯이) 합니다. |
| Class flex.messaging.services.AbstractService 로부터 상속 받는 메소드 |
|---|
createDestination, createDestinations, getDestination, getDestinationByName, getId, getMessageBroker, getSettings, isSupportedMessage, isSupportedMessageType, serviceCommand, serviceCommonCommands, serviceMessage, setId, start, stop |
| Class flex.management. ManageableComponent 로부터 상속 받는 메소드 |
|---|
getControl , isManaged , setControl , setManaged |
| Class java.lang. Object 로부터 상속 받는 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| Interface flex.management. Manageable 로부터 상속 받는 메소드 |
|---|
getControl , isManaged , setControl , setManaged |
| 필드의 상세 |
|---|
public static final String LOG_CATEGORY
MessageService 에 의해 로그아웃 된 메세지의 로그 카테고리입니다.
| 메소드의 상세 |
|---|
public void serviceMessageFromAdapter(Message message, boolean sendToAllSubscribers)
sendToAllSubscribers 파라미터를 true 로 해 건네주면(자), 메세지는 이 행선지로부터 메세지를 수신하도록(듯이) 예약(subscribe) 하고 있는 모든 클라이언트에 전송 됩니다. 이 메소드를 사용하는 경우, 예약(subscribe) 하고 있는 모든 클라이언트의 실렉터식은 평가되지 않습니다. 실렉터식을 평가하는 경우는,pushMessageToClients 메소드와 sendPushMessageFromPeer 메소드를 조합해 사용합니다.
message - 송신하는 Message 입니다. sendToAllSubscribers - true 의 경우, 이 메세지의 행선지에 예약(subscribe) 하고 있는 모든 클라이언트에 메세지를 송신합니다. false 의 경우, 메세지로 지정되고 있는 클라이언트에게만 메세지를 송신합니다. public void sendPushMessageFromPeer(Message message, boolean evalSelector)
message - 클러스터의 피어 서버 노드에 푸쉬 하는 Message 입니다. evalSelector - true 의 경우, 메세지를 푸쉬 하기 전에, 각 리모트subscribers의 실렉터를 평가합니다. false 의 경우, 실렉터의 평가를 스킵 합니다. public void pushMessageToClients(Message message, boolean evalSelector)
message - 행선지의 subscribers에 푸쉬 하는 Message 입니다. evalSelector - true 의 경우, 메세지를 푸쉬 하기 전에, 각 subscribers의 실렉터를 평가합니다. false 의 경우, 실렉터의 평가를 스킵 합니다. public void pushMessageToClients(Set 예약(subscribe)rIds, Message message, boolean evalSelector)
예약(subscribe)rIds - 메세지를 푸쉬 하는 subscribers세트입니다. message - 푸쉬 하는 Message 입니다. evalSelector - true 의 경우, 메세지를 푸쉬 하기 전에, 각 subscribers의 실렉터를 평가합니다. false 의 경우, 실렉터의 평가를 스킵 합니다. protected void incrementMessageCount(boolean commandMessage)
MessageService 의 메세지 카운트 시학을 인크리먼트(increment) 합니다. 이 값은 대응하는 MBean 에 포함됩니다. MessageService 가 serviceMessage() 와 serviceCommand() 의 실장으로 이미 이 메소드를 호출하고 있습니다만, 서브 Class가 이러한 메소드를 완전하게 재정의(override) 하는 경우, 메세지의 처리에 응해 이 메소드를 호출할 필요가 있습니다.
commandMessage - 처리중의 메세지가 CommandMessage 의 경우,true 를 건네줍니다. 그 이외의 경우는,false 를 건네줍니다. protected Message manageSubscriptions(CommandMessage command, boolean useAdapter)
CommandMessage 에 관련하는 예약 구독을 처리합니다. 추가의 custom 예약 구독 Management를 실행하는 서브 Class는, 이 메소드를 재정의(override) 하는 경우에 super.manageSubscriptions() 를 호출할 필요가 있습니다.
command - 처리하는 CommandMessage 입니다. useAdapter - 행선지의 어댑터가 예약 구독을 Management하는 경우는 true, 그 이외의 경우는 false 를 지정합니다.
CommandMessage 의 Message 결과입니다. protected void setupServiceControl(flex.messaging.MessageBroker broker)
MessageService 로 그 MBean 컨트롤을 인스턴스화해 등록할 수 있도록(듯이) 합니다.
flex.messaging.services.AbstractService 의 setupServiceControlbroker - MessageServiceControl constructor 에 건네주는 MessageBroker 입니다.
|
||||||||||
| 전의 Class에 다음의 Class에 | 프레임 있어 프레임 없음 | |||||||||
| Summary : 네스트 | 필드 | constructor | 메소드 | 상세 : 필드 | constructor | 메소드 | |||||||||