本文整理汇总了Java中com.ericsson.otp.erlang.OtpErlangRef类的典型用法代码示例。如果您正苦于以下问题:Java OtpErlangRef类的具体用法?Java OtpErlangRef怎么用?Java OtpErlangRef使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OtpErlangRef类属于com.ericsson.otp.erlang包,在下文中一共展示了OtpErlangRef类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reply
import com.ericsson.otp.erlang.OtpErlangRef; //导入依赖的package包/类
public void reply(OtpErlangPid where, OtpErlangRef ref, OtpErlangAtom responseCode, OtpErlangObject data)
{
OtpErlangObject [] whatToSend = null;
if (data != null)
whatToSend = new OtpErlangObject[]{ref,responseCode,data};
else
whatToSend = new OtpErlangObject[]{ref,responseCode};
thisMbox.send(where, new OtpErlangTuple(whatToSend));
}
示例2: testToStringFail1
import com.ericsson.otp.erlang.OtpErlangRef; //导入依赖的package包/类
@Test
public void testToStringFail1()
{
checkForCorrectException(new whatToRun() { public @Override void run() {
ErlangLabel.dumpErlangObject(new OtpErlangRef("aa",1,2));
}},IllegalArgumentException.class,"OtpErlangRef is not supported");
}
示例3: StatechumProcess
import com.ericsson.otp.erlang.OtpErlangRef; //导入依赖的package包/类
public StatechumProcess(OtpErlangPid erlangPid, OtpErlangPid supervisorPid, OtpErlangRef refArg, String nodeWithTraceRunnerArg)
{
refFirstResponse = refArg;
mbox = ErlangNode.getErlangNode().getNode().createMbox(mboxName);erlangPartner = erlangPid;supervisor = supervisorPid;
nodeWithTraceRunner = nodeWithTraceRunnerArg;
}