|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPRootTransactionClass
com.SecurePlay.SPAbstractTransactionClass
com.SecurePlay.SPTShipClass
This transaction supports the distribution of Serializable Objects (Classes, Files, Etc.) as well as the slow, incremental distribution.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private java.lang.String[] |
AckList
This holds the list of SUCCESSFUL acknowledge messages for the current shipment |
private boolean |
acknowledgeFLAG
This flag determines whether sent packages need to be acknowledged. |
private int |
buffersize
This property determines the maximum size of the shipment that is sent at one time. |
private boolean |
CompleteFlag
Flag to indicate shipment complete |
private boolean |
entireShipmentFLAG
This flag indicates whether or not entire shipment is stored. |
private SPMap |
lastReceivedSent
This stores the last recieved incoming shipments. |
private int |
lastRecSent
This value holds the last shipment part number sent. |
private boolean |
manualSendFLAG
This flag determines whether MANUAL send is in use. |
private int |
maxReceiveSendStore
Maximum acknowledged messages receivecount. |
private java.lang.String |
mt_ack
|
private java.lang.String |
mt_configship
|
private java.lang.String |
mt_requestship
|
private java.lang.String |
mt_ship
|
private boolean |
SendOKFlag
Flag, ready to send |
private int |
shipcount
This value holds the number of shipments SUCCESSFULLY SENT! |
private byte[] |
shipment
This holds the currently active/sent shipment - it is held until all Acks are received |
private java.lang.String |
ShippedObjectClass
This is the name of the Class that Shipped Object is from. |
private java.lang.String |
ShippedObjectDistinguishedName
This is the senders unique name for the class (optional) |
private long |
totalRecSent
This value holds the total number of bytes recieved or sent. |
private long |
totalSize
This value holds the total size of shipment. |
| Fields inherited from class com.SecurePlay.SPAbstractTransactionClass |
AGE, configuration, gameinstance, mt_completeTransaction, mt_error, privateflag, releaseversion, status_error, status_ready, transactionstatus, transtype |
| Fields inherited from class com.SecurePlay.SPRootTransactionClass |
comms, EventListenerList, gameID, insend, master, playerIDList, ReSend_altmessage, ReSend_encryptflag, ReSend_messagebody, ReSend_messageID, ReSend_messagetype, ReSend_privateflag, ReSend_receivers, ReSend_sender, secureplay, transactionID |
| Constructor Summary | |
private |
SPTShipClass()
Default Constructor |
|
SPTShipClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
Construcotr. |
| Method Summary | |
SPAbstractTransactionInterface |
APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
Creates a new instance of an SPSecretClass class. |
byte[] |
APIgetEntireShipment()
This method returns the entire shipment, if possible. |
SPMap |
APIgetLastReceivedSent()
|
byte[] |
APIgetLastShipment()
|
int |
APIgetShipcount()
|
byte[] |
APIgetShipment(int i)
Return specified recent shipment |
java.lang.String |
APIgetTransactionType()
This method returns a String of the transactiontype. |
boolean |
APIrequestsendShipment(java.lang.String sender)
This method requests send shipments automatically. |
boolean |
APIresendShipment(java.lang.String sender,
int shipcount,
java.lang.String[] recieverIdList)
This shipment sends the specified shipment, grabbed from the last sent list using the shipment number, to the specified players. |
boolean |
APIsendShipment(java.lang.String sender)
This method send shipments automatically. |
boolean |
APIsendShipment(java.lang.String sender,
byte[] manualShip)
This method sends a shipment manually. |
boolean |
APIsetMaxRecieve(int i)
Allows the maximum size of the byte[] MAP to be increased (growing the size of the buffer). |
private boolean |
configureTransaction(java.lang.String sender,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname)
This method just sets the configure parameter of this class much like a setter function. |
static SPAbstractTransactionInterface |
createShip(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
This method creates the Ship class |
java.lang.String[] |
getAckList()
|
int |
getBuffersize()
|
int |
getLastRecSent()
|
int |
getMaxReceiveSendStore()
|
private java.lang.String[] |
getPlayersInThisLoc()
This method retrieves the player id list of players that are internal to this location and are included in this transaction. |
java.lang.String |
getShippedObjectClass()
|
java.lang.String |
getShippedObjectDistinguishedName()
|
long |
getTotalRecSent()
|
long |
getTotalSize()
|
static java.lang.String |
gettranstype()
This method gets the transaction type. |
boolean |
isAcknowledgeFLAG()
|
boolean |
isCompleteFlag()
|
boolean |
isEntireShipmentFLAG()
|
boolean |
isManualSendFLAG()
|
boolean |
isSendOKFlag()
|
private boolean |
onrequestsendShipment(SPMessageClass incoming)
|
private boolean |
onsendAck(SPMessageClass mess)
This method handles acknowledgements recieved. |
private boolean |
onsendShipment(SPMessageClass mess)
This method recieves shipmetns. |
boolean |
pronincomingTransaction(SPMessageClass incoming)
this is a shell for unique incoming transactions |
private boolean |
putLastReceivedSent(int count,
byte[] ship)
This method adds a shipment to the last recieved sent shipment list. |
static boolean |
registerTransaction()
Registers this transaction. |
private boolean |
sendAck(java.lang.String reciever,
boolean boolAck,
java.lang.String info,
int lastSeccessShipCount)
This method send acknowledgements to the sender of the shipment. |
private boolean |
sendOneShipment(java.lang.String sender,
int shipmentCount,
java.lang.String[] recievers,
byte[] shipMent,
boolean resendflag)
This method builds a shipment message and sends it. |
| Methods inherited from class com.SecurePlay.SPAbstractTransactionClass |
APIcompleteTransaction, APIgetAGE, APIgetConfiguration, APIgetGameinstance, APIgetPrivacyFlag, APIgetTransactionstatus, APIisPlayerInternal, APIisTransError, APIsetTransactionID, logError, onincomingTransaction, prinit, pruniqueinit, setAGE |
| Methods inherited from class com.SecurePlay.SPRootTransactionClass |
APIaddListener, APIclearListeners, APIgetGameID, APIgetGetReplayList, APIgetListenerCount, APIgetListeners, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, APIisPlayerIncluded, APIremoveListener, APIReplayRemoveOldSender, APIresendLastMessage, APIsetReplayList, APIsetSecurePlayClass, detectReplay, sendMessage, SPnotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.SecurePlay.SPAbstractTransactionInterface |
APIgetGameID, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, sendMessage |
| Field Detail |
private final java.lang.String mt_ack
private final java.lang.String mt_ship
private final java.lang.String mt_requestship
private final java.lang.String mt_configship
private boolean entireShipmentFLAG
private boolean acknowledgeFLAG
private boolean manualSendFLAG
private int buffersize
private byte[] shipment
private long totalSize
private java.lang.String ShippedObjectClass
private java.lang.String ShippedObjectDistinguishedName
private java.lang.String[] AckList
private boolean CompleteFlag
private boolean SendOKFlag
private int maxReceiveSendStore
private SPMap lastReceivedSent
private int shipcount
private int lastRecSent
private long totalRecSent
| Constructor Detail |
private SPTShipClass()
public SPTShipClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
gameobj - SPGameInterface - game associated with this transaction.master - String - the master of this transaction.playerIDList - String[] - player id list of player who are included in this transaction.privateflag - boolean - private flag.transactionID - String - transactino id.| Method Detail |
private boolean configureTransaction(java.lang.String sender,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname)
sender - String - player id of the player who authorized this configure.AckFlag - boolean - acknowledgement flag, flag whether or not achknowledgements should be expected before next send of the shipment.ManFlag - boolean - manual flag, flag for manual or automatic shipment sending.bsize - int - buffer size.tsize - long - total size. (NOTE: the total size is limited by the size of the int, because array types can only support ints as index.)classname - String - class name.instname - String - instance name.
public boolean APIsendShipment(java.lang.String sender,
byte[] manualShip)
sender - String - sender of this shipment (master of the transaction)manualShip - byte[] - the shipment to be sent.
private boolean onsendShipment(SPMessageClass mess)
mess - SPMessageClass - the message that contains the shipment.
public boolean APIsendShipment(java.lang.String sender)
sender - String - sender of this shipment.
public boolean APIrequestsendShipment(java.lang.String sender)
sender - String - sender of this shipment.
private boolean onrequestsendShipment(SPMessageClass incoming)
public boolean APIresendShipment(java.lang.String sender,
int shipcount,
java.lang.String[] recieverIdList)
sender - shipcount - recieverIdList -
private boolean sendOneShipment(java.lang.String sender,
int shipmentCount,
java.lang.String[] recievers,
byte[] shipMent,
boolean resendflag)
sender - String - sender of this shipment.shipmentCount - int - the shipment number.recievers - String[] - recievers of this shipment.shipMent - byte[] - the shipment to be shipped.resendflag - - boolean - resend flag.
private boolean sendAck(java.lang.String reciever,
boolean boolAck,
java.lang.String info,
int lastSeccessShipCount)
reciever - String - reciever of the acknowledgement, or the sender of the shipment.boolAck - boolean - this determines if it is an ACK or a NACK.info - String - brief description of the ack or an error report of the NACK.lastSeccessShipCount - int - last good shipment recieved, in case of ACK it should be the last shipment sent.
private boolean onsendAck(SPMessageClass mess)
mess - SPMessageClass - incoming message
private boolean putLastReceivedSent(int count,
byte[] ship)
count - int - shipment count.ship - - byte[] the shipment
public boolean pronincomingTransaction(SPMessageClass incoming)
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
private java.lang.String[] getPlayersInThisLoc()
public java.lang.String[] getAckList()
public boolean isAcknowledgeFLAG()
public int getBuffersize()
public boolean isCompleteFlag()
public boolean isEntireShipmentFLAG()
public SPMap APIgetLastReceivedSent()
public boolean APIsetMaxRecieve(int i)
i - - int - new size for the array of byte[]s
public int getLastRecSent()
public boolean isManualSendFLAG()
public int getMaxReceiveSendStore()
public boolean isSendOKFlag()
public int APIgetShipcount()
public byte[] APIgetLastShipment()
public byte[] APIgetEntireShipment()
public byte[] APIgetShipment(int i)
i - - count of requested shipment
public java.lang.String getShippedObjectClass()
public java.lang.String getShippedObjectDistinguishedName()
public long getTotalSize()
public long getTotalRecSent()
public static java.lang.String gettranstype()
public static boolean registerTransaction()
public static SPAbstractTransactionInterface createShip(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
gameobj - master - playerIDList - privateflag - AGE - AckFlag - ManFlag - bsize - tsize - classname - instname - entireshipment -
public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
APIcreateTransaction in interface SPAbstractTransactionInterfaceAPIcreateTransaction in class SPAbstractTransactionClassgameapiobj - SPGameInterface - game associated with this transaction.message - SPMessageClass - message that has all the transaction configure info
public java.lang.String APIgetTransactionType()
APIgetTransactionType in interface SPAbstractTransactionInterfaceAPIgetTransactionType in class SPAbstractTransactionClass
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||