All Packages Class Hierarchy This Package Previous Next Index
Class NET.shudo.moba.lang.MobaThread
java.lang.Object
|
+----java.lang.Thread
|
+----NET.shudo.moba.lang.MobaThread
- public class MobaThread
- extends Thread
streamに流すことの出来る、移動可能なスレッドのクラス。
-
MobaThread()
-
-
MobaThread(Runnable)
-
-
MobaThread(String)
-
-
MobaThread(ThreadGroup, Runnable)
-
-
MobaThread(ThreadGroup, Runnable, String)
-
-
MobaThread(ThreadGroup, String)
-
-
boot()
- internalize された MobaThread を起動する。Thread#start() の代替
boot() したスレッドは Thread#suspend() で実行を再開する。
MOBA place に移動したスレッドは自動的に boot(), resume() される。
-
changeHashCode()
- ハッシュ値をランダムに変更する。
-
currentPCString()
- このスレッドの現在の PC に関する情報を文字列として得る。
-
fork(InetAddress)
- 自身を他の計算機にコピーする。(cf.
-
fork(InetAddress, int)
- 自身を他の計算機にコピーする。(cf.
-
fork(PlaceAddress)
- 自身を他の計算機にコピーする。(cf.
-
fork(String)
- 自身を他の計算機にコピーする。(cf.
-
fork(String, int)
- 自身を他の計算機にコピーする。(cf.
-
forkThisThread(InetAddress)
- このスレッドを他の計算機にコピーする。(cf.
-
forkThisThread(InetAddress, int)
- このスレッドを他の計算機にコピーする。(cf.
-
forkThisThread(PlaceAddress)
- このスレッドを他の計算機にコピーする。(cf.
-
forkThisThread(String)
- このスレッドを他の計算機にコピーする。(cf.
-
forkThisThread(String, int)
- このスレッドを他の計算機にコピーする。(cf.
-
generatedPlace()
- 元の居場所を返す。
-
generatedPlace(PlaceAddress)
- 元の居場所を設定する。
-
goTo(InetAddress)
- 自身 (Thread#currentThread()) が host に移動する。(vi.
-
goTo(InetAddress, int)
- 自身 (Thread#currentThread()) が host に移動する。(vi.
-
goTo(PlaceAddress)
- 自身 (Thread#currentThread()) が host に移動する。(vi.
-
goTo(String)
- 自身 (Thread#currentThread()) が host に移動する。(vi.
-
goTo(String, int)
- 自身 (Thread#currentThread()) が host に移動する。(vi.
-
hashCode()
-
-
isInternalized()
- このスレッドが internalization で構成されたものか調べる。
-
isInternalized(boolean)
-
-
loadLibrary()
- native methods を含むライブラリをロードする。
-
moveTo(InetAddress)
- このスレッドを他の計算機に移動させる。(vt.
-
moveTo(InetAddress, int)
- このスレッドを他の計算機に移動させる。(vt.
-
moveTo(PlaceAddress)
- このスレッドを他の計算機に移動させる。(vt.
-
moveTo(String)
- このスレッドを他の計算機に移動させる。(vt.
-
moveTo(String, int)
- このスレッドを他の計算機に移動させる。(vt.
-
readContextFrom(ObjectReader, Thread, ClassLoader)
- 与えられたスレッドの context を与えられたストリームから構成する。
-
runnableInstance()
- スレッドに対応する Runnable クラスのインスタンスを得る。
-
setThreadGroup(Thread, ThreadGroup)
- 指定したスレッドを、指定した ThreadGroup に所属させる。
-
toString()
-
-
writeContextTo(ObjectWriter)
- 与えられたスレッドの context を与えられたストリームに書き出す。
MobaThread
public MobaThread()
MobaThread
public MobaThread(Runnable target)
MobaThread
public MobaThread(ThreadGroup group,
Runnable target)
MobaThread
public MobaThread(String name)
MobaThread
public MobaThread(ThreadGroup group,
String name)
MobaThread
public MobaThread(ThreadGroup group,
Runnable target,
String name)
generatedPlace
public PlaceAddress generatedPlace()
- 元の居場所を返す。
generatedPlace
public void generatedPlace(PlaceAddress place)
- 元の居場所を設定する。
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
changeHashCode
public int changeHashCode()
- ハッシュ値をランダムに変更する。
toString
public String toString()
- Overrides:
- toString in class Thread
runnableInstance
public Runnable runnableInstance()
- スレッドに対応する Runnable クラスのインスタンスを得る。
setThreadGroup
public static void setThreadGroup(Thread t,
ThreadGroup newGroup) throws Exception
- 指定したスレッドを、指定した ThreadGroup に所属させる。
moveTo
public void moveTo(PlaceAddress addr) throws IOException
- このスレッドを他の計算機に移動させる。(vt. move)
moveTo
public void moveTo(String host) throws IOException
- このスレッドを他の計算機に移動させる。(vt. move)
moveTo
public void moveTo(InetAddress dest) throws IOException
- このスレッドを他の計算機に移動させる。(vt. move)
moveTo
public void moveTo(String host,
int port) throws IOException
- このスレッドを他の計算機に移動させる。(vt. move)
moveTo
public void moveTo(InetAddress dest,
int port) throws IOException
- このスレッドを他の計算機に移動させる。(vt. move)
goTo
public static void goTo(PlaceAddress addr) throws IOException
- 自身 (Thread#currentThread()) が host に移動する。(vi. go)
goTo
public static void goTo(String host) throws IOException
- 自身 (Thread#currentThread()) が host に移動する。(vi. go)
goTo
public static void goTo(InetAddress dest) throws IOException
- 自身 (Thread#currentThread()) が host に移動する。(vi. go)
goTo
public static void goTo(String host,
int port) throws IOException
- 自身 (Thread#currentThread()) が host に移動する。(vi. go)
goTo
public static void goTo(InetAddress dest,
int port) throws IOException
- 自身 (Thread#currentThread()) が host に移動する。(vi. go)
forkThisThread
public void forkThisThread(PlaceAddress addr) throws IOException
- このスレッドを他の計算機にコピーする。(cf. fork(2))
forkThisThread
public void forkThisThread(String host) throws IOException
- このスレッドを他の計算機にコピーする。(cf. fork(2))
forkThisThread
public void forkThisThread(InetAddress dest) throws IOException
- このスレッドを他の計算機にコピーする。(cf. fork(2))
forkThisThread
public void forkThisThread(String host,
int port) throws IOException
- このスレッドを他の計算機にコピーする。(cf. fork(2))
forkThisThread
public void forkThisThread(InetAddress dest,
int port) throws IOException
- このスレッドを他の計算機にコピーする。(cf. fork(2))
fork
public static boolean fork(PlaceAddress addr) throws IOException
- 自身を他の計算機にコピーする。(cf. fork(2))
- Returns:
- true to created thread, false to original thread
fork
public static boolean fork(String host) throws IOException
- 自身を他の計算機にコピーする。(cf. fork(2))
- Returns:
- true to created thread, false to original thread
fork
public static boolean fork(InetAddress dest) throws IOException
- 自身を他の計算機にコピーする。(cf. fork(2))
- Returns:
- true to created thread, false to original thread
fork
public static boolean fork(String host,
int port) throws IOException
- 自身を他の計算機にコピーする。(cf. fork(2))
- Returns:
- true to created thread, false to original thread
fork
public static boolean fork(InetAddress dest,
int port) throws IOException
- 自身を他の計算機にコピーする。(cf. fork(2))
- Returns:
- true to created thread, false to original thread
isInternalized
public boolean isInternalized()
- このスレッドが internalization で構成されたものか調べる。
- Returns:
- internalized スレッドなら真を返す。
- See Also:
- readObject
isInternalized
public boolean isInternalized(boolean flag)
boot
public native void boot()
- internalize された MobaThread を起動する。Thread#start() の代替
boot() したスレッドは Thread#suspend() で実行を再開する。
MOBA place に移動したスレッドは自動的に boot(), resume() される。
- See Also:
- start, resume
writeContextTo
public native void writeContextTo(ObjectWriter out) throws IOException
- 与えられたスレッドの context を与えられたストリームに書き出す。
readContextFrom
public static native void readContextFrom(ObjectReader in,
Thread thr,
ClassLoader loader)
- 与えられたスレッドの context を与えられたストリームから構成する。
currentPCString
public native String currentPCString()
- このスレッドの現在の PC に関する情報を文字列として得る。
loadLibrary
public static void loadLibrary()
- native methods を含むライブラリをロードする。
All Packages Class Hierarchy This Package Previous Next Index