2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.transport
Class EpcglobalLlrpTransport

java.lang.Object
  extended by ResponseTransport
      extended by org.eclipse.soda.dk.epcglobal.llrp.transport.EpcglobalLlrpTransport
All Implemented Interfaces:
EpcglobalLlrpTransportService

public class EpcglobalLlrpTransport
extends ResponseTransport
implements EpcglobalLlrpTransportService

EPCglobal Low Level Reader Protocol (LLRP) Transport.

The Device Kit properties CONNECTION_KEYS and default values.

epcgloballlrptransport.writesize -1
epcgloballlrptransport.linger -1
epcgloballlrptransport.readsize -1
epcgloballlrptransport.remoteport 5084
epcgloballlrptransport.host epcgloballlrp
epcgloballlrptransport.readtimeout 1000
epcgloballlrptransport.localport -1
epcgloballlrptransport.connection tcpip
epcgloballlrptransport.responsetimeout 1000
epcgloballlrptransport.writesize=-1 epcgloballlrptransport.linger=-1 epcgloballlrptransport.readsize=-1 epcgloballlrptransport.remoteport=5084 epcgloballlrptransport.host=epcgloballlrp epcgloballlrptransport.readtimeout=1000 epcgloballlrptransport.localport=-1 epcgloballlrptransport.connection=tcpip epcgloballlrptransport.responsetimeout=1000

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
EpcglobalLlrpTransportService,

See the following specification(s) for more details:

Title: EPCglobal Low Level Reader Protocol (LLRP)
URL: http://www.epcglobalinc.org/standards/llrp
Version: 1.0.1
Date: August 13, 2007
Vendor: EPCglobal
Comment: Ratified

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
protected static byte[] KEEPALIVE_ACK_BYTES
          Define the keepalive ack bytes (byte[]) constant.
protected  ParameterMessage noActivityMessage
          Define the no activity message (ParameterMessage) field.
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.transport.service.EpcglobalLlrpTransportService
FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, ReaderEventParameter, SERVICE_NAME, TCPIP_HOST_DEFAULT, TCPIP_LINGER_DEFAULT, TCPIP_LINGER_PROPERTY, TCPIP_LOCALHOST_DEFAULT, TCPIP_LOCALHOST_PROPERTY, TCPIP_LOCALPORT_DEFAULT, TCPIP_LOCALPORT_PROPERTY, TCPIP_READSIZE_DEFAULT, TCPIP_READSIZE_PROPERTY, TCPIP_READTIMEOUT_DEFAULT, TCPIP_READTIMEOUT_PROPERTY, TCPIP_REMOTEHOST_DEFAULT, TCPIP_REMOTEHOST_PROPERTY, TCPIP_REMOTEPORT_DEFAULT, TCPIP_REMOTEPORT_PROPERTY, TCPIP_WRITESIZE_DEFAULT, TCPIP_WRITESIZE_PROPERTY
 
Constructor Summary
EpcglobalLlrpTransport()
          Constructs a new instance of the EpcglobalLlrpTransport class.
 
Method Summary
 ConnectionService getDefaultConnection()
          Gets the default connection.
 long getDefaultResponseTimeout()
          Gets the default response timeout.
 TcpipConnectionService getDefaultTcpipConnection()
          Gets the default tcpip connection.
 MessageService noActivityProcessingMessage()
          No activity processing message and return the MessageService result.
 void parsedMessage(int messageType, byte[] bytes, boolean maybeResponse, java.lang.Object timestamp)
          This method is invoked by the transport as a notification that a message coming from the device has been parsed
protected  int processInput(byte[] bytes, int length)
          Perform the processInput action method.
 void setup()
          Sets user-defined variables to use in the test.
 void setupCustom()
          Setup custom.
 void shutdown(boolean output)
          Shutdown with the specified output parameter.
 int startup(boolean output)
          Startup with the specified output parameter and return the int result.
 void startupMessageReceived(TransportService source, java.lang.Object timestamp, MessageService message)
          Startup message received with the specified source, timestamp and message parameters.
protected  void write(byte[] bytes, long responseTimeout)
          Write with the specified bytes and response timeout parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full class name.

Since:
1.0
See Also:
Constant Field Values

KEEPALIVE_ACK_BYTES

protected static final byte[] KEEPALIVE_ACK_BYTES
Define the keepalive ack bytes (byte[]) constant.


noActivityMessage

protected ParameterMessage noActivityMessage
Define the no activity message (ParameterMessage) field.

Constructor Detail

EpcglobalLlrpTransport

public EpcglobalLlrpTransport()
Constructs a new instance of the EpcglobalLlrpTransport class.

Since:
1.0
Method Detail

processInput

protected int processInput(byte[] bytes,
                           int length)
                    throws java.lang.Exception
Perform the processInput action method.

Parameters:
bytes - The bytes (byte[]) parameter.
length - The length (int) parameter.
Returns:
int
Throws:
java.lang.Exception

startup

public int startup(boolean output)
            throws java.lang.Exception
Startup with the specified output parameter and return the int result.

Parameters:
output - The output (boolean) parameter.
Returns:
Results of the startup (int) value.
Throws:
java.lang.Exception - Exception.

noActivityProcessingMessage

public MessageService noActivityProcessingMessage()
No activity processing message and return the MessageService result.

Returns:
Results of the no activity processing message (MessageService) value.

parsedMessage

public void parsedMessage(int messageType,
                          byte[] bytes,
                          boolean maybeResponse,
                          java.lang.Object timestamp)
This method is invoked by the transport as a notification that a message coming from the device has been parsed

Parameters:
messageType - The message type (int) parameter.
bytes - The bytes (byte[]) parameter.
maybeResponse - The maybe response (boolean) parameter.
timestamp - The time stamp (Object) parameter.
See Also:
noActivityProcessingMessage()

setupCustom

public void setupCustom()
Setup custom.


shutdown

public void shutdown(boolean output)
Shutdown with the specified output parameter.

Parameters:
output - The output (boolean) parameter.

startupMessageReceived

public void startupMessageReceived(TransportService source,
                                   java.lang.Object timestamp,
                                   MessageService message)
Startup message received with the specified source, timestamp and message parameters.

Parameters:
source - The source (TransportService) parameter.
timestamp - The time stamp (Object) parameter.
message - The message (MessageService) parameter.

write

protected void write(byte[] bytes,
                     long responseTimeout)
              throws java.lang.Exception
Write with the specified bytes and response timeout parameters.

Parameters:
bytes - The bytes (byte[]) parameter.
responseTimeout - The response timeout (long) parameter.
Throws:
java.lang.Exception - Exception.

getDefaultConnection

public ConnectionService getDefaultConnection()
Gets the default connection.

Returns:
ConnectionService The default connection used by this transport.
Since:
1.0

getDefaultResponseTimeout

public long getDefaultResponseTimeout()
Gets the default response timeout.

Returns:
int The default response timeout.
Since:
1.0

getDefaultTcpipConnection

public TcpipConnectionService getDefaultTcpipConnection()
Gets the default tcpip connection.

Returns:
TcpipConnectionService The default tcpip connection used by this transport.
Since:
1.0

setup

public void setup()
Sets user-defined variables to use in the test.

User defined properties and default values.

retrytime RETRY_TIME_DEFAULT
transmitretries TRANSMIT_RETRIES_DEFAULT
noactivitytimeout NO_ACTIVITY_TIMEOUT_DEFAULT

Since:
1.0
See Also:
org.eclipse.soda.dk.transport.Transport#setup()

2010-01-26 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.