public class MAKE_BATCH extends Protocol
Modifier and Type | Class and Description |
---|---|
protected class |
MAKE_BATCH.Batcher |
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.Future<?> |
batcher |
protected AsciiString |
cluster_name |
protected Address |
local_addr |
protected boolean |
multicasts |
protected java.util.Map<Address,java.util.List<Message>> |
oob_map_mcast |
protected java.util.Map<Address,java.util.List<Message>> |
oob_map_ucast |
protected java.util.Map<Address,java.util.List<Message>> |
reg_map_mcast |
protected java.util.Map<Address,java.util.List<Message>> |
reg_map_ucast |
protected long |
sleep_time |
protected TimeScheduler |
timer |
protected boolean |
unicasts |
after_creation_hook, down_prot, ergonomics, id, log, name, stack, stats, up_prot
Constructor and Description |
---|
MAKE_BATCH() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method is called on a
Channel.close() . |
java.lang.Object |
down(Event evt)
An event is to be sent down the stack.
|
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
MAKE_BATCH |
multicasts(boolean flag) |
protected void |
queue(Message msg) |
MAKE_BATCH |
sleepTime(long time) |
void |
startBatcher() |
protected void |
stopBatcher() |
MAKE_BATCH |
unicasts(boolean flag) |
java.lang.Object |
up(Event evt)
An event was received from the layer below.
|
accept, afterCreationHook, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, isErgonomics, level, parse, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, start, statsEnabled, stop, up
protected boolean multicasts
protected boolean unicasts
protected long sleep_time
protected TimeScheduler timer
protected AsciiString cluster_name
protected Address local_addr
protected java.util.concurrent.Future<?> batcher
public MAKE_BATCH multicasts(boolean flag)
public MAKE_BATCH unicasts(boolean flag)
public MAKE_BATCH sleepTime(long time)
public void init() throws java.lang.Exception
Protocol
public void destroy()
Protocol
Channel.close()
.
Does some cleanup; after the call the VM will terminatepublic java.lang.Object down(Event evt)
Protocol
down_prot.down()
. In case of a GET_ADDRESS event (which tries to
retrieve the stack's address from one of the bottom layers), the layer may need to send
a new response event back up the stack using up_prot.up()
.public java.lang.Object up(Event evt)
Protocol
down_prot.down()
or c) the event (or another event) is sent up
the stack using up_prot.up()
.protected void queue(Message msg)
public void startBatcher()
protected void stopBatcher()
Copyright © 1998-2020 Red Hat. All Rights Reserved.