Skip navigation links
A B C D F G H I J L M O P R S T U W 

A

addDebugText(int, String) - Method in class jadex.base.relay.PeerHandler
Add a debug message.
addMessage(int, long) - Method in class jadex.base.relay.PlatformInfo
Add a sent message.
addPeer(String) - Method in class jadex.base.relay.PeerList
Add a peer that requested a connection.
addPeer(String, String, int) - Method in class jadex.base.relay.PeerList
Add a peer that requested a connection.
addPeer(String, String, int, boolean) - Method in class jadex.base.relay.PeerList
Add a peer found in a servers list or a peer that requested a connection.
addPeers(String, boolean) - Method in class jadex.base.relay.PeerList
Add peers from a servers list.
ADDRESS - Static variable in class jadex.base.relay.JadexRelayExample
The relay server address.
awainfo - Variable in class jadex.base.relay.PlatformInfo
The awareness info (if any).

B

bytes_received - Variable in class jadex.base.relay.PlatformInfo
The number of received bytes.
bytesToInt(byte[]) - Static method in class jadex.base.relay.JadexRelayExample
Convert bytes to an integer.

C

checkPlatform(String) - Method in class jadex.base.relay.PeerHandler
Check if a platform is connected to this peer.
checkPlatform(String) - Method in class jadex.base.relay.PeerList
Test if the given platform is connected to some peer.
clearPlatformInfos() - Method in class jadex.base.relay.PeerHandler
Clear the list of platform infos.
codecs - Variable in class jadex.base.relay.RelayHandler
The available codecs for awareness infos (cached for speed).
con - Variable in class jadex.base.relay.StatsDB
The db connection (if any).
conman - Variable in class jadex.base.relay.RelayHandler
The connection manager for communicating with remote peers.
connect(String) - Static method in class jadex.base.relay.JadexRelayExample
Start a new thread and connect to the relay server.
connect_time - Variable in class jadex.base.relay.PlatformInfo
The time when the connection was established.
connected - Variable in class jadex.base.relay.PeerHandler
Is this peer connected?
content - Variable in class jadex.base.relay.Message
The message content (read from stream).
createDB(String) - Static method in class jadex.base.relay.StatsDB
Create the db object.

D

dbid - Variable in class jadex.base.relay.PlatformInfo
The db id.
debugtext - Variable in class jadex.base.relay.PeerHandler
Debug information as multi-line xml text.
defcodecs - Variable in class jadex.base.relay.RelayHandler
The default codecs (used for relay-to-relay communication).
DELAY_OFFLINE - Static variable in class jadex.base.relay.PeerHandler
Delay between two pings when a peer is offline.
DELAY_ONLINE - Static variable in class jadex.base.relay.PeerHandler
Delay between two pings when a peer is connected.
deleteprops - Variable in class jadex.base.relay.StatsDB
The prepared delete properties statement.
deliverMessage(byte[]) - Static method in class jadex.base.relay.JadexRelayExample
Called whenever a message is received.
disconnect() - Method in class jadex.base.relay.PlatformInfo
Platform has disconnected.
disconnect_time - Variable in class jadex.base.relay.PlatformInfo
The time when the connection was lost.
dispose() - Method in class jadex.base.relay.PeerList
Stop any activities for managing the peer list.
dispose() - Method in class jadex.base.relay.RelayHandler
Cleanup on shutdown.

F

fut - Variable in class jadex.base.relay.Message
The future to be notified, when sending is completed.

G

GeoIPService - Class in jadex.base.relay
Helper object to resolve IP addresses to Geo locations.
GeoIPService() - Constructor for class jadex.base.relay.GeoIPService
 
getAllPlatformInfos(boolean) - Method in class jadex.base.relay.StatsDB
Get all saved platform infos for direct data export (sorted by id, oldest first).
getAwarenessInfo() - Method in class jadex.base.relay.PlatformInfo
Get the awareness info.
getByteCount() - Method in class jadex.base.relay.PlatformInfo
Get the byte count as beautified string.
getBytes() - Method in class jadex.base.relay.PlatformInfo
Get the byte count as raw value
getConnectDate() - Method in class jadex.base.relay.PlatformInfo
Get the connect date.
getConnectionManager() - Method in class jadex.base.relay.RelayHandler
Get the connection manager.
getConnectTime() - Method in class jadex.base.relay.PlatformInfo
Get the connect time.
getContent() - Method in class jadex.base.relay.Message
Get the message content.
getCountryCode(String) - Method in class jadex.base.relay.GeoIPService
Fetch country code for an IP address or null, if not found.
getCountryCode() - Method in class jadex.base.relay.PeerHandler
Get the country code (e.g.
getCountryCode() - Method in class jadex.base.relay.PlatformInfo
Get the country code (e.g.
getCurrentPeers() - Method in class jadex.base.relay.RelayHandler
Get the current peers.
getCurrentPlatforms() - Method in class jadex.base.relay.RelayHandler
Get the current platforms
getDBId() - Method in class jadex.base.relay.PlatformInfo
Get the db id
getDebugLevel() - Method in class jadex.base.relay.RelayServerSettings
Get the debug level.
getDebugText() - Method in class jadex.base.relay.PeerHandler
Get the debug text.
getDisconnectDate() - Method in class jadex.base.relay.PlatformInfo
Get the disconnect date.
getDisconnectTime() - Method in class jadex.base.relay.PlatformInfo
Get the disconnect time.
getFuture() - Method in class jadex.base.relay.Message
Get the future.
getGeoIPService() - Static method in class jadex.base.relay.GeoIPService
Get the db instance.
getHost() - Method in class jadex.base.relay.PeerHandler
Get the host name of the peer server.
getHostIP() - Method in class jadex.base.relay.PlatformInfo
Get the host.
getHostName() - Method in class jadex.base.relay.PlatformInfo
Get the resolved host name.
getId() - Method in class jadex.base.relay.PlatformInfo
Get the id.
getId() - Method in class jadex.base.relay.RelayServerSettings
Get the id.
getInitialPeers() - Method in class jadex.base.relay.RelayServerSettings
Get the initial peers.
getlatest - Variable in class jadex.base.relay.StatsDB
The prepared get latest entry query statement.
getLatestEntry(String) - Method in class jadex.base.relay.StatsDB
Get the latest id for a peer.
getLocation(String) - Method in class jadex.base.relay.GeoIPService
Fetch location name for an IP address.
getLocation() - Method in class jadex.base.relay.PeerHandler
Get the location (i.e.
getLocation() - Method in class jadex.base.relay.PlatformInfo
Get the location (i.e.
getLogger() - Static method in class jadex.base.relay.RelayHandler
Get the logger.
getMessageCount() - Method in class jadex.base.relay.PlatformInfo
Get the message count.
getMessageType() - Method in class jadex.base.relay.Message
Get the message type.
getPeerId() - Method in class jadex.base.relay.PlatformInfo
Get the peer id
getPeerList() - Method in class jadex.base.relay.RelayHandler
Get the peer list.
getPeers() - Method in class jadex.base.relay.PeerList
Get the currently connected peers.
getPlatformInfos() - Method in class jadex.base.relay.PeerHandler
Get the platform infos received from the peer.
getPlatformInfos(int) - Method in class jadex.base.relay.StatsDB
Get cumulated platform infos per ip to use for display (sorted by recency, newest first).
getPlatformInfosForSync(String, int, int) - Method in class jadex.base.relay.StatsDB
Get platform infos for history synchronization
getPosition(String) - Method in class jadex.base.relay.GeoIPService
Get the position as latitude,longitude.
getPosition() - Method in class jadex.base.relay.PeerHandler
Get the location as latitude,longitude.
getPosition() - Method in class jadex.base.relay.PlatformInfo
Get the location as latitude,longitude.
getPreferredCodecs() - Method in class jadex.base.relay.PlatformInfo
Get the preferred codecs.
getProperties() - Method in class jadex.base.relay.PlatformInfo
Get the properties.
getScheme() - Method in class jadex.base.relay.PlatformInfo
Get the host.
getSettings() - Method in class jadex.base.relay.RelayHandler
Get the settings.
getStatisticsDB() - Method in class jadex.base.relay.RelayHandler
Get the statistics database (if any).
getTransferRate() - Method in class jadex.base.relay.PlatformInfo
Get the average transfer rate as beautified string.
getTransferTime() - Method in class jadex.base.relay.PlatformInfo
Get the transfer time as raw value (millis).
getUrl() - Method in class jadex.base.relay.PeerHandler
Get the peer url.
getUrl() - Method in class jadex.base.relay.RelayServerSettings
Get the url.
getURLs(String) - Method in class jadex.base.relay.PeerList
Get the known relay urls.

H

handleAwareness(InputStream) - Method in class jadex.base.relay.RelayHandler
Called when an awareness info is received from a connected platform.
handleConnection(String, OutputStream) - Method in class jadex.base.relay.RelayHandler
Called when a platform registers itself at the relay.
handleMessage(InputStream, String) - Method in class jadex.base.relay.RelayHandler
Called when a message should be sent.
handleOffline(String, InputStream) - Method in class jadex.base.relay.RelayHandler
Called when an offline status change is posted by a platform.
handlePlatform(InputStream) - Method in class jadex.base.relay.RelayHandler
Called when a single platform info is received from a peer relay server.
handlePlatforms(InputStream) - Method in class jadex.base.relay.RelayHandler
Called when platform infos are received from a peer relay server.
handler - Variable in class jadex.base.relay.PeerHandler
The relay handler.
handler - Variable in class jadex.base.relay.PeerList
The relay handler.
handleServersRequest(String, String, String, int, boolean) - Method in class jadex.base.relay.RelayHandler
Get the available servers as comma-separated list of URLs.
handleSyncRequest(String, int, int, OutputStream) - Method in class jadex.base.relay.RelayHandler
Send requested db entries.
hostip - Variable in class jadex.base.relay.PlatformInfo
The host ip.
hostname - Variable in class jadex.base.relay.PlatformInfo
The host name.
hostnamefut - Variable in class jadex.base.relay.PlatformInfo
The host name future for eager resolving.

I

id - Variable in class jadex.base.relay.PlatformInfo
The platform id.
infos - Variable in class jadex.base.relay.PeerHandler
The current platform infos received from the peer (platform id->info).
initConnection(String, String, String, String) - Method in class jadex.base.relay.RelayHandler
Called when a platform registers itself at the relay.
initial - Variable in class jadex.base.relay.PeerHandler
Is the peer one of the initial peers?
insert - Variable in class jadex.base.relay.StatsDB
The prepared insert statement for new platform entries (without dbid).
insert2 - Variable in class jadex.base.relay.StatsDB
The prepared insert statement for remote platform entries (with dbid).
insertprops - Variable in class jadex.base.relay.StatsDB
The prepared insert properties statement.
intToBytes(int) - Static method in class jadex.base.relay.JadexRelayExample
Convert an integer to bytes.
isConnected() - Method in class jadex.base.relay.PeerHandler
Check if the peer is connected.
isDBSync() - Method in class jadex.base.relay.RelayServerSettings
Get the debug level.
isInitial() - Method in class jadex.base.relay.PeerHandler
Check if the peer is an initial peer.
isNoConnections() - Method in class jadex.base.relay.RelayServerSettings
Get the no connections flag.
isSent() - Method in class jadex.base.relay.PeerHandler
Check if awareness infos have bneen sent.
isUrlSpecified() - Method in class jadex.base.relay.RelayServerSettings
Test if a public url is given.

J

jadex.base.relay - package jadex.base.relay
 
JadexRelayExample - Class in jadex.base.relay
Example showing how to connect to Jadex relay server using pure Java only (no Jadex jars required).
JadexRelayExample() - Constructor for class jadex.base.relay.JadexRelayExample
 

L

lastupdate - Variable in class jadex.base.relay.GeoIPService
The date of the last update check.
latest - Variable in class jadex.base.relay.StatsDB
The latest entries (cached for speed).
loadSettings(File, boolean) - Method in class jadex.base.relay.RelayServerSettings
Load settings.
logResultSet(ResultSet) - Static method in class jadex.base.relay.StatsDB
Print out the contents of a result set.
ls - Variable in class jadex.base.relay.GeoIPService
The lookup service (if any).

M

main(String[]) - Static method in class jadex.base.relay.GeoIPService
 
main(String[]) - Static method in class jadex.base.relay.JadexRelayExample
Main method for testing.
main(String[]) - Static method in class jadex.base.relay.StatsDB
Test the stats db.
map - Variable in class jadex.base.relay.RelayHandler
The relay map (id -> queue for pending requests).
Message - Class in jadex.base.relay
Struct for a message to be delivered to a platform.
Message(int, InputStream) - Constructor for class jadex.base.relay.Message
Create a new message.
migrateFrom(StatsDB) - Method in class jadex.base.relay.StatsDB
Migrate from one database to another.
msg_cnt - Variable in class jadex.base.relay.PlatformInfo
The number of messages for the recipient.
msgtype - Variable in class jadex.base.relay.Message
The message type.
MSGTYPE_DEFAULT - Static variable in class jadex.base.relay.JadexRelayExample
The default message type: followed by length (int as 4 bytes) and arbitrary message content from some sender.
MSGTYPE_PING - Static variable in class jadex.base.relay.JadexRelayExample
The ping message type sent by server to verify if connection is alive (just the type byte and no content).

O

openDerbyDB() - Static method in class jadex.base.relay.StatsDB
Create a derby db connection.
openH2DB(String) - Static method in class jadex.base.relay.StatsDB
Create a derby db connection.

P

pcodecs - Variable in class jadex.base.relay.PlatformInfo
The preferred codecs (if any).
PeerHandler - Class in jadex.base.relay
Handler to periodically ping remote peer and synchronize history db.
PeerHandler(RelayHandler, String, boolean) - Constructor for class jadex.base.relay.PeerHandler
Create a timer task.
peerid - Variable in class jadex.base.relay.PeerHandler
The peer id (null, if unknown).
peerid - Variable in class jadex.base.relay.PlatformInfo
The peer id.
peerid - Variable in class jadex.base.relay.StatsDB
The peer id.
PeerList - Class in jadex.base.relay
The peer list actively manages the list of connected peer relay servers.
PeerList(RelayHandler) - Constructor for class jadex.base.relay.PeerList
Create a new peer list.
peerOffline() - Method in class jadex.base.relay.PeerHandler
Called when a peer becomes offline.
peerOnline() - Method in class jadex.base.relay.PeerHandler
Called when the peer becomes online.
peers - Variable in class jadex.base.relay.PeerList
The peer handlers for polling relay peers (url -> peer handler).
peers - Variable in class jadex.base.relay.RelayHandler
The peer list.
peerstate - Variable in class jadex.base.relay.PeerHandler
The latest known remote peer state (-1 for none).
PlatformInfo - Class in jadex.base.relay
Data object to collect information about connected platforms.
PlatformInfo() - Constructor for class jadex.base.relay.PlatformInfo
Create a platform info.
PlatformInfo(String, String, String, String, String) - Constructor for class jadex.base.relay.PlatformInfo
Create a platform info.
PlatformInfo(Integer, String, String, String, String, String, Date, Date, int, double, double) - Constructor for class jadex.base.relay.PlatformInfo
Constructor used by db.
platforms - Variable in class jadex.base.relay.RelayHandler
Info about connected platforms.
printPlatformInfos(PlatformInfo[]) - Static method in class jadex.base.relay.StatsDB
Print out the contents of a result set.
printPlatformInfos(Iterator<PlatformInfo>) - Static method in class jadex.base.relay.StatsDB
Print out the contents of a result set.
printResultSet(ResultSet) - Static method in class jadex.base.relay.StatsDB
Print out the contents of a result set.
properties - Variable in class jadex.base.relay.PlatformInfo
The properties (if any).
PROPERTY_DBSYNC - Static variable in class jadex.base.relay.RelayServerSettings
The property for the db synchronization flag.
PROPERTY_DEBUG - Static variable in class jadex.base.relay.RelayServerSettings
The property for the debug flag.
PROPERTY_ID - Static variable in class jadex.base.relay.RelayServerSettings
The property for this relay's own id.
PROPERTY_NOCONNECTIONS - Static variable in class jadex.base.relay.RelayServerSettings
The property for the flag for disabling platform connections.
PROPERTY_PEERS - Static variable in class jadex.base.relay.RelayServerSettings
The property for the peer server urls (comma separated).
PROPERTY_URL - Static variable in class jadex.base.relay.RelayServerSettings
The property for this relay's own url.
props - Variable in class jadex.base.relay.RelayServerSettings
The properties holding the settings.

R

readData(InputStream, int) - Static method in class jadex.base.relay.RelayHandler
Read data into a byte array.
readString(InputStream) - Static method in class jadex.base.relay.RelayHandler
Read a string from the given stream.
reconnect(String, String) - Method in class jadex.base.relay.PlatformInfo
Platform with same id has reconnected.
RelayHandler - Class in jadex.base.relay
Basic relay functionality to be used with or without servlet.
RelayHandler() - Constructor for class jadex.base.relay.RelayHandler
Initialize the handler.
RelayServerSettings - Class in jadex.base.relay
Class to load/save relay settings.
RelayServerSettings() - Constructor for class jadex.base.relay.RelayServerSettings
Create the server settings object.
removePeer(PeerHandler) - Method in class jadex.base.relay.PeerList
Remove a peer from the list.
RESPONSE_BUF - Static variable in class jadex.base.relay.JadexRelayExample
A buffer for reading response data (ignored but needs to be read for connection to be reusable).
run() - Method in class jadex.base.relay.PeerHandler
Execute the handler.

S

save(File) - Method in class jadex.base.relay.RelayServerSettings
Save the settings.
save(PlatformInfo) - Method in class jadex.base.relay.StatsDB
Save (insert or update) a platform info object.
scheme - Variable in class jadex.base.relay.PlatformInfo
The protocol (e.g.
send(String, byte[]) - Static method in class jadex.base.relay.JadexRelayExample
Send a message.
sendAwarenessInfos(AwarenessInfo, ICodec[], boolean, boolean) - Method in class jadex.base.relay.RelayHandler
Send awareness messages for a new or changed awareness info.
sendPlatformInfo(PlatformInfo) - Method in class jadex.base.relay.RelayHandler
Send a single platform info to all peer relay servers.
sendPlatformInfos(PeerHandler, PlatformInfo[]) - Method in class jadex.base.relay.RelayHandler
Send platform infos to a peer relay server.
sent - Variable in class jadex.base.relay.PeerHandler
Have initial platform infos been sent already?
setAwarenessInfo(AwarenessInfo) - Method in class jadex.base.relay.PlatformInfo
Set the awareness info.
setConnectDate(Date) - Method in class jadex.base.relay.PlatformInfo
Set the connect time.
setConnected(boolean) - Method in class jadex.base.relay.PeerHandler
Set the connection state of the peer.
setDBId(Integer) - Method in class jadex.base.relay.PlatformInfo
Set db id
setDisconnectDate(Date) - Method in class jadex.base.relay.PlatformInfo
Set the disconnect time.
setHostIP(String) - Method in class jadex.base.relay.PlatformInfo
Set the host ip.
setHostName(String) - Method in class jadex.base.relay.PlatformInfo
Set the host name.
setId(String) - Method in class jadex.base.relay.PlatformInfo
The the platform id.
setPeerId(String) - Method in class jadex.base.relay.PlatformInfo
Set the peer id
setPeerState(String, int) - Method in class jadex.base.relay.PeerHandler
Set the peer state received from remote.
setPreferredCodecs(ICodec[]) - Method in class jadex.base.relay.PlatformInfo
Set the preferred codecs.
setProperties(Map<String, String>) - Method in class jadex.base.relay.PlatformInfo
Set the properties.
setSent(boolean) - Method in class jadex.base.relay.PeerHandler
Set the sent state of the peer.
settings - Variable in class jadex.base.relay.RelayHandler
The settings loaded from file.
shutdown - Variable in class jadex.base.relay.PeerHandler
The shutdown flag.
shutdown() - Method in class jadex.base.relay.PeerHandler
Shutdown the handler.
shutdown() - Method in class jadex.base.relay.StatsDB
Close the database connection on exit.
singleton - Static variable in class jadex.base.relay.GeoIPService
The singleton db object.
statsdb - Variable in class jadex.base.relay.RelayHandler
The statistics database (if any).
StatsDB - Class in jadex.base.relay
Database connector for reading and writing statistics via JavaDB.
StatsDB(String, Connection) - Constructor for class jadex.base.relay.StatsDB
Create the db object.
SYSTEMDIR - Static variable in class jadex.base.relay.RelayHandler
The directory for settings and statistics.

T

TIME_FORMAT_LONG - Static variable in class jadex.base.relay.PlatformInfo
The long time format (time and date).
TIME_FORMAT_SHORT - Static variable in class jadex.base.relay.PlatformInfo
The short time format (only time).
toString() - Method in class jadex.base.relay.PlatformInfo
Create a string representation.
total_transmission_time - Variable in class jadex.base.relay.PlatformInfo
The accumulated time spent for transmitting data (millis).

U

update - Variable in class jadex.base.relay.StatsDB
The prepared update statement for platform entries.
updateDB() - Method in class jadex.base.relay.GeoIPService
Download / check for updates of the GeoIP database.
updatePlatformInfo(PlatformInfo) - Method in class jadex.base.relay.PeerHandler
Update the platform info.
url - Variable in class jadex.base.relay.PeerHandler
The URL of the peer.

W

writePlatformInfos(OutputStream, int) - Method in class jadex.base.relay.StatsDB
Write platform infos as JSON to the provided output stream.
A B C D F G H I J L M O P R S T U W 
Skip navigation links