Public Member Functions | Private Attributes
org.ros.master.uri.StaticMasterUriProvider Class Reference
Inheritance diagram for org.ros.master.uri.StaticMasterUriProvider:
Inheritance graph
[legend]

List of all members.

Public Member Functions

URI getMasterUri ()
URI getMasterUri (long timeout, TimeUnit unit)
 StaticMasterUriProvider (URI uri)

Private Attributes

final URI uri

Detailed Description

A MasterUriProvider which will always return the same URI.

Author:
Keith M. Hughes

Definition at line 27 of file StaticMasterUriProvider.java.


Constructor & Destructor Documentation

Definition at line 34 of file StaticMasterUriProvider.java.


Member Function Documentation

Get a master URI.

There is no guarantee that calling this class twice will provide the same URI.

This call may or may not block until a URI is available.

Returns:
a master URI
Exceptions:
RosRuntimeExceptionthis exception may or may not be thrown if there is no master URI available

Implements org.ros.master.uri.MasterUriProvider.

Definition at line 39 of file StaticMasterUriProvider.java.

URI org.ros.master.uri.StaticMasterUriProvider.getMasterUri ( long  timeout,
TimeUnit  unit 
) [inline]

Get a master URI within a given amount of time.

There is no guarantee that calling this class twice will provide the same URI.

This call may or may not block until a URI is available.

Parameters:
timeoutthe amount of time to wait for a URI
unitthe time unit for the wait time
Returns:
a master URI or
 null 
if none could be obtained within the timeout

Implements org.ros.master.uri.MasterUriProvider.

Definition at line 44 of file StaticMasterUriProvider.java.


Member Data Documentation

The URI which will always be returned.

Definition at line 32 of file StaticMasterUriProvider.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51