public abstract class AbstractTucsonProtocol
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
NODE_ACTIVE_QUERY
Code for isInstalled() query
|
Constructor and Description |
---|
AbstractTucsonProtocol() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractTucsonProtocol |
acceptNewDialog() |
abstract void |
end() |
protected abstract void |
flush() |
ACCDescription |
getContextDescription() |
boolean |
isEnterRequest() |
boolean |
isEnterRequestAccepted() |
boolean |
isNodeActiveQuery() |
protected abstract boolean |
receiveBoolean() |
void |
receiveEnterRequest() |
void |
receiveEnterRequestAnswer() |
void |
receiveFirstRequest() |
abstract InspectorContextEvent |
receiveInspectorEvent() |
abstract NewInspectorMsg |
receiveInspectorMsg() |
protected abstract int |
receiveInt() |
abstract TucsonMsg |
receiveMsg() |
abstract TucsonMsgReply |
receiveMsgReply() |
abstract TucsonMsgRequest |
receiveMsgRequest() |
abstract NodeMsg |
receiveNodeMsg() |
protected abstract java.lang.Object |
receiveObject() |
protected abstract java.lang.String |
receiveString() |
protected abstract void |
send(boolean value) |
protected abstract void |
send(byte[] value) |
protected abstract void |
send(int value) |
protected abstract void |
send(java.lang.Object value) |
protected abstract void |
send(java.lang.String value) |
void |
sendEnterRequest(ACCDescription ctx) |
void |
sendEnterRequestAccepted() |
void |
sendEnterRequestRefused() |
abstract void |
sendInspectorEvent(InspectorContextEvent msg) |
abstract void |
sendInspectorMsg(NewInspectorMsg msg) |
abstract void |
sendMsg(TucsonMsg msg) |
abstract void |
sendMsgReply(TucsonMsgReply reply) |
abstract void |
sendMsgRequest(TucsonMsgRequest request) |
void |
sendNodeActiveReply() |
abstract void |
sendNodeMsg(NodeMsg msg) |
public static final int NODE_ACTIVE_QUERY
public abstract AbstractTucsonProtocol acceptNewDialog() throws DialogAcceptException
DialogAcceptException
- if something goes wrong in the underlying networkpublic abstract void end() throws DialogCloseException
DialogCloseException
- if something goes wrong in the underlying networkpublic ACCDescription getContextDescription()
public boolean isEnterRequest()
public boolean isEnterRequestAccepted()
public boolean isNodeActiveQuery()
public void receiveEnterRequest() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic void receiveEnterRequestAnswer() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic void receiveFirstRequest() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic abstract InspectorContextEvent receiveInspectorEvent() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic abstract NewInspectorMsg receiveInspectorMsg() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic abstract TucsonMsg receiveMsg() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic abstract TucsonMsgReply receiveMsgReply() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic abstract TucsonMsgRequest receiveMsgRequest() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic abstract NodeMsg receiveNodeMsg() throws DialogReceiveException
DialogReceiveException
- if something goes wrong in the underlying networkpublic void sendEnterRequest(ACCDescription ctx) throws DialogSendException
ctx
- the ACC profile to be associated to this protocolDialogSendException
- if something goes wrong in the underlying networkpublic void sendEnterRequestAccepted() throws DialogSendException
DialogSendException
- if something goes wrong in the underlying networkpublic void sendEnterRequestRefused() throws DialogSendException
DialogSendException
- if something goes wrong in the underlying networkpublic abstract void sendInspectorEvent(InspectorContextEvent msg) throws DialogSendException
msg
- the message to send over the networkDialogSendException
- if something goes wrong in the underlying networkpublic abstract void sendInspectorMsg(NewInspectorMsg msg) throws DialogSendException
msg
- the message to send over the networkDialogSendException
- if something goes wrong in the underlying networkpublic abstract void sendMsg(TucsonMsg msg) throws DialogSendException
msg
- the message to send over the networkDialogSendException
- if something goes wrong in the underlying networkpublic abstract void sendMsgReply(TucsonMsgReply reply) throws DialogSendException
reply
- the message to send over the networkDialogSendException
- if something goes wrong in the underlying networkpublic abstract void sendMsgRequest(TucsonMsgRequest request) throws DialogSendException
request
- the message to send over the networkDialogSendException
- if something goes wrong in the underlying networkpublic void sendNodeActiveReply() throws DialogSendException
DialogSendException
- if something goes wrong in the underlying networkpublic abstract void sendNodeMsg(NodeMsg msg) throws DialogSendException
msg
- the message to send over the networkDialogSendException
- if something goes wrong in the underlying networkprotected abstract void flush() throws java.io.IOException
java.io.IOException
- if some network problems ariseprotected abstract boolean receiveBoolean() throws java.io.IOException
java.io.IOException
- if some network problems ariseprotected abstract int receiveInt() throws java.io.IOException
java.io.IOException
- if some network problems ariseprotected abstract java.lang.Object receiveObject() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
- if the received object's class cannot be foundjava.io.IOException
- if some network problems ariseprotected abstract java.lang.String receiveString() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
- if the received object's class cannot be foundjava.io.IOException
- if some network problems ariseprotected abstract void send(boolean value) throws java.io.IOException
value
- the Jaba boolean value to sendjava.io.IOException
- if some network problems ariseprotected abstract void send(byte[] value) throws java.io.IOException
value
- the Java byte array to sendjava.io.IOException
- if some network problems ariseprotected abstract void send(int value) throws java.io.IOException
value
- the Java int value to sendjava.io.IOException
- if some network problems ariseprotected abstract void send(java.lang.Object value) throws java.io.IOException
value
- the Java object to sendjava.io.IOException
- if some network problems ariseprotected abstract void send(java.lang.String value) throws java.io.IOException
value
- the Java String to sendjava.io.IOException
- if some network problems arise