All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.IbusChannel
java.lang.Object
|
+----JavaGroups.Channel
|
+----JavaGroups.IbusChannel
- public class IbusChannel
- extends Channel
- implements Receiver, Membership
Implementation of a channel using iBus. iBus
is a pure Java-based publish/subscribe bus. An entity subscribed to a certain address
receives all messages published by any publisher under the same address (or topic).
-
IbusChannel()
-
-
IbusChannel(Object)
-
-
BlockOk()
- Called to acknowledge a Block (callback in
MembershipListener
or
BlockEvent
received from call to Receive
).
-
Close()
- Destroys the channel and its associated resources (e.g.
-
Connect(Object)
-
Connects the channel to a group.
-
Disconnect()
- Disconnects the channel from the current group (if connected), leaving the group.
-
dispatchPull(iBusURL, Posting)
-
-
dispatchPush(iBusURL, Posting)
-
-
error(iBusURL, String)
-
-
GetAllStates(long)
- Retrieve all states of the group members.
-
GetGroupAddress()
- Returns the group address of the group of which the channel is a member.
-
GetLocalAddress()
-
Returns the channel's own address.
-
GetOpt(int)
-
Gets an option.
-
getState(iBusURL)
-
-
GetState(long)
- Retrieve the state of the group.
-
GetView()
- Gets the current view.
-
Peek(long)
- Returns the next message, view, block, suspect or other event without removing
it from the queue.
-
Receive(long)
- Receives a message, a view change or a block event.
-
ReturnState(Serializable)
- Called by the application is response to receiving a
GetState
object when
calling Receive
.
-
Send(Message)
- Sends a message to a destination.
-
SetOpt(int, Object)
-
Sets an option.
-
setState(iBusURL, Serializable)
-
-
viewChange(View)
-
IbusChannel
public IbusChannel() throws ChannelException
IbusChannel
public IbusChannel(Object props) throws ChannelException
Connect
public void Connect(Object address) throws ChannelClosed
- Connects the channel to a group.
- Overrides:
- Connect in class Channel
Disconnect
public void Disconnect()
- Disconnects the channel from the current group (if connected), leaving the group.
- Overrides:
- Disconnect in class Channel
Close
public void Close()
- Destroys the channel and its associated resources (e.g.
- Overrides:
- Close in class Channel
Send
public void Send(Message msg) throws ChannelNotConnected, ChannelClosed
- Sends a message to a destination.
- Overrides:
- Send in class Channel
Receive
public Object Receive(long timeout) throws ChannelNotConnected, ChannelClosed, Timeout
- Receives a message, a view change or a block event.
- Overrides:
- Receive in class Channel
Peek
public Object Peek(long timeout) throws ChannelNotConnected, ChannelClosed, Timeout
- Returns the next message, view, block, suspect or other event without removing
it from the queue.
- Overrides:
- Peek in class Channel
GetView
public View GetView()
- Gets the current view.
- Overrides:
- GetView in class Channel
GetLocalAddress
public Object GetLocalAddress()
- Returns the channel's own address.
- Overrides:
- GetLocalAddress in class Channel
GetGroupAddress
public Object GetGroupAddress()
- Returns the group address of the group of which the channel is a member.
- Overrides:
- GetGroupAddress in class Channel
SetOpt
public void SetOpt(int option,
Object value)
- Sets an option.
- Overrides:
- SetOpt in class Channel
GetOpt
public Object GetOpt(int option)
- Gets an option.
- Overrides:
- GetOpt in class Channel
BlockOk
public void BlockOk()
- Called to acknowledge a Block (callback in
MembershipListener
or
BlockEvent
received from call to Receive
).
- Overrides:
- BlockOk in class Channel
GetState
public Object GetState(long timeout)
- Retrieve the state of the group.
- Overrides:
- GetState in class Channel
GetAllStates
public Vector GetAllStates(long timeout)
- Retrieve all states of the group members.
- Overrides:
- GetAllStates in class Channel
ReturnState
public void ReturnState(Serializable state)
- Called by the application is response to receiving a
GetState
object when
calling Receive
.
- Overrides:
- ReturnState in class Channel
dispatchPull
public Posting dispatchPull(iBusURL channel,
Posting request)
dispatchPush
public void dispatchPush(iBusURL source,
Posting p)
error
public void error(iBusURL url,
String details)
getState
public Serializable getState(iBusURL channel)
setState
public void setState(iBusURL channel,
Serializable state)
viewChange
public synchronized void viewChange(View newView)
All Packages Class Hierarchy This Package Previous Next Index