public class Factory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static wxservice.IService |
getInstance(java.lang.String url,
long time,
long interval)
Creates a remote proxy or inproc instance of the Weather Service as
specified by the protocol part of the URL.
|
public static wxservice.IService getInstance(java.lang.String url, long time, long interval) throws java.net.MalformedURLException, wxservice.ServiceException
url
- address of the service. URL should be of the form: http://server:port/wxservice
inproc://description
time
- starting time for sensor events.interval
- for polling sensor data.java.net.MalformedURLException
- if the URL is invalid.wxservice.ServiceException
- if the service cannot be instantiated.