All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class NET.shudo.moba.lang.PlaceAddress

java.lang.Object
   |
   +----NET.shudo.moba.lang.PlaceAddress

public class PlaceAddress
extends Object
implements Streamable
Place のアドレス。
Place の位置は IP アドレスとポート番号の組で表現される。

See Also:
MobaPlace

Variable Index

 o CLASS_PORT_DIFF
ClassServer が待つポート番号の、place のポート番号に対する差分。
 o COMMAND_PORT_DIFF
CommandServer が待つポート番号の、place のポート番号に対する差分。
 o PLACE_PORT
MOBA place のポート番号。
 o THREAD_PORT_DIFF
ThreadServer が待つポート番号の、place のポート番号に対する差分。

Constructor Index

 o PlaceAddress()
 o PlaceAddress(InetAddress)
 o PlaceAddress(InetAddress, int)
 o PlaceAddress(String)
 o PlaceAddress(String, int)

Method Index

 o controllerPort()
 o controllerPort(int)
 o controllerPortDiff()
 o equals(Object)
 o hashCode()
 o hostAddress()
 o hostName()
 o inetAddress()
 o isLocalAddress()
このアドレスがローカルなら真を返す。
 o localAddress()
ローカルアドレスを返す。
 o port()
 o readFromStream(ObjectReader)
自前の内部化メソッド。
 o toString()
 o writeToStream(ObjectWriter)
自前の外部化メソッド。

Variables

 o PLACE_PORT
 public static int PLACE_PORT
MOBA place のポート番号。

 o COMMAND_PORT_DIFF
 public static final int COMMAND_PORT_DIFF
CommandServer が待つポート番号の、place のポート番号に対する差分。

 o CLASS_PORT_DIFF
 public static final int CLASS_PORT_DIFF
ClassServer が待つポート番号の、place のポート番号に対する差分。

 o THREAD_PORT_DIFF
 public static final int THREAD_PORT_DIFF
ThreadServer が待つポート番号の、place のポート番号に対する差分。

Constructors

 o PlaceAddress
 public PlaceAddress()
 o PlaceAddress
 public PlaceAddress(InetAddress addr,
                     int portno)
 o PlaceAddress
 public PlaceAddress(InetAddress addr)
 o PlaceAddress
 public PlaceAddress(String host,
                     int portno) throws UnknownHostException
 o PlaceAddress
 public PlaceAddress(String host) throws UnknownHostException

Methods

 o controllerPort
 public static void controllerPort(int port)
 o controllerPort
 public static int controllerPort()
 o controllerPortDiff
 public static int controllerPortDiff()
 o hashCode
 public int hashCode()
Overrides:
hashCode in class Object
 o equals
 public boolean equals(Object obj)
Overrides:
equals in class Object
 o toString
 public String toString()
Overrides:
toString in class Object
 o port
 public int port()
 o inetAddress
 public InetAddress inetAddress()
 o hostName
 public String hostName()
 o hostAddress
 public String hostAddress()
 o localAddress
 public static PlaceAddress localAddress()
$B%m!<%+%k%"%I%l%9$rJV$9!#

 o isLocalAddress
 public boolean isLocalAddress()
$B$3$N%"%I%l%9$,%m!<%+%k$J$i??$rJV$9!#

 o writeToStream
 public void writeToStream(ObjectWriter out) throws IOException
$B<+A0$N30It2=%a%=%C%I!#

 o readFromStream
 public void readFromStream(ObjectReader in) throws IOException
$B<+A0$NFbIt2=%a%=%C%I!#


All Packages  Class Hierarchy  This Package  Previous  Next  Index