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 shortconnSNintorigSNCipPathrouteshortvendor-
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 voidaccept(CipReply reply)Applications and routers call this method with the actual reply to pass back up the chain of callers.intpayloadLength()Subclasses must override this unless they populate the payload and payloadActual fields.voidputPayload(java.nio.ByteBuffer dest)Implementations must call this method at the beginning of their putPayload() method.voidsetPayload(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:CxMgrReqImplementations must call this method at the beginning of their setPayload() method.- Specified by:
setPayloadin interfaceCipMessage- Overrides:
setPayloadin classCxMgrReq- Parameters:
source- Source buffer containing the encoded new payload.
-
putPayload
public void putPayload(java.nio.ByteBuffer dest)
Description copied from class:CxMgrReqImplementations must call this method at the beginning of their putPayload() method.- Specified by:
putPayloadin interfaceCipMessage- Overrides:
putPayloadin classCxMgrReq- Parameters:
dest- Destination buffer for the encoded payload.
-
payloadLength
public int payloadLength()
Description copied from class:CipRequestSubclasses must override this unless they populate the payload and payloadActual fields.- Specified by:
payloadLengthin interfaceCipMessage- Overrides:
payloadLengthin classCipRequest- Returns:
- The byte length of the encoded payload only.
-
accept
public void accept(CipReply reply)
Description copied from class:CipRequestApplications 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:
acceptin interfaceCipReplyConsumer- Overrides:
acceptin classCipRequest
-
-