|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.mitosis.service.protocol.handler.ReplicationServerContextHandler
public class ReplicationServerContextHandler
ReplicationContextHandler that implements server-side replication logic
which retrieves any changes occurred in remote replicas. Please refer to
ReplicationClientContextHandler for the detailed protocol flow and
the description of the replication logic execution.
| Constructor Summary | |
|---|---|
ReplicationServerContextHandler()
|
|
| Method Summary | |
|---|---|
void |
contextBegin(ReplicationContext ctx)
Invoked when a connection is established between two replicas. |
void |
contextEnd(ReplicationContext ctx)
Invoked when a connection is closed between two replicas. |
void |
contextIdle(ReplicationContext ctx,
org.apache.mina.common.IdleStatus status)
Invoked when two replicas are not exchanging any data for certain amount of time. |
void |
exceptionCaught(ReplicationContext ctx,
java.lang.Throwable cause)
Invoked when an exception is raised during the communication or executing replication logic. |
void |
messageReceived(ReplicationContext ctx,
java.lang.Object message)
Invoked when a message is received from a peer replica. |
void |
messageSent(ReplicationContext ctx,
java.lang.Object message)
Invoked when a message is received from a peer replica. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationServerContextHandler()
| Method Detail |
|---|
public void contextBegin(ReplicationContext ctx)
throws java.lang.Exception
ReplicationContextHandler
contextBegin in interface ReplicationContextHandlerjava.lang.Exception
public void contextEnd(ReplicationContext ctx)
throws java.lang.Exception
ReplicationContextHandler
contextEnd in interface ReplicationContextHandlerjava.lang.Exception
public void messageReceived(ReplicationContext ctx,
java.lang.Object message)
throws java.lang.Exception
ReplicationContextHandler
messageReceived in interface ReplicationContextHandlerjava.lang.Exception
public void messageSent(ReplicationContext ctx,
java.lang.Object message)
throws java.lang.Exception
ReplicationContextHandler
messageSent in interface ReplicationContextHandlerjava.lang.Exception
public void exceptionCaught(ReplicationContext ctx,
java.lang.Throwable cause)
throws java.lang.Exception
ReplicationContextHandler
exceptionCaught in interface ReplicationContextHandlerjava.lang.Exception
public void contextIdle(ReplicationContext ctx,
org.apache.mina.common.IdleStatus status)
throws java.lang.Exception
ReplicationContextHandler
contextIdle in interface ReplicationContextHandlerjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||