org.mbari.siam.tests.moos.devices
Class DeviceTest
java.lang.Object
org.mbari.siam.tests.moos.devices.DeviceTest
public class DeviceTest
- extends java.lang.Object
Perform tests on Device service.
|
Constructor Summary |
DeviceTest(java.lang.String deviceURL)
|
|
Method Summary |
static java.lang.String |
getHostName(java.lang.String nodeURL)
Return the 'hostname' portion of the Device's URL. |
static java.lang.String |
getNodeURL(java.lang.String input)
Return SIAM device URL corresponding to input. |
static void |
main(java.lang.String[] args)
|
void |
run()
Run the tests. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_logger
protected static org.apache.log4j.Logger _logger
_device
protected Device _device
DeviceTest
public DeviceTest(java.lang.String deviceURL)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
- Run the tests.
getNodeURL
public static final java.lang.String getNodeURL(java.lang.String input)
- Return SIAM device URL corresponding to input. Input may already
be in URL format, in which case the input is simply returned. Input may
also be abbreviated as just a hostname, in which case it is converted
a SIAM device RMI URL and returned.
getHostName
public static java.lang.String getHostName(java.lang.String nodeURL)
- Return the 'hostname' portion of the Device's URL. Note that this
is a TOTAL hack, since Java's URL class does not support
"rmi" as a valid protocol!!!
main
public static void main(java.lang.String[] args)
Copyright © 2003 MBARI.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.