|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rfid.premises.app.access.SensorEventsAPIContext
public class SensorEventsAPIContext
A SensorEventsAPIContext is a class with static functions that are used to
return a SensorEventsAPIAccess
object. Specifically, this class
will determine if a SensorEventsAPIAccessRemote (uses Web Services to access
a IBM WebSphere Sensor Events Server)or a SensorEventsAPIAccessLocal (uses EJBs to access the
IBM WebSphere Sensor Events on the local host).
SensorEventsAPIAccess
,
SensorEventsAPIAccessLocal
,
SensorEventsAPIAccessRemote
Method Summary | |
---|---|
static ALEAccess |
getALEAccess()
|
static ALEAccess |
getALEAccess(java.lang.String hostname,
java.lang.String alePort)
|
static java.lang.String |
getAlePort()
get port used for ALE web service access (default: 9080). |
static java.lang.String |
getHostname()
|
static java.lang.String |
getPort()
get port used for web service access (default: 9080). |
static SensorEventsAPIAccess |
getSensorEventsAPIAccess()
This assumes the hostname has been set using the method setHostname(String). |
static SensorEventsAPIAccess |
getSensorEventsAPIAccess(java.lang.String hostname)
|
static SensorEventsAPIAccess |
getSensorEventsAPIAccess(java.lang.String hostname,
java.lang.String port)
|
static SensorEventsAPIAccess |
getSensorEventsAPIAccess(java.lang.String hostname,
java.lang.String port,
java.lang.String alePort)
|
static void |
setAlePort(java.lang.String port)
set port used for ALE web service access (default: 9080) |
static void |
setHostname(java.lang.String hostname)
This function is only needed if you are intending to access the IBM WebSphere Sensor Events APIs remotely. |
static void |
setPort(java.lang.String port)
set port used for web service access (default: 9080) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setHostname(java.lang.String hostname)
An example of a hostname String needed for accessing a IBM WebSphere Sensor Events Server at IP address 192.168.1.1 with hostname wse.server.ibm.com would be "192.168.1.1" or "wse.server.ibm.com".
hostname
- the hostname of a remote IBM WebSphere Sensor Events
installation needed to access the IBM WebSphere Sensor Events Web Service interface.public static java.lang.String getHostname()
setHostname(String)
public static SensorEventsAPIAccess getSensorEventsAPIAccess(java.lang.String hostname)
hostname
- is the hostname of the local or remote IBM WebSphere
Sensor Events installation. If this API call is being made on the machine
that the IBM WebSphere Sensor Events is installed on, it will return a
SensorEventsAPIAccessLocal singleton. If on a different machine, a
SensorEventsAPIAccessRemote singleton will be returned and default web service port (9080)
will be used.
SensorEventsAPIAccess
,
getSensorEventsAPIAccess(String, String)
,
SensorEventsAPIAccessRemote
,
SensorEventsAPIAccessLocal
,
setHostname(String)
public static SensorEventsAPIAccess getSensorEventsAPIAccess(java.lang.String hostname, java.lang.String port)
hostname
- is the hostname of the local or remote IBM WebSphere
Sensor Events installation. If this API call is being made on the machine
that the IBM WebSphere Sensor Events is installed on, it will return a
SensorEventsAPIAccessLocal singleton. If on a different machine, a
SensorEventsAPIAccessRemote singleton will be returned.port
- is the port to be used to make a web services (remote) call
to both IBM WebSphere Sensor Events base APIs and ALE APIs. If ALE uses a
different port use getSensorEventsAPIAccess(String, String, String)
.
If port is null or empty, default of 9080 will be used.
SensorEventsAPIAccess
,
SensorEventsAPIAccessRemote
,
SensorEventsAPIAccessLocal
,
setHostname(String)
public static SensorEventsAPIAccess getSensorEventsAPIAccess(java.lang.String hostname, java.lang.String port, java.lang.String alePort)
hostname
- is the hostname of the local or remote IBM WebSphere Sensor Events
Server installation. If this API call is being made on the machine
that the IBM WebSphere Sensor Events is installed on, it will return a
SensorEventsAPIAccessLocal singleton. If on a different machine, a
SensorEventsAPIAccessRemote singleton will be returned.port
- is the port to be used to make a web services (remote) call
to IBM WebSphere Sensor Events base APIsalePort
- is the port to be used to make a web services (remote) call
to IBM WebSphere Sensor Events ALE APIs
public static SensorEventsAPIAccess getSensorEventsAPIAccess()
SensorEventsAPIAccessException
exceptions unless in a "local"
environment.
getSensorEventsAPIAccess(String)
,
setHostname(String)
public static ALEAccess getALEAccess(java.lang.String hostname, java.lang.String alePort)
hostname
- hostname of the IBM WebSphere Sensor EventsalePort
- port Ale is to use for triggers
public static ALEAccess getALEAccess()
public static java.lang.String getPort()
public static void setPort(java.lang.String port)
port
- port to be setpublic static java.lang.String getAlePort()
public static void setAlePort(java.lang.String port)
port
- port to be set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |