RoboSuite Java API, v1.87

com.kapowtech.robosuite.api.java.repository.construct
Class RoboServer

java.lang.Object
  extended by com.kapowtech.robosuite.api.java.repository.construct.RoboServer

public class RoboServer
extends Object

Models a RoboServer associated with a cluster on the Management Console


Constructor Summary
RoboServer(String host, int port)
          Creates a new instance
RoboServer(String host, int port, boolean primary)
          Deprecated. this constructor is deprecated. Use RoboServer(String, int) and remove the third argument as it is no longer used.
 
Method Summary
 boolean equals(Object o)
          tests for equality with other objects
 String getHost()
          Get the name of this RoboServer
 int getPort()
          Get the port number
 int hashCode()
          returns hashcode, symmetric with equals
 String toString()
          returns a string with all property values (subject to change, do not parse this string)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoboServer

public RoboServer(String host,
                  int port)
Creates a new instance

Parameters:
host - the host name or IP address
port - the port number
Throws:
IllegalArgumentException - if host is null or port is is not between [0-65535]

RoboServer

public RoboServer(String host,
                  int port,
                  boolean primary)
Deprecated. this constructor is deprecated. Use RoboServer(String, int) and remove the third argument as it is no longer used.

Creates a new instance

Parameters:
host - the host name or IP address
port - the port number
primary - this argument is ignored.
Throws:
IllegalArgumentException - if host is null or port is is not between [0-65535]
Method Detail

getHost

public String getHost()
Get the name of this RoboServer

Returns:
the name or IP

getPort

public int getPort()
Get the port number

Returns:
the port number

equals

public boolean equals(Object o)
tests for equality with other objects

Overrides:
equals in class Object
Parameters:
o - other object
Returns:
true if the other object is a RoboServer, and their properties are equal

hashCode

public int hashCode()
returns hashcode, symmetric with equals

Overrides:
hashCode in class Object
Returns:
hashcode

toString

public String toString()
returns a string with all property values (subject to change, do not parse this string)

Overrides:
toString in class Object
Returns:
string with property values

RoboSuite Java API, v1.87

RoboSuite Java API, v1.87