|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cvm.se.communication.NegotiationObject
public class NegotiationObject
This object handle all the states of negotiation. This is observed by a negotiation thread.
Nested Class Summary | |
---|---|
static class |
NegotiationObject.NEGOTIATION_STATES
|
Field Summary | |
---|---|
TestObject |
test
|
Constructor Summary | |
---|---|
NegotiationObject(java.lang.String connID)
Create new negotiation object |
Method Summary | |
---|---|
void |
addSchemaReceived(NegotiationSchema schema)
This function adds a schema to the list, once all the schemas are in the machine moves to the next state of negotiation. |
void |
AnalyzeSchema()
Deprecated. |
java.lang.String |
GetConnectionID()
|
ControlSchema |
getCurrentConnSchema()
|
NegotiationSchema |
getNegSchema()
|
java.util.HashMap<java.lang.String,NegotiationSchema> |
getNegSchemas()
|
void |
handleIncommingNegotiation(NegotiationSchema negSch)
This function handles the negotiation comming from the CVM, or an outside user. |
void |
handleNegotiationEnd()
This method encapsulates must of the operations that must be done at the end of negotiation. |
boolean |
isBIsAwaitingReply()
|
void |
processNegoation()
|
void |
queueDataSchema(DataSchema data)
Deprecated. |
void |
ReceivedSchema(NegotiationSchema negSchema)
Deprecated. |
void |
setBIsAwaitingReply(boolean isAwaitingReply)
|
void |
setControlSchema(ControlSchema schema)
|
void |
setCurrentConnSchema(ControlSchema currentConnSchema)
|
void |
setNegotiationState(NegotiationObject.NEGOTIATION_STATES state)
This function updates the current state of the negotiation. |
void |
setNegSchema(NegotiationSchema negSchema)
Set the negotiaotion schema. |
void |
setNegSchemas(java.util.HashMap<java.lang.String,NegotiationSchema> negSchemas)
Sets the list of negotiation schemas. |
boolean |
shouldStartNegotiation(ControlSchema schema)
This function checks for changes in the schema received in comparison to the previously agreed for the communication and signals whether it should negotiate or renegotiate. |
void |
signalNegotiationEnd()
Notify the communication process that negotiation has ended. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public TestObject test
Constructor Detail |
---|
public NegotiationObject(java.lang.String connID)
connID
- Method Detail |
---|
public void addSchemaReceived(NegotiationSchema schema)
schema
- public void AnalyzeSchema() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.String GetConnectionID()
public NegotiationSchema getNegSchema()
public java.util.HashMap<java.lang.String,NegotiationSchema> getNegSchemas()
public void handleIncommingNegotiation(NegotiationSchema negSch)
negSch
- negotiation schema received.public boolean isBIsAwaitingReply()
public void processNegoation() throws java.lang.InterruptedException
java.lang.InterruptedException
public void ReceivedSchema(NegotiationSchema negSchema)
negSchema
- Negotiation schema received from other users.public void setBIsAwaitingReply(boolean isAwaitingReply)
public void setControlSchema(ControlSchema schema)
public void setNegotiationState(NegotiationObject.NEGOTIATION_STATES state)
state
- to Set.public void setNegSchema(NegotiationSchema negSchema)
negSchema
- public void setNegSchemas(java.util.HashMap<java.lang.String,NegotiationSchema> negSchemas)
negSchemas
- public boolean shouldStartNegotiation(ControlSchema schema)
schema
-
public void signalNegotiationEnd()
public void queueDataSchema(DataSchema data)
data
- public void handleNegotiationEnd()
public ControlSchema getCurrentConnSchema()
public void setCurrentConnSchema(ControlSchema currentConnSchema)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |