JMS Conector demo (OC4J 10g R3)
C D E G H M N O P R S T V

C

chan - Variable in class Dealer
 
close() - Method in class MyChannel
Close channel.
connection - Variable in class MyChannel
 
consumer - Variable in class MyChannel
 
count - Static variable in class Dealer
 
current_player - Static variable in class Dealer
 

D

Dealer - class Dealer.
 
Dealer() - Constructor for class Dealer
 
dealerIsAhead() - Method in class Dealer
Indicates if the dealer is winning.
delay - Static variable in class Player
 

E

ejbCreate() - Method in class Dealer
Called when the server wants to create a new instance of this MDB.
ejbRemove() - Method in class Dealer
Called when the server no longer wants to keep this MDB instance.

G

GameEvent - class GameEvent.
Class used to carry information back and forth between dealer and players.
GameEvent() - Constructor for class GameEvent
 
gameOver - Static variable in class Player
 
game_started - Static variable in class Dealer
 

H

human - Static variable in class Player
 

M

MyChannel - class MyChannel.
Example of using JMS 1.1 unified operations.
MyChannel(String, String) - Constructor for class MyChannel
MyChannel constructor.
m_ctx - Variable in class Dealer
 
main(String[]) - Static method in class Player
main method for app-client
map - Static variable in class Player
 
myScore() - Static method in class Player
Returns this player's score.

N

NUM_PARTICIPANTS - Static variable in class Dealer
 
NUM_PLAYERS - Static variable in class Dealer
 
notifyPlayer(GameEvent) - Method in class Dealer
Let the players know whose turn it is.

O

onMessage(Message) - Method in class Dealer
This method is called whenever a message is sent to the queue associated with this MDB.

P

PING - Static variable in class GameEvent
This GameEvent type is used to prime communications.
PLAYER_ACCEPTED - Static variable in class GameEvent
This GameEvent type indicates that the dealer has accepted the GameEvent.player's request to join the game.
PLAYER_GOT_VALUE - Static variable in class GameEvent
This GameEvent type indicates the GameEvent.player's new (or kept) value.
PLAYER_JOIN_REQUEST - Static variable in class GameEvent
This GameEvent type is used when the player would like to join a game.
PLAYER_PASSES - Static variable in class GameEvent
This GameEvent type signifies the GameEvent.player wishes to keep the player's present value.
PLAYER_REDRAWS - Static variable in class GameEvent
This GameEvent type signifies the player wishes to receive a new value.
PLAYER_REJECTED - Static variable in class GameEvent
This GameEvent type indicates that the dealer has rejected the GameEvent.player's request to join the game.
Player - class Player.
 
Player() - Constructor for class Player
 
play() - Static method in class Player
This is the top-level game-play method (called by main).
player - Static variable in class Dealer
 
player - Variable in class GameEvent
Name of player who is the subject of this GameEvent.
player - Static variable in class Player
 
playerIsWinning() - Static method in class Player
Indicates if this player is winning.
primeCommunications(MyChannel, MyChannel) - Static method in class Player
Handle pub/sub latency -- reach a 'steady state'.
processJoinRequest(GameEvent) - Method in class Dealer
Process PLAYER_JOIN_REQUEST events.
processTurn(GameEvent) - Method in class Dealer
Process PLAYER_REDRAWS and PLAYER_PASSES events.
processTurn(GameEvent) - Static method in class Player
Process TURN_NOTIFICATION events (decide what to do on this player's turn).
processValue(GameEvent) - Static method in class Player
Process PLAYER_GOT_VALUE events (update local game state and detect end of game).
producer - Variable in class MyChannel
 

R

rand - Static variable in class Dealer
 
randomValue() - Method in class Dealer
Return a random value between 1 and 100.
receive() - Method in class MyChannel
Receive message (wait forever).
receive(long) - Method in class MyChannel
Receive message (wait a while).

S

score - Static variable in class Dealer
 
send(Serializable) - Method in class MyChannel
Send message.
sendValue(GameEvent) - Method in class Dealer
Let all players know the current score of some player.
session - Variable in class MyChannel
 
setMessageDrivenContext(MessageDrivenContext) - Method in class Dealer
Remember the context for this MDB.

T

TURN_NOTIFICATION - Static variable in class GameEvent
This GameEvent type indicates the GameEvent.player whose turn it is.
toString() - Method in class GameEvent
 
tookMyTurn - Static variable in class Player
 
type - Variable in class GameEvent
Indicates type of GameEvent.

V

value - Variable in class GameEvent
Game value received (randomly generated) or kept by player GameEvent.player.

C D E G H M N O P R S T V
JMS Conector demo (OC4J 10g R3)

Copyright © 2006, Oracle. All rights reserved.