|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.DCServerFactory
public class DCServerFactory
Nested Class Summary | |
---|---|
static class |
DCServerFactory.ResultCode
ResultCode enumeration for server command responses |
Field Summary | |
---|---|
static java.lang.String |
AGORABEE_NAME
|
static java.lang.String |
ANTARES_NAME
|
static java.lang.String |
ANTX_NAME
|
static java.lang.String[] |
ARG_commandPort
|
static java.lang.String[] |
ARG_satPort
|
static java.lang.String[] |
ARG_tcpPort
|
static java.lang.String[] |
ARG_udpPort
|
static java.lang.String |
ARKNAV35_NAME
|
static java.lang.String |
ASPICORE_NAME
|
static java.lang.String |
ASTRA_NAME
|
static java.lang.String |
ATRACK_NAME
|
static java.lang.String |
ATTR_bindAddress
|
static java.lang.String |
ATTR_enabled
|
static java.lang.String |
ATTR_index
|
static java.lang.String |
ATTR_mask
|
static java.lang.String |
ATTR_rtPropPrefix
|
static java.lang.String |
AXONN_NAME
|
static java.lang.String |
BIGWATCHER_NAME
|
static java.lang.String |
BIND_ADDRESS
|
static java.lang.String |
BLUETREE_NAME
|
static java.lang.String |
CALAMP_NAME
|
static java.lang.String |
CFG_ackResponsePort
|
static java.lang.String |
CFG_batteryLevelProfile
|
static java.lang.String |
CFG_batteryLevelRange
|
static java.lang.String |
CFG_checkLastOdometer
|
static java.lang.String |
CFG_clientCommandPort
|
static java.lang.String |
CFG_clientCommandPort_tcp
|
static java.lang.String |
CFG_clientCommandPort_udp
|
static java.lang.String |
CFG_ClientPacketHandler_class
|
static java.lang.String |
CFG_commandAckBit_
|
static java.lang.String |
CFG_CommandPacketHandler_class
|
static java.lang.String |
CFG_commandPort
|
static java.lang.String |
CFG_commandProtocol
|
static java.lang.String |
CFG_debugMode
|
static java.lang.String |
CFG_estimateOdometer
|
static java.lang.String |
CFG_eventDataAnalog_
|
static java.lang.String |
CFG_finalPacket
|
static java.lang.String |
CFG_fuelLevelProfile
|
static java.lang.String |
CFG_geozoneSkipOldEvents
|
static java.lang.String |
CFG_ignoreDeviceOdometer
|
static java.lang.String |
CFG_ignoreEventsWithInvalidGPS
|
static java.lang.String |
CFG_ignoreInvalidGPSFlag
|
static java.lang.String |
CFG_initialPacket
|
static java.lang.String |
CFG_maximumAccuracyMeters
|
static java.lang.String |
CFG_maximumHDOP
|
static java.lang.String |
CFG_minimumMovedMeters
|
static java.lang.String |
CFG_minimumSatelliteCount
|
static java.lang.String |
CFG_minimumSpeedKPH
|
static java.lang.String |
CFG_port
|
static java.lang.String |
CFG_satPort
|
static java.lang.String |
CFG_saveRawDataPackets
|
static java.lang.String |
CFG_saveSessionStatistics
|
static java.lang.String |
CFG_showURL
|
static java.lang.String |
CFG_simulateDigitalInputs
|
static java.lang.String |
CFG_simulateGeozones
|
static java.lang.String |
CFG_startStopStatusCodes
|
static java.lang.String |
CFG_startStopSupported
|
static java.lang.String |
CFG_statusLocationInMotion
|
static java.lang.String |
CFG_tcpIdleTimeoutMS
|
static java.lang.String |
CFG_tcpPacketTimeoutMS
|
static java.lang.String |
CFG_tcpPort
|
static java.lang.String |
CFG_tcpSessionTimeoutMS
|
static java.lang.String |
CFG_TrackServer_class
|
static java.lang.String |
CFG_udpIdleTimeoutMS
|
static java.lang.String |
CFG_udpPacketTimeoutMS
|
static java.lang.String |
CFG_udpPort
|
static java.lang.String |
CFG_udpSessionTimeoutMS
|
static java.lang.String |
CFG_uniqueIdPrefix
|
static java.lang.String |
CFG_uniquePrefix
|
static java.lang.String |
CFG_useAltCurrentTimestamp
|
static java.lang.String |
CFG_useLastValidGPSLocation
|
static java.lang.String |
CITGT02_NAME
|
static java.lang.String |
CITGT06_NAME
|
static java.lang.String |
CLEARCOMM_NAME
|
static java.lang.String |
CMDARG_ACCOUNT
|
static java.lang.String |
CMDARG_ARG
|
static java.lang.String |
CMDARG_CMDNAME
|
static java.lang.String |
CMDARG_CMDTYPE
|
static java.lang.String |
CMDARG_DEVICE
|
static java.lang.String |
CMDARG_SERVER
|
static java.lang.String |
CMDARG_UNIQUE
|
static java.lang.String |
CMDARG_USER
|
static java.lang.String |
CMDTYPE_ADMIN
|
static java.lang.String |
CMDTYPE_ALL
|
static java.lang.String |
CMDTYPE_GARMIN
|
static java.lang.String |
CMDTYPE_MAP
|
static java.lang.String |
CMDTYPE_SYSADMIN
|
static java.lang.String |
COVIXON_NAME
|
static java.lang.String |
CRADLEPOINT_NAME
|
static java.lang.String |
DATATEST_NAME
|
static java.lang.String |
DCSERVER_XML
|
static java.lang.String |
DCSERVERS_DIR
|
static java.lang.String |
DCSNAME_SERVLET_PREFIX
|
static boolean |
DEFAULT_WARN_PORT_CONFLICT
|
static java.lang.String |
DELORME_NAME
|
static java.lang.String |
ELOC_NAME
|
static java.lang.String |
ENFORA_NAME
|
static java.lang.String |
EWING_NAME
|
static java.lang.String |
FA888_NAME
|
static java.lang.String |
FALCOM_NAME
|
static java.lang.String |
GALILEOSKY_NAME
|
static java.lang.String |
GEOFORCE_NAME
|
static java.lang.String |
GLOBALSAT_NAME
|
static java.lang.String |
GOS777_NAME
|
static java.lang.String |
GOS9600_NAME
|
static java.lang.String |
GOS9800_NAME
|
static java.lang.String |
GOSAFE_NAME
|
static java.lang.String |
GOTOP680_NAME
|
static java.lang.String |
GSSPOT_NAME
|
static java.lang.String |
GT68_NAME
|
static java.lang.String |
GT95_NAME
|
static java.lang.String |
GTS_HOME
|
static java.lang.String |
GTSGEN1_NAME
|
static java.lang.String |
GTSGEN2_NAME
|
static java.lang.String |
ICARE_NAME
|
static java.lang.String |
INCLUDE_DIR
|
static java.lang.String |
INTELLITRAC_A_NAME
|
static java.lang.String |
INTELLITRAC_NAME
|
static java.lang.String |
IRIDIUMDCS_NAME
|
static java.lang.String |
JSCRT803_NAME
|
static java.lang.String |
JT600_NAME
|
static java.lang.String |
JTGP4000_NAME
|
static java.lang.String |
K611_NAME
|
static java.lang.String |
KENWOOD_NAME
|
static java.lang.String |
LAIPAC_NAME
|
static java.lang.String |
LANTRIX_NAME
|
static int |
LISTEN_BACKLOG
|
static java.lang.String |
MAESTRO_NAME
|
static java.lang.String |
MAJID_NAME
|
static java.lang.String |
MEGASTEK_NAME
|
static java.lang.String |
MEITRACK2_NAME
|
static java.lang.String |
MOREY_NAME
|
static java.lang.String |
MSP340_NAME
|
static java.lang.String |
MTEPS_NAME
|
static java.lang.String |
NONE_NAME
|
static java.lang.String |
NT1000_NAME
|
static java.lang.String |
NTSLIM_NAME
|
static java.lang.String |
OPENDMTP_NAME
|
static java.lang.String |
PARATEL_NAME
|
static java.lang.String |
PGT3000_NAME
|
static java.lang.String |
PICCOLO_NAME
|
static java.lang.String |
POINTER_NAME
|
static int |
PORT_OFFSET
|
static java.lang.String |
PROP_Attribute_
|
static java.lang.String |
PROP_Attribute_InputOffset
|
static java.lang.String |
PROP_Attribute_OutputOffset
|
static java.lang.String |
PROP_command_
|
static java.lang.String |
PROP_Command_
|
static java.lang.String |
PROP_dcs_
|
static java.lang.String |
PROP_DCServer_
|
static java.lang.String |
PROP_DCServer_name
Runtime Configuration Property The specific DCServer name to load (all others will be ignored). Type: DCServer name |
static java.lang.String |
PROP_Properties_
|
static java.lang.String |
QGL200_NAME
|
static java.lang.String |
QGL300_NAME
|
static java.lang.String |
QGL500_NAME
|
static java.lang.String |
QGT300_NAME
|
static java.lang.String |
QGT500_NAME
|
static java.lang.String |
QGV100_NAME
|
static java.lang.String |
QGV200_NAME
|
static java.lang.String |
QGV300_NAME
|
static java.lang.String |
QGV500_NAME
|
static java.lang.String |
QINETIQ_NAME
|
static java.lang.String |
RESPONSE_MESSAGE
|
static java.lang.String |
RESPONSE_RESULT
|
static java.lang.String |
RESPONSE_SERVER
|
static java.lang.String |
RGPROXY_NAME
|
static java.lang.String |
RUPTELA_NAME
|
static java.lang.String |
RVCT03_NAME
|
static java.lang.String |
RVCT04_NAME
|
static java.lang.String |
SANAV_NAME
|
static java.lang.String |
SCATLITE_NAME
|
static java.lang.String |
SCVL2000_NAME
|
static java.lang.String |
SENDUM_NAME
|
static java.lang.String |
SIERRA_NAME
|
static java.lang.String |
SIPGEAR_NAME
|
static java.lang.String |
SNROVER9_NAME
|
static java.lang.String |
SQUARELL_NAME
|
static java.lang.String |
STARSNAV_NAME
|
static java.lang.String |
T8806_NAME
|
static java.lang.String |
T880X_NAME
|
static java.lang.String |
TAIP_NAME
|
static java.lang.String |
TELGH3000_NAME
|
static java.lang.String |
TELTONIKA_NAME
|
static java.lang.String |
TEMPLATE_NAME
|
static java.lang.String |
TK10X_NAME
|
static java.lang.String |
TLT2H_NAME
|
static java.lang.String |
TOUCAN_NAME
|
static java.lang.String |
TRACUSA_NAME
|
static java.lang.String |
TRIMTRAC_NAME
|
static java.lang.String |
TZAVL05_NAME
|
static java.lang.String |
TZAVL08_NAME
|
static java.lang.String |
ULBOTECH_NAME
|
static java.lang.String |
UPLOAD_NAME
|
static java.lang.String |
WEBTECH_NAME
|
static java.lang.String |
WONDE_NAME
|
static java.lang.String |
XIRGO_NAME
|
Constructor Summary | |
---|---|
DCServerFactory()
|
Method Summary | |
---|---|
static boolean |
__isRunningDCS()
Returns true if the current process context is a running DCS module |
static void |
__setRunningDCS(java.lang.String name)
Sets the current process context to a running DCS module |
static DCServerConfig |
_getServerConfig(java.lang.String name)
Returns the DCServerConfig instance for the specified device communication server name |
static Device |
_loadDeviceByPrefixedModemID(java.lang.String[] prefix,
java.lang.String modemID)
Load device record from unique-id |
static Device |
_loadDeviceByPrefixedModemID(java.lang.String[] prefix,
java.lang.String modemID,
boolean saveUnassigned,
java.lang.String serverID,
java.lang.String ipAddress,
boolean isDuplex,
GeoPoint geoPoint)
Load device record from unique-id |
static Device |
_loadDeviceByPrefixedModemID(java.lang.String[] prefix,
java.lang.String modemID,
java.lang.String serverID,
java.lang.String ipAddress,
boolean isDuplex,
GeoPoint geoPoint)
Load device record from unique-id |
static DCServerConfig |
addDCS(java.lang.String name,
java.lang.String desc,
int[] tcpPorts,
int[] udpPorts,
int commandPort,
long flags,
java.lang.String... uniqPfx)
Adds the named server to the list of registered servers |
static boolean |
addUnassignedDevice(java.lang.String dcName,
java.lang.String mobID,
double lat,
double lon)
Add device-id to UnassignedDevice table |
static boolean |
addUnassignedDevice(java.lang.String dcName,
java.lang.String mobID,
GeoPoint geoPoint)
Add device-id to UnassignedDevice table |
static boolean |
addUnassignedDevice(java.lang.String dcName,
java.lang.String mobID,
java.lang.String ipAddr,
boolean isDuplex,
double lat,
double lon)
Add device-id to UnassignedDevice table |
static boolean |
addUnassignedDevice(java.lang.String dcName,
java.lang.String mobID,
java.lang.String ipAddr,
boolean isDuplex,
double lat,
double lon,
java.lang.String data)
Add device-id to UnassignedDevice table |
static boolean |
addUnassignedDevice(java.lang.String dcName,
java.lang.String mobID,
java.lang.String ipAddr,
boolean isDuplex,
GeoPoint geoPoint)
Add device-id to UnassignedDevice table |
static boolean |
addUnassignedDevice(java.lang.String dcName,
java.lang.String mobID,
java.lang.String ipAddr,
boolean isDuplex,
GeoPoint geoPoint,
java.lang.String data)
Add device-id to UnassignedDevice table |
static double |
calculateOdometerKM(EventData prevEvent,
GeoPoint toPoint)
Calculates/returns the next odometer value |
static void |
checkMemoryUsage()
Analyzes/Prints the current memory usage. |
static java.lang.String[] |
CONFIG_ackResponsePort(java.lang.String name)
Return an array of "ACK Response port" property names |
static java.lang.String[] |
CONFIG_batteryLevelProfile(java.lang.String name)
Return an array of "BatteryLevelProfile" property names (first tank) |
static java.lang.String[] |
CONFIG_batteryLevelRange(java.lang.String name)
Return an array of "Battery Level Range" property names |
static java.lang.String[] |
CONFIG_checkLastOdometer(java.lang.String name)
Return an array of "Check Last Odometer" property names |
static java.lang.String[] |
CONFIG_clientCommandPort_tcp(java.lang.String name)
Return an array of "Client Command port" property names |
static java.lang.String[] |
CONFIG_clientCommandPort_udp(java.lang.String name)
Return an array of "Client Command port" property names |
static java.lang.String[] |
CONFIG_ClientPacketHandlerClass(java.lang.String name)
Return an array of "ClientPacketHandler class" property names |
static java.lang.String[] |
CONFIG_commandAckBit(java.lang.String name,
java.lang.String bitName)
Return an array of "Command ACK bit" property names |
static java.lang.String[] |
CONFIG_CommandPacketHandlerClass(java.lang.String name)
Return an array of "CommandPacketHandler class" property names |
static java.lang.String[] |
CONFIG_commandPort(java.lang.String name)
Return an array of "Command port" property names |
static java.lang.String[] |
CONFIG_commandProtocol(java.lang.String name)
Return an array of "Command Protocol" property names Return command protocol to used when communicating with remote devices |
static java.lang.String[] |
CONFIG_debugMode(java.lang.String name)
Return an array of "Debug Mode" property names |
static java.lang.String[] |
CONFIG_estimateOdometer(java.lang.String name)
Return an array of "Estimate Odometer" property names |
static java.lang.String[] |
CONFIG_eventDataAnalog(java.lang.String name,
int aNdx)
Return an array of "EventDataAnalog" property names (first tank) |
static java.lang.String[] |
CONFIG_finalPacket(java.lang.String name)
Return an array of "Final Packet" property names |
static java.lang.String[] |
CONFIG_fuelLevelProfile(java.lang.String name)
Return an array of "FuelLevelProfile" property names (first tank) |
static java.lang.String[] |
CONFIG_fuelLevelProfile2(java.lang.String name)
Return an array of "FuelLevelProfile" property names (second tank) |
static java.lang.String[] |
CONFIG_geozoneSkipOldEvents(java.lang.String name)
Return an array of "Geozone Skip Old Events" property names |
static java.lang.String[] |
CONFIG_ignoreDeviceOdometer(java.lang.String name)
Return an array of "Ignore Device Odometer" property names |
static java.lang.String[] |
CONFIG_ignoreEventsWithInvalidGPS(java.lang.String name)
Return an array of "Ignore Events with Invalid GPS" property names |
static java.lang.String[] |
CONFIG_ignoreInvalidGPSFlag(java.lang.String name)
Return an array of "Ignore Invalid GPS Flag" property names |
static java.lang.String[] |
CONFIG_initialPacket(java.lang.String name)
Return an array of "Initial Packet" property names |
static java.lang.String[] |
CONFIG_maximumAccuracyMeters(java.lang.String name)
Return an array of "Maximum Accuracy Meters" property names |
static java.lang.String[] |
CONFIG_maximumHDOP(java.lang.String name)
Return an array of "Maximum HDOP" property names |
static java.lang.String[] |
CONFIG_minimumMovedMeters(java.lang.String name)
Return an array of "Minimum Moved Meters" property names |
static java.lang.String[] |
CONFIG_minimumSatelliteCount(java.lang.String name)
Return an array of "Minimum Satellite Count" property names |
static java.lang.String[] |
CONFIG_minimumSpeedKPH(java.lang.String name)
Return an array of "Minimum SpeedKPH" property names |
static java.lang.String[] |
CONFIG_satPort(java.lang.String name)
Return an array of "SAT port" property names |
static java.lang.String[] |
CONFIG_saveRawDataPackets(java.lang.String name)
Return an array of "Save Raw Data Packet" property names |
static java.lang.String[] |
CONFIG_saveSessionStatistics(java.lang.String name)
Return an array of "Save Session Statistics" property names |
static java.lang.String[] |
CONFIG_showURL(java.lang.String name)
Return an array of "Show URL" property names |
static java.lang.String[] |
CONFIG_simulateDigitalInputs(java.lang.String name)
Return an array of "Simulate Digital Inputs" property names |
static java.lang.String[] |
CONFIG_simulateGeozones(java.lang.String name)
Return an array of "Simulate Geozone Arrival/Departure" property names |
static java.lang.String[] |
CONFIG_startStopStatusCodes(java.lang.String name)
Return an array of "Start/Stop StatusCodes" property names |
static java.lang.String[] |
CONFIG_startStopSupported(java.lang.String name)
Return an array of "Start/Stop StatusCode supported" property names |
static java.lang.String[] |
CONFIG_statusLocationInMotion(java.lang.String name)
Return an array of "Status Location/InMotion Translation" property names |
static java.lang.String[] |
CONFIG_tcpIdleTimeoutMS(java.lang.String name)
Return an array of "TCP idle timeout" property names |
static java.lang.String[] |
CONFIG_tcpPacketTimeoutMS(java.lang.String name)
Return an array of "TCP packet timeout" property names |
static java.lang.String[] |
CONFIG_tcpPort(java.lang.String name)
Return an array of "TCP port" property names |
static java.lang.String[] |
CONFIG_tcpSessionTimeoutMS(java.lang.String name)
Return an array of "TCP session timeout" property names |
static java.lang.String[] |
CONFIG_TrackServerAdapterClass(java.lang.String name)
Return an array of "TrackServerAdapter class" property names |
static java.lang.String[] |
CONFIG_udpIdleTimeoutMS(java.lang.String name)
Return an array of "UDP idle timeout" property names |
static java.lang.String[] |
CONFIG_udpPacketTimeoutMS(java.lang.String name)
Return an array of "UDP packet timeout" property names |
static java.lang.String[] |
CONFIG_udpPort(java.lang.String name)
Return an array of "UDP port" property names |
static java.lang.String[] |
CONFIG_udpSessionTimeoutMS(java.lang.String name)
Return an array of "UDP session timeout" property names |
static java.lang.String[] |
CONFIG_uniquePrefix(java.lang.String name)
Return an array of UniquID prefix property names |
static java.lang.String[] |
CONFIG_useAltCurrentTimestamp(java.lang.String name)
Return an array of "Use Alternate Current Timestamp for Event" property names |
static java.lang.String[] |
CONFIG_useLastValidGPSLocation(java.lang.String name)
Return an array of "Use Last Valid GPS Location" property names |
static RTProperties |
createRTProperties(java.lang.String accountID,
java.lang.String deviceID,
java.lang.String uniqueID,
java.lang.String cmdType,
java.lang.String cmdName,
java.lang.String[] cmdArgs)
|
static java.lang.String |
createTcpSessionID(Device device)
|
static java.lang.String |
Garmin_getMessageStatusDescription(java.util.Locale locale,
int msgStatus)
|
static java.lang.String |
Garmin_getStopStatusDescription(java.util.Locale locale,
int stopStatus)
|
static java.lang.String |
getBindAddress()
Returns the global bind-address |
static int |
getCommandDispatcherPort(java.lang.String serverName)
Gets the server 'command' port |
static DCServerFactory.ResultCode |
getCommandResultCode(RTProperties r)
Gets the Command ResultCode. |
static java.lang.String |
getCommandResultID(RTProperties r)
Gets the Command ResultCode ID |
static java.lang.String |
getCommandResultMessage(RTProperties r)
Gets the Command ResultCode Message |
static int |
getPort(int port)
Returns the server port (with constant offset applied) |
static int[] |
getPorts(int... ports)
Returns an array of server ports (with constant offset applied) |
static EventData |
getPreviousEventData(Device device,
long fixtime)
Returns the EventData record previous to the specified fixtime |
static DCServerFactory.ResultCode |
GetResultCode(java.lang.String code,
DCServerFactory.ResultCode dft)
Gets the ResultCode for the specified code value. |
static DCServerConfig |
getServerConfig(java.lang.String name)
Returns the DCServerConfig instance for the specified device communication server name |
static DCServerConfig |
getServerConfig(java.lang.String name,
boolean warn)
Returns the DCServerConfig instance for the specified device communication server name |
static java.lang.String |
getServerConfigDescription(java.lang.String serverName)
Gets the server config description |
static java.util.List<DCServerConfig> |
getServerConfigList(boolean inclAll)
Returns a list of all DCServerConfig instances |
static java.io.File |
getServerJarFile(java.lang.String name)
|
static java.lang.String |
GetSpecificDCServerName()
Gets the specific DCServerConfig name, or null if there is no specific DCServerConfig. |
static java.lang.String |
getTcpSessionID(Device device)
|
static java.util.List<java.lang.String> |
getUndefinedServerList()
(used by CheckInstall) Returns the list of referenced, but undefined, servers |
static java.lang.String |
getUniquePrefixString(java.lang.String[] pfx)
Returns a String representation of the unique-id prefix array |
static boolean |
hasDigitalInputs(java.lang.String serverName)
Returns true if this device supports digital inputs |
static boolean |
hasDigitalOutputs(java.lang.String serverName)
Returns true if this device supports digital outputs |
static boolean |
hasServerConfig(java.lang.String name)
Returns True if the named DCServerConfig has been registered |
static boolean |
HasSpecificDCServerName()
Returns true if a specific DCServerConfig name is defined. |
static boolean |
hasUndefinedServers()
(used by CheckInstall) Return the number of refererenced servers which are undefined |
static void |
init()
Runtime startup initialization |
static void |
InitSpecificDCServerName()
Initialize the specific DCServerConfig name |
static boolean |
isCommandResultOK(DCServerFactory.ResultCode rid)
Return true if the ResultCode represents a successful request/operation |
static boolean |
isCommandResultOK(RTProperties r)
Return true if the ResultCode represents a successful request/operation |
static boolean |
isCommandTypeAll(java.lang.String type)
|
static boolean |
isValidPort(int port)
Returns true if the specified port is valid |
static boolean |
isValidPort(int[] port)
Returns true if the specified port array is valid |
static void |
loadDCServerXML(java.io.File xmlFile)
Load the 'dcservers.xml' file |
static Device |
loadDeviceByAccountDeviceID(java.lang.String accountID,
java.lang.String deviceID)
Load device record from account-id/device-id |
static Device[] |
lookupUniqueID(java.lang.String mobileID)
Lookup the specified mobile-id in the Transport/Device tables, use all available DC servers unique-id prefixes. |
static void |
main(java.lang.String[] args)
Command-line main entry point |
static RTProperties |
sendServerCommand(Device device,
java.lang.String cmdType,
java.lang.String cmdName,
java.lang.String[] cmdArgs)
Send a command request to the server command port for the specified Device |
static DCServerFactory.ResultCode |
SendSMSCommand(java.lang.String handlerName,
Device device,
java.lang.String commandStr)
Send SMS command to device |
static boolean |
serverJarExists(java.lang.String name)
Returns true if the named server is defined |
static void |
SetSpecificDCServerName(java.lang.String name)
Sets the specific DCServerConfig name |
static boolean |
supportsCommandDispatcher(Device device)
Returns true if the server for the specified Device supports a command port |
static boolean |
supportsCommandDispatcher(java.lang.String serverName)
Returns true if the named server supports a command port |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DCSERVERS_DIR
public static final java.lang.String DCSERVER_XML
public static boolean DEFAULT_WARN_PORT_CONFLICT
public static java.lang.String DCSNAME_SERVLET_PREFIX
public static final java.lang.String PROP_Attribute_
public static final java.lang.String PROP_Attribute_InputOffset
public static final java.lang.String PROP_Attribute_OutputOffset
public static final java.lang.String PROP_DCServer_
public static final java.lang.String PROP_dcs_
public static final java.lang.String PROP_Command_
public static final java.lang.String PROP_command_
public static final java.lang.String PROP_Properties_
public static final java.lang.String PROP_DCServer_name
public static final java.lang.String CMDTYPE_ALL
public static final java.lang.String CMDTYPE_MAP
public static final java.lang.String CMDTYPE_ADMIN
public static final java.lang.String CMDTYPE_GARMIN
public static final java.lang.String CMDTYPE_SYSADMIN
public static final java.lang.String NONE_NAME
public static final java.lang.String OPENDMTP_NAME
public static final java.lang.String ASTRA_NAME
public static final java.lang.String LANTRIX_NAME
public static final java.lang.String ICARE_NAME
public static final java.lang.String SIPGEAR_NAME
public static final java.lang.String TEMPLATE_NAME
public static final java.lang.String ASPICORE_NAME
public static final java.lang.String TK10X_NAME
public static final java.lang.String TAIP_NAME
public static final java.lang.String CALAMP_NAME
public static final java.lang.String SANAV_NAME
public static final java.lang.String DATATEST_NAME
public static final java.lang.String FALCOM_NAME
public static final java.lang.String AGORABEE_NAME
public static final java.lang.String KENWOOD_NAME
public static final java.lang.String WONDE_NAME
public static final java.lang.String LAIPAC_NAME
public static final java.lang.String INTELLITRAC_NAME
public static final java.lang.String INTELLITRAC_A_NAME
public static final java.lang.String ANTX_NAME
public static final java.lang.String MEGASTEK_NAME
public static final java.lang.String ARKNAV35_NAME
public static final java.lang.String SNROVER9_NAME
public static final java.lang.String QINETIQ_NAME
public static final java.lang.String GALILEOSKY_NAME
public static final java.lang.String PICCOLO_NAME
public static final java.lang.String BIGWATCHER_NAME
public static final java.lang.String MOREY_NAME
public static final java.lang.String EWING_NAME
public static final java.lang.String GT95_NAME
public static final java.lang.String T8806_NAME
public static final java.lang.String T880X_NAME
public static final java.lang.String K611_NAME
public static final java.lang.String GT68_NAME
public static final java.lang.String ENFORA_NAME
public static final java.lang.String GOTOP680_NAME
public static final java.lang.String TLT2H_NAME
public static final java.lang.String RVCT03_NAME
public static final java.lang.String MEITRACK2_NAME
public static final java.lang.String RVCT04_NAME
public static final java.lang.String ELOC_NAME
public static final java.lang.String QGL200_NAME
public static final java.lang.String QGL300_NAME
public static final java.lang.String QGV100_NAME
public static final java.lang.String QGV200_NAME
public static final java.lang.String QGV300_NAME
public static final java.lang.String SCATLITE_NAME
public static final java.lang.String SCVL2000_NAME
public static final java.lang.String QGT300_NAME
public static final java.lang.String QGT500_NAME
public static final java.lang.String QGL500_NAME
public static final java.lang.String QGV500_NAME
public static final java.lang.String TZAVL05_NAME
public static final java.lang.String TZAVL08_NAME
public static final java.lang.String ANTARES_NAME
public static final java.lang.String ATRACK_NAME
public static final java.lang.String WEBTECH_NAME
public static final java.lang.String TELTONIKA_NAME
public static final java.lang.String TELGH3000_NAME
public static final java.lang.String JT600_NAME
public static final java.lang.String JTGP4000_NAME
public static final java.lang.String PGT3000_NAME
public static final java.lang.String NTSLIM_NAME
public static final java.lang.String NT1000_NAME
public static final java.lang.String POINTER_NAME
public static final java.lang.String CITGT02_NAME
public static final java.lang.String CITGT06_NAME
public static final java.lang.String TOUCAN_NAME
public static final java.lang.String RUPTELA_NAME
public static final java.lang.String MTEPS_NAME
public static final java.lang.String MSP340_NAME
public static final java.lang.String GOS9600_NAME
public static final java.lang.String GOSAFE_NAME
public static final java.lang.String GOS777_NAME
public static final java.lang.String GOS9800_NAME
public static final java.lang.String ULBOTECH_NAME
public static final java.lang.String SENDUM_NAME
public static final java.lang.String CLEARCOMM_NAME
public static final java.lang.String MAESTRO_NAME
public static final java.lang.String JSCRT803_NAME
public static final java.lang.String TRIMTRAC_NAME
public static final java.lang.String SIERRA_NAME
public static final java.lang.String CRADLEPOINT_NAME
public static final java.lang.String XIRGO_NAME
public static final java.lang.String SQUARELL_NAME
public static final java.lang.String TRACUSA_NAME
public static final java.lang.String GLOBALSAT_NAME
public static final java.lang.String STARSNAV_NAME
public static final java.lang.String BLUETREE_NAME
public static final java.lang.String MAJID_NAME
public static final java.lang.String IRIDIUMDCS_NAME
public static final java.lang.String AXONN_NAME
public static final java.lang.String FA888_NAME
public static final java.lang.String GSSPOT_NAME
public static final java.lang.String GEOFORCE_NAME
public static final java.lang.String PARATEL_NAME
public static final java.lang.String DELORME_NAME
public static final java.lang.String COVIXON_NAME
public static final java.lang.String GTSGEN1_NAME
public static final java.lang.String GTSGEN2_NAME
public static final java.lang.String UPLOAD_NAME
public static final java.lang.String RGPROXY_NAME
public static final java.lang.String CMDARG_ACCOUNT
public static final java.lang.String CMDARG_DEVICE
public static final java.lang.String CMDARG_USER
public static final java.lang.String CMDARG_UNIQUE
public static final java.lang.String CMDARG_CMDTYPE
public static final java.lang.String CMDARG_CMDNAME
public static final java.lang.String CMDARG_ARG
public static final java.lang.String CMDARG_SERVER
public static final java.lang.String RESPONSE_SERVER
public static final java.lang.String RESPONSE_RESULT
public static final java.lang.String RESPONSE_MESSAGE
public static final java.lang.String ATTR_bindAddress
public static final java.lang.String ATTR_enabled
public static final java.lang.String ATTR_rtPropPrefix
public static final java.lang.String ATTR_mask
public static final java.lang.String ATTR_index
public static java.lang.String BIND_ADDRESS
public static int LISTEN_BACKLOG
public static int PORT_OFFSET
public static java.lang.String INCLUDE_DIR
public static java.lang.String GTS_HOME
public static final java.lang.String[] ARG_udpPort
public static final java.lang.String[] ARG_tcpPort
public static final java.lang.String[] ARG_satPort
public static final java.lang.String[] ARG_commandPort
public static final java.lang.String CFG_TrackServer_class
public static final java.lang.String CFG_CommandPacketHandler_class
public static final java.lang.String CFG_ClientPacketHandler_class
public static final java.lang.String CFG_uniquePrefix
public static final java.lang.String CFG_uniqueIdPrefix
public static final java.lang.String CFG_tcpPort
public static final java.lang.String CFG_udpPort
public static final java.lang.String CFG_satPort
public static final java.lang.String CFG_port
public static final java.lang.String CFG_commandPort
public static final java.lang.String CFG_commandProtocol
public static final java.lang.String CFG_ackResponsePort
public static final java.lang.String CFG_clientCommandPort
public static final java.lang.String CFG_clientCommandPort_udp
public static final java.lang.String CFG_clientCommandPort_tcp
public static final java.lang.String CFG_tcpIdleTimeoutMS
public static final java.lang.String CFG_tcpPacketTimeoutMS
public static final java.lang.String CFG_tcpSessionTimeoutMS
public static final java.lang.String CFG_udpIdleTimeoutMS
public static final java.lang.String CFG_udpPacketTimeoutMS
public static final java.lang.String CFG_udpSessionTimeoutMS
public static final java.lang.String CFG_minimumSpeedKPH
public static final java.lang.String CFG_estimateOdometer
public static final java.lang.String CFG_ignoreDeviceOdometer
public static final java.lang.String CFG_maximumHDOP
public static final java.lang.String CFG_minimumSatelliteCount
public static final java.lang.String CFG_maximumAccuracyMeters
public static final java.lang.String CFG_checkLastOdometer
public static final java.lang.String CFG_simulateGeozones
public static final java.lang.String CFG_geozoneSkipOldEvents
public static final java.lang.String CFG_simulateDigitalInputs
public static final java.lang.String CFG_minimumMovedMeters
public static final java.lang.String CFG_saveRawDataPackets
public static final java.lang.String CFG_startStopSupported
public static final java.lang.String CFG_statusLocationInMotion
public static final java.lang.String CFG_ignoreInvalidGPSFlag
public static final java.lang.String CFG_ignoreEventsWithInvalidGPS
public static final java.lang.String CFG_useLastValidGPSLocation
public static final java.lang.String CFG_useAltCurrentTimestamp
public static final java.lang.String CFG_initialPacket
public static final java.lang.String CFG_finalPacket
public static final java.lang.String CFG_saveSessionStatistics
public static final java.lang.String CFG_batteryLevelRange
public static final java.lang.String CFG_startStopStatusCodes
public static final java.lang.String CFG_debugMode
public static final java.lang.String CFG_showURL
public static final java.lang.String CFG_commandAckBit_
public static final java.lang.String CFG_fuelLevelProfile
public static final java.lang.String CFG_batteryLevelProfile
public static final java.lang.String CFG_eventDataAnalog_
Constructor Detail |
---|
public DCServerFactory()
Method Detail |
---|
public static boolean isCommandTypeAll(java.lang.String type)
public static java.lang.String Garmin_getStopStatusDescription(java.util.Locale locale, int stopStatus)
public static java.lang.String Garmin_getMessageStatusDescription(java.util.Locale locale, int msgStatus)
public static java.lang.String GetSpecificDCServerName()
public static boolean HasSpecificDCServerName()
public static void SetSpecificDCServerName(java.lang.String name)
name
- The name of the DCServerConfig entrypublic static void InitSpecificDCServerName()
public static boolean isValidPort(int port)
port
- The port to validate
public static boolean isValidPort(int[] port)
port
- The ports to validate
public static java.io.File getServerJarFile(java.lang.String name)
public static boolean serverJarExists(java.lang.String name)
public static DCServerFactory.ResultCode GetResultCode(java.lang.String code, DCServerFactory.ResultCode dft)
code
- The name of the result codedft
- The default ResultCode to return if the specified code is undefined.
public static void loadDCServerXML(java.io.File xmlFile)
xmlFile
- The path/name of the 'dcservers.xml' file to loadpublic static java.lang.String getBindAddress()
public static void init()
public static DCServerConfig addDCS(java.lang.String name, java.lang.String desc, int[] tcpPorts, int[] udpPorts, int commandPort, long flags, java.lang.String... uniqPfx)
public static DCServerConfig _getServerConfig(java.lang.String name)
name
- The name of the device communication server
public static DCServerConfig getServerConfig(java.lang.String name)
name
- The name of the device communication server
public static DCServerConfig getServerConfig(java.lang.String name, boolean warn)
name
- The name of the device communication serverwarn
- If true, a warning message will be displayed if "name" does not exist.
public static java.lang.String getServerConfigDescription(java.lang.String serverName)
serverName
- The server name
public static boolean hasServerConfig(java.lang.String name)
name
- The name of the device communication server
public static java.util.List<DCServerConfig> getServerConfigList(boolean inclAll)
inclAll
- True to include all DCS modules register, false to only include
DCS modules for which the DCS jar file was also found.
public static boolean hasUndefinedServers()
public static java.util.List<java.lang.String> getUndefinedServerList()
public static boolean supportsCommandDispatcher(java.lang.String serverName)
public static boolean supportsCommandDispatcher(Device device)
public static boolean hasDigitalInputs(java.lang.String serverName)
public static boolean hasDigitalOutputs(java.lang.String serverName)
public static int getPort(int port)
port
- server port (without offset applied)
public static int[] getPorts(int... ports)
ports
- array of server ports (without offset applied)
public static java.lang.String getCommandResultID(RTProperties r)
public static DCServerFactory.ResultCode getCommandResultCode(RTProperties r)
public static boolean isCommandResultOK(RTProperties r)
public static boolean isCommandResultOK(DCServerFactory.ResultCode rid)
public static java.lang.String getCommandResultMessage(RTProperties r)
public static void __setRunningDCS(java.lang.String name)
public static boolean __isRunningDCS()
public static DCServerFactory.ResultCode SendSMSCommand(java.lang.String handlerName, Device device, java.lang.String commandStr)
handlerName
- The name of the SMS gateway handlerdevice
- The device to which the SMS command is sentcommandStr
- The SMS command which is sent
public static int getCommandDispatcherPort(java.lang.String serverName)
serverName
- The server name
public static RTProperties sendServerCommand(Device device, java.lang.String cmdType, java.lang.String cmdName, java.lang.String[] cmdArgs)
public static RTProperties createRTProperties(java.lang.String accountID, java.lang.String deviceID, java.lang.String uniqueID, java.lang.String cmdType, java.lang.String cmdName, java.lang.String[] cmdArgs)
public static java.lang.String createTcpSessionID(Device device)
public static java.lang.String getTcpSessionID(Device device)
public static double calculateOdometerKM(EventData prevEvent, GeoPoint toPoint)
public static boolean addUnassignedDevice(java.lang.String dcName, java.lang.String mobID, java.lang.String ipAddr, boolean isDuplex, double lat, double lon, java.lang.String data)
public static boolean addUnassignedDevice(java.lang.String dcName, java.lang.String mobID, GeoPoint geoPoint)
public static boolean addUnassignedDevice(java.lang.String dcName, java.lang.String mobID, java.lang.String ipAddr, boolean isDuplex, GeoPoint geoPoint)
public static boolean addUnassignedDevice(java.lang.String dcName, java.lang.String mobID, java.lang.String ipAddr, boolean isDuplex, GeoPoint geoPoint, java.lang.String data)
public static boolean addUnassignedDevice(java.lang.String dcName, java.lang.String mobID, double lat, double lon)
public static boolean addUnassignedDevice(java.lang.String dcName, java.lang.String mobID, java.lang.String ipAddr, boolean isDuplex, double lat, double lon)
public static EventData getPreviousEventData(Device device, long fixtime)
device
- The Device record handlefixtime
- The current event fixtime
public static void checkMemoryUsage()
public static Device loadDeviceByAccountDeviceID(java.lang.String accountID, java.lang.String deviceID)
accountID
- The Account IDdeviceID
- The DeviceID
public static Device _loadDeviceByPrefixedModemID(java.lang.String[] prefix, java.lang.String modemID)
prefix
- An array of unique-id prefixesmodemID
- The unique modem ID (IMEI, ESN, etc)
public static Device _loadDeviceByPrefixedModemID(java.lang.String[] prefix, java.lang.String modemID, java.lang.String serverID, java.lang.String ipAddress, boolean isDuplex, GeoPoint geoPoint)
prefix
- An array of unique-id prefixesmodemID
- The unique modem ID (IMEI, ESN, etc)serverID
- The server-id (also 'device code'), used for UnassignedDevice entriesipAddress
- The inbound IP address, used for UnassignedDevice entriesisDuplex
- True if duplex, false if simplex, used for UnassignedDevice entriesgeoPoint
- The GPS location of the device, used for UnassignedDevice entries
public static Device _loadDeviceByPrefixedModemID(java.lang.String[] prefix, java.lang.String modemID, boolean saveUnassigned, java.lang.String serverID, java.lang.String ipAddress, boolean isDuplex, GeoPoint geoPoint)
prefix
- An array of unique-id prefixesmodemID
- The unique modem ID (IMEI, ESN, etc)saveUnassigned
- True to save Device to UnassignedDevices, if device is not foundserverID
- The server-id (also 'device code'), used for UnassignedDevice entriesipAddress
- The inbound IP address, used for UnassignedDevice entriesisDuplex
- True if duplex, false if simplex, used for UnassignedDevice entriesgeoPoint
- The GPS location of the device, used for UnassignedDevice entries
public static Device[] lookupUniqueID(java.lang.String mobileID)
mobileID
- The mobile ID to search for
public static java.lang.String getUniquePrefixString(java.lang.String[] pfx)
pfx
- The UniqueID prefixes
public static java.lang.String[] CONFIG_TrackServerAdapterClass(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_CommandPacketHandlerClass(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_ClientPacketHandlerClass(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_tcpPort(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_udpPort(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_satPort(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_commandPort(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_commandProtocol(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_clientCommandPort_udp(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_clientCommandPort_tcp(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_ackResponsePort(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_tcpIdleTimeoutMS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_tcpPacketTimeoutMS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_tcpSessionTimeoutMS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_udpIdleTimeoutMS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_udpPacketTimeoutMS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_udpSessionTimeoutMS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_uniquePrefix(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_minimumMovedMeters(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_minimumSpeedKPH(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_estimateOdometer(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_ignoreDeviceOdometer(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_simulateGeozones(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_geozoneSkipOldEvents(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_maximumHDOP(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_minimumSatelliteCount(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_maximumAccuracyMeters(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_checkLastOdometer(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_simulateDigitalInputs(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_startStopSupported(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_saveRawDataPackets(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_statusLocationInMotion(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_ignoreInvalidGPSFlag(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_ignoreEventsWithInvalidGPS(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_useLastValidGPSLocation(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_useAltCurrentTimestamp(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_initialPacket(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_finalPacket(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_saveSessionStatistics(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_batteryLevelRange(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_startStopStatusCodes(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_debugMode(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_showURL(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_commandAckBit(java.lang.String name, java.lang.String bitName)
name
- The server name
public static java.lang.String[] CONFIG_fuelLevelProfile(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_fuelLevelProfile2(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_batteryLevelProfile(java.lang.String name)
name
- The server name
public static java.lang.String[] CONFIG_eventDataAnalog(java.lang.String name, int aNdx)
name
- The server nameaNdx
- The 1-based analog index
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |