public class ReplicationEndpointImpl extends Object implements ReplicationEndpoint
Constructor and Description |
---|
ReplicationEndpointImpl(HornetQServer server,
IOCriticalErrorListener criticalErrorListener) |
Modifier and Type | Method and Description |
---|---|
void |
compareJournalInformation(JournalLoadInformation[] journalInformation) |
Channel |
getChannel() |
void |
handlePacket(Packet packet)
called by the channel when a packet is received..
|
boolean |
isStarted() |
void |
registerJournal(byte id,
Journal journal) |
void |
setChannel(Channel channel) |
void |
setDeletePages(boolean deletePages)
Used on tests only.
|
void |
start() |
void |
stop() |
public ReplicationEndpointImpl(HornetQServer server, IOCriticalErrorListener criticalErrorListener)
public void registerJournal(byte id, Journal journal)
registerJournal
in interface ReplicationEndpoint
public void handlePacket(Packet packet)
ChannelHandler
handlePacket
in interface ChannelHandler
packet
- the packet receivedpublic boolean isStarted()
isStarted
in interface HornetQComponent
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public Channel getChannel()
getChannel
in interface ReplicationEndpoint
public void setChannel(Channel channel)
setChannel
in interface ReplicationEndpoint
public void compareJournalInformation(JournalLoadInformation[] journalInformation) throws HornetQException
compareJournalInformation
in interface ReplicationEndpoint
HornetQException
public void setDeletePages(boolean deletePages)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.