Class FwdCloseReq
- java.lang.Object
-
- com.automation_pros.odva.cip.requests.CipRequest
-
- com.automation_pros.odva.cip.requests.CxMgrReq
-
- com.automation_pros.odva.cip.requests.FwdCloseReq
-
- All Implemented Interfaces:
CipReplyConsumer
,CipMessage
,java.io.Externalizable
,java.io.Serializable
public class FwdCloseReq extends CxMgrReq
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.requests.CipRequest
CipRequest.CallbackException, CipRequest.ChainedException, CipRequest.ReplyFuture
-
-
Field Summary
Fields Modifier and Type Field Description short
connSN
int
origSN
CipPath
route
short
vendor
-
Fields inherited from class com.automation_pros.odva.cip.requests.CipRequest
acceptTrace, acceptTS, callbacks, creationTrace, deadline, forecastReply, maxreply, path, scheduler, sentTS, sLogger, svccode
-
-
Constructor Summary
Constructors Constructor Description FwdCloseReq()
FwdCloseReq(short connSN, short vendor, int origSN, CipPath route)
FwdCloseReq(ConxInstance conx, CipPath route)
FwdCloseReq(CipPath target, int service)
FwdCloseReq(CipPath target, int service, java.nio.ByteBuffer source)
FwdCloseReq(FwdCloseReq other, int nesting)
FwdCloseReq(java.nio.ByteBuffer source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(CipReply reply)
Applications and routers call this method with the actual reply to pass back up the chain of callers.int
payloadLength()
Subclasses must override this unless they populate the payload and payloadActual fields.void
putPayload(java.nio.ByteBuffer dest)
Implementations must call this method at the beginning of their putPayload() method.void
setPayload(java.nio.ByteBuffer source)
Implementations must call this method at the beginning of their setPayload() method.-
Methods inherited from class com.automation_pros.odva.cip.requests.CxMgrReq
clone, getTimeoutMillis, setTimeoutMillis
-
Methods inherited from class com.automation_pros.odva.cip.requests.CipRequest
accept, accept, addCallback, addCallback, addFutureCallback, bytes, decode, forecast, getPayload, getServiceCode, getSyncReply, getSyncReply, getTarget, payloadBytes, payloadString, put, putSyncReplyPayload, putSyncReplyPayload, readExternal, replyLength, rewrapRequest, service, service, serviceName, set, takeCallbacks, toBytes, toString, writeExternal
-
-
-
-
Field Detail
-
connSN
public short connSN
-
vendor
public short vendor
-
origSN
public int origSN
-
route
public CipPath route
-
-
Constructor Detail
-
FwdCloseReq
public FwdCloseReq(short connSN, short vendor, int origSN, CipPath route)
-
FwdCloseReq
public FwdCloseReq(ConxInstance conx, CipPath route)
-
FwdCloseReq
public FwdCloseReq(FwdCloseReq other, int nesting)
-
FwdCloseReq
public FwdCloseReq(CipPath target, int service)
-
FwdCloseReq
public FwdCloseReq(CipPath target, int service, java.nio.ByteBuffer source)
-
FwdCloseReq
public FwdCloseReq()
-
FwdCloseReq
public FwdCloseReq(java.nio.ByteBuffer source)
-
-
Method Detail
-
setPayload
public void setPayload(java.nio.ByteBuffer source)
Description copied from class:CxMgrReq
Implementations must call this method at the beginning of their setPayload() method.- Specified by:
setPayload
in interfaceCipMessage
- Overrides:
setPayload
in classCxMgrReq
- Parameters:
source
- Source buffer containing the encoded new payload.
-
putPayload
public void putPayload(java.nio.ByteBuffer dest)
Description copied from class:CxMgrReq
Implementations must call this method at the beginning of their putPayload() method.- Specified by:
putPayload
in interfaceCipMessage
- Overrides:
putPayload
in classCxMgrReq
- Parameters:
dest
- Destination buffer for the encoded payload.
-
payloadLength
public int payloadLength()
Description copied from class:CipRequest
Subclasses must override this unless they populate the payload and payloadActual fields.- Specified by:
payloadLength
in interfaceCipMessage
- Overrides:
payloadLength
in classCipRequest
- Returns:
- The byte length of the encoded payload only.
-
accept
public void accept(CipReply reply)
Description copied from class:CipRequest
Applications and routers call this method with the actual reply to pass back up the chain of callers. Routers must embed some form of ID code in their protocol packets to associate requests with replies. DeviceNet uses originator node address and a 16-bit transaction ID. Ethernet/IP uses the 64-bit Sender Context field of its encapsulation header. CIP over DF1 uses the 16-bit Transaction Number inside of PCCC encapsulation.- Specified by:
accept
in interfaceCipReplyConsumer
- Overrides:
accept
in classCipRequest
-
-