org.tranche.remote
Class Token

java.lang.Object
  extended by org.tranche.remote.Token

public class Token
extends java.lang.Object

Abstraction for the commands.

Author:
Jayson Falkner - jfalkner@umich.edu, Bryan Smith - bryanesmith@gmail.com, James "Augie" Hill - augman85@gmail.com

Field Summary
static byte[] CLOSE
          The bytes form of CLOSE_STRING
static java.lang.String CLOSE_STRING
          The token for telling a server to close the connection
static byte[] DATA
          The bytes form of DATA_STRING
static java.lang.String DATA_STRING
          The token for sending data
static byte[] DELETE_DATA
          The bytes form of DELETE_DATA_STRING
static java.lang.String DELETE_DATA_STRING
          The token for deleting data
static byte[] DELETE_META
          The bytes form of DELETE_META_STRING
static java.lang.String DELETE_META_STRING
          The token for deleting data
static byte EOL
          The new line
static byte[] ERROR
          The bytes of the ERROR_STRING
static java.lang.String ERROR_META_DATA_TOO_BIG
          Meta data can only be so big.
static java.lang.String ERROR_STRING
          The token for sending errors
static byte[] GET_ACTIVITY_LOG_ENTRIES
          The byte array form of GET_ACTIVITY_LOG_ENTRIES_STRING.
static byte[] GET_ACTIVITY_LOG_ENTRIES_COUNT
          The byte array form of GET_ACTIVITY_LOG_ENTRIES_COUNT_STRING.
static java.lang.String GET_ACTIVITY_LOG_ENTRIES_COUNT_STRING
          The token for getting activity log entries count.
static java.lang.String GET_ACTIVITY_LOG_ENTRIES_STRING
          The token for getting activity log entries.
static byte[] GET_CONFIGURATION
          The bytes form of GET_CONFIGURATION_STRING
static byte[] GET_CONFIGURATION_NO_SIG
          The bytes form of GET_CONFIGURATION_NO_SIG_STRING
static java.lang.String GET_CONFIGURATION_NO_SIG_STRING
          The token for getting configuration
static java.lang.String GET_CONFIGURATION_STRING
          The token for getting configuration
static byte[] GET_DATA
          The bytes form of GET_DATA_STRING
static byte[] GET_DATA_HASHES
          The bytes form of GET_DATA_HASHSES_STRING
static java.lang.String GET_DATA_HASHES_STRING
          The token for getting data hashes
static java.lang.String GET_DATA_STRING
          The token for asking for data
static byte[] GET_META
          The bytes form of GET_META_STRING
static byte[] GET_META_HASHES
          The bytes form of GET_META_HASHES_STRING
static java.lang.String GET_META_HASHES_STRING
          The token for getting meta-data hashes
static java.lang.String GET_META_STRING
          The token for sending meta-data
static byte[] GET_NETWORK_STATUS_PORTION
          The bytes form of GET_NETWORK_STATUS_STRING
static java.lang.String GET_NETWORK_STATUS_PORTION_STRING
          Token for a network status request.
static byte[] GET_NONCES
          The bytes form of GET_NONCE_STRING
static java.lang.String GET_NONCES_STRING
          The token for sending nonce
static byte[] GET_PROJECT_HASHES
          The bytes form of GET_PROJECT_HASHES_STRING
static java.lang.String GET_PROJECT_HASHES_STRING
          The token for getting project hashes
static byte[] HAS_DATA
          The bytes form of HAS_DATA_STRING
static java.lang.String HAS_DATA_STRING
          The token for pinging data
static byte[] HAS_META
          The bytes form of HAS_META_STRING
static java.lang.String HAS_META_STRING
          The token for sending meta-data
static byte[] KEEP_ALIVE
          The bytes of the KEEP_ALIVE_STRING
static java.lang.String KEEP_ALIVE_STRING
          The token to reset a timeout.
static byte[] NO
          The bytes of the NO_STRING
static java.lang.String NO_STRING
          The token for negation
static byte[] OK
          The bytes of the OK_STRING
static java.lang.String OK_STRING
          The token for confirmation
static byte[] PING
          The bytes form of PING_STRING
static java.lang.String PING_STRING
          The token for pinging the server
static byte[] REGISTER_SERVER
          The bytes form of ADD_SERVER_STRING
static java.lang.String REGISTER_SERVER_STRING
          The token for registering a server
static byte[] REJECTED_CONNECTION
          The bytes form of REJECTED_CONNECTION_STRING
static java.lang.String REJECTED_CONNECTION_STRING
          Rejected connection string
static java.lang.String REQUEST_ERROR
          Special error for request problems.
static java.lang.String SECURITY_ERROR
          Special error for security problems.
static byte[] SET_CONFIGURATION
          The bytes form of SET_CONFIGURATION_STRING
static java.lang.String SET_CONFIGURATION_STRING
          The token for sending data
static byte[] SET_DATA
          The bytes form of SET_DATA_STRING
static java.lang.String SET_DATA_STRING
          The token for deleting data
static byte[] SET_META
          The bytes form of SET_META_STRING
static java.lang.String SET_META_STRING
          The token for deleting data
static byte[] SHUTDOWN
          The bytes form of SHUTDOWN_STRING
static java.lang.String SHUTDOWN_STRING
          Token for a remote shutdown request.
 
Constructor Summary
Token()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK_STRING

public static final java.lang.String OK_STRING

The token for confirmation

See Also:
Constant Field Values

OK

public static final byte[] OK

The bytes of the OK_STRING


KEEP_ALIVE_STRING

public static final java.lang.String KEEP_ALIVE_STRING

The token to reset a timeout.

See Also:
Constant Field Values

KEEP_ALIVE

public static final byte[] KEEP_ALIVE

The bytes of the KEEP_ALIVE_STRING


NO_STRING

public static final java.lang.String NO_STRING

The token for negation

See Also:
Constant Field Values

NO

public static final byte[] NO

The bytes of the NO_STRING


ERROR_STRING

public static final java.lang.String ERROR_STRING

The token for sending errors

See Also:
Constant Field Values

ERROR

public static final byte[] ERROR

The bytes of the ERROR_STRING


DATA_STRING

public static final java.lang.String DATA_STRING

The token for sending data

See Also:
Constant Field Values

DATA

public static final byte[] DATA

The bytes form of DATA_STRING


SHUTDOWN_STRING

public static final java.lang.String SHUTDOWN_STRING

Token for a remote shutdown request.

See Also:
Constant Field Values

SHUTDOWN

public static final byte[] SHUTDOWN

The bytes form of SHUTDOWN_STRING


GET_NETWORK_STATUS_PORTION_STRING

public static final java.lang.String GET_NETWORK_STATUS_PORTION_STRING

Token for a network status request.

See Also:
Constant Field Values

GET_NETWORK_STATUS_PORTION

public static final byte[] GET_NETWORK_STATUS_PORTION

The bytes form of GET_NETWORK_STATUS_STRING


GET_DATA_STRING

public static final java.lang.String GET_DATA_STRING

The token for asking for data

See Also:
Constant Field Values

GET_DATA

public static final byte[] GET_DATA

The bytes form of GET_DATA_STRING


GET_META_STRING

public static final java.lang.String GET_META_STRING

The token for sending meta-data

See Also:
Constant Field Values

GET_META

public static final byte[] GET_META

The bytes form of GET_META_STRING


HAS_DATA_STRING

public static final java.lang.String HAS_DATA_STRING

The token for pinging data

See Also:
Constant Field Values

HAS_DATA

public static final byte[] HAS_DATA

The bytes form of HAS_DATA_STRING


HAS_META_STRING

public static final java.lang.String HAS_META_STRING

The token for sending meta-data

See Also:
Constant Field Values

HAS_META

public static final byte[] HAS_META

The bytes form of HAS_META_STRING


GET_NONCES_STRING

public static final java.lang.String GET_NONCES_STRING

The token for sending nonce

See Also:
Constant Field Values

GET_NONCES

public static final byte[] GET_NONCES

The bytes form of GET_NONCE_STRING


PING_STRING

public static final java.lang.String PING_STRING

The token for pinging the server

See Also:
Constant Field Values

PING

public static final byte[] PING

The bytes form of PING_STRING


GET_DATA_HASHES_STRING

public static final java.lang.String GET_DATA_HASHES_STRING

The token for getting data hashes

See Also:
Constant Field Values

GET_DATA_HASHES

public static final byte[] GET_DATA_HASHES

The bytes form of GET_DATA_HASHSES_STRING


GET_PROJECT_HASHES_STRING

public static final java.lang.String GET_PROJECT_HASHES_STRING

The token for getting project hashes

See Also:
Constant Field Values

GET_PROJECT_HASHES

public static final byte[] GET_PROJECT_HASHES

The bytes form of GET_PROJECT_HASHES_STRING


GET_META_HASHES_STRING

public static final java.lang.String GET_META_HASHES_STRING

The token for getting meta-data hashes

See Also:
Constant Field Values

GET_META_HASHES

public static final byte[] GET_META_HASHES

The bytes form of GET_META_HASHES_STRING


DELETE_DATA_STRING

public static final java.lang.String DELETE_DATA_STRING

The token for deleting data

See Also:
Constant Field Values

DELETE_DATA

public static final byte[] DELETE_DATA

The bytes form of DELETE_DATA_STRING


DELETE_META_STRING

public static final java.lang.String DELETE_META_STRING

The token for deleting data

See Also:
Constant Field Values

DELETE_META

public static final byte[] DELETE_META

The bytes form of DELETE_META_STRING


SET_DATA_STRING

public static final java.lang.String SET_DATA_STRING

The token for deleting data

See Also:
Constant Field Values

SET_DATA

public static final byte[] SET_DATA

The bytes form of SET_DATA_STRING


SET_META_STRING

public static final java.lang.String SET_META_STRING

The token for deleting data

See Also:
Constant Field Values

SET_META

public static final byte[] SET_META

The bytes form of SET_META_STRING


REGISTER_SERVER_STRING

public static final java.lang.String REGISTER_SERVER_STRING

The token for registering a server

See Also:
Constant Field Values

REGISTER_SERVER

public static final byte[] REGISTER_SERVER

The bytes form of ADD_SERVER_STRING


CLOSE_STRING

public static final java.lang.String CLOSE_STRING

The token for telling a server to close the connection

See Also:
Constant Field Values

CLOSE

public static final byte[] CLOSE

The bytes form of CLOSE_STRING


GET_CONFIGURATION_NO_SIG_STRING

public static final java.lang.String GET_CONFIGURATION_NO_SIG_STRING

The token for getting configuration

See Also:
Constant Field Values

GET_CONFIGURATION_NO_SIG

public static final byte[] GET_CONFIGURATION_NO_SIG

The bytes form of GET_CONFIGURATION_NO_SIG_STRING


GET_CONFIGURATION_STRING

public static final java.lang.String GET_CONFIGURATION_STRING

The token for getting configuration

See Also:
Constant Field Values

GET_CONFIGURATION

public static final byte[] GET_CONFIGURATION

The bytes form of GET_CONFIGURATION_STRING


SET_CONFIGURATION_STRING

public static final java.lang.String SET_CONFIGURATION_STRING

The token for sending data

See Also:
Constant Field Values

SET_CONFIGURATION

public static final byte[] SET_CONFIGURATION

The bytes form of SET_CONFIGURATION_STRING


GET_ACTIVITY_LOG_ENTRIES_STRING

public static final java.lang.String GET_ACTIVITY_LOG_ENTRIES_STRING

The token for getting activity log entries.

See Also:
Constant Field Values

GET_ACTIVITY_LOG_ENTRIES

public static final byte[] GET_ACTIVITY_LOG_ENTRIES

The byte array form of GET_ACTIVITY_LOG_ENTRIES_STRING.


GET_ACTIVITY_LOG_ENTRIES_COUNT_STRING

public static final java.lang.String GET_ACTIVITY_LOG_ENTRIES_COUNT_STRING

The token for getting activity log entries count.

See Also:
Constant Field Values

GET_ACTIVITY_LOG_ENTRIES_COUNT

public static final byte[] GET_ACTIVITY_LOG_ENTRIES_COUNT

The byte array form of GET_ACTIVITY_LOG_ENTRIES_COUNT_STRING.


EOL

public static final byte EOL

The new line

See Also:
Constant Field Values

REJECTED_CONNECTION_STRING

public static final java.lang.String REJECTED_CONNECTION_STRING

Rejected connection string

See Also:
Constant Field Values

REJECTED_CONNECTION

public static final byte[] REJECTED_CONNECTION

The bytes form of REJECTED_CONNECTION_STRING


SECURITY_ERROR

public static final java.lang.String SECURITY_ERROR

Special error for security problems.

See Also:
Constant Field Values

REQUEST_ERROR

public static final java.lang.String REQUEST_ERROR

Special error for request problems.

See Also:
Constant Field Values

ERROR_META_DATA_TOO_BIG

public static final java.lang.String ERROR_META_DATA_TOO_BIG

Meta data can only be so big.

See Also:
Constant Field Values
Constructor Detail

Token

public Token()


This code is free for use both commercially and non-commercially as stated in the project's license