本文整理汇总了Java中com.hazelcast.instance.Node类的典型用法代码示例。如果您正苦于以下问题:Java Node类的具体用法?Java Node怎么用?Java Node使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Node类属于com.hazelcast.instance包,在下文中一共展示了Node类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TcpIpJoinerOverAWS
import com.hazelcast.instance.Node; //导入依赖的package包/类
public TcpIpJoinerOverAWS(Node node) {
super(node);
logger = node.getLogger(getClass());
AwsConfig awsConfig = node.getConfig().getNetworkConfig().getJoin().getAwsConfig();
aws = new AWSClient(awsConfig);
}
示例2: isInstanceNotActive
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected boolean isInstanceNotActive(HazelcastInstance hz) {
if (hz == null) {
return true;
}
Node node = TestUtil.getNode(hz);
return node == null || !node.isRunning();
}
示例3: ConsulJoiner
import com.hazelcast.instance.Node; //导入依赖的package包/类
public ConsulJoiner(final Node node, final ConsulConfig consulConfig) {
super(node);
this.consulConfig = consulConfig;
// autoconnect to consul
this.connect();
}
示例4: AbstractJetMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected AbstractJetMessageTask(ClientMessage clientMessage, Node node, Connection connection,
Function<ClientMessage, P> decoder, Function<Object, ClientMessage> encoder) {
super(clientMessage, node, connection);
this.decoder = decoder;
this.encoder = encoder;
}
示例5: getOperationService
import com.hazelcast.instance.Node; //导入依赖的package包/类
public static InternalOperationService getOperationService(HazelcastInstance hz) {
Node node = checkNotNull(getNode(hz), "node is null in Hazelcast instance " + hz);
NodeEngineImpl nodeEngine = node.getNodeEngine();
try {
return nodeEngine.getOperationService();
} catch (NoSuchMethodError e) {
// fallback for a binary incompatible change (see commit http://git.io/vtfKU)
return getOperationServiceViaReflection(nodeEngine);
}
}
示例6: getInternalPartitionService
import com.hazelcast.instance.Node; //导入依赖的package包/类
private InternalPartitionServiceImpl getInternalPartitionService() {
Node node = nodeEngine.getNode();
return (InternalPartitionServiceImpl) node.getPartitionService();
}
示例7: JetCancelJobMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetCancelJobMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetCancelJobCodec::decodeRequest,
o -> JetCancelJobCodec.encodeResponse());
}
示例8: JetSubmitJobMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetSubmitJobMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetSubmitJobCodec::decodeRequest,
o -> JetSubmitJobCodec.encodeResponse());
}
示例9: JetGetJobStatusMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetGetJobStatusMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetGetJobStatusCodec::decodeRequest,
o -> JetGetJobStatusCodec.encodeResponse((Data) o));
}
示例10: JetGetJobIdsMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetGetJobIdsMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetGetJobIdsCodec::decodeRequest,
o -> JetGetJobIdsCodec.encodeResponse((Data) o));
}
示例11: JetJoinSubmittedJobMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetJoinSubmittedJobMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetJoinSubmittedJobCodec::decodeRequest,
o -> JetJoinSubmittedJobCodec.encodeResponse((Data) o));
}
示例12: JetGetJobSubmissionTimeMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetGetJobSubmissionTimeMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetGetJobSubmissionTimeCodec::decodeRequest,
o -> JetGetJobSubmissionTimeCodec.encodeResponse((long) o));
}
示例13: JetGetJobConfigMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetGetJobConfigMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetGetJobConfigCodec::decodeRequest,
o -> JetGetJobConfigCodec.encodeResponse((Data) o));
}
示例14: JetGetJobIdsByNameMessageTask
import com.hazelcast.instance.Node; //导入依赖的package包/类
protected JetGetJobIdsByNameMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection, JetGetJobIdsByNameCodec::decodeRequest,
o -> JetGetJobIdsByNameCodec.encodeResponse((Data) o));
}
示例15: unblacklistJoinerBetween
import com.hazelcast.instance.Node; //导入依赖的package包/类
private static void unblacklistJoinerBetween(HazelcastInstance h1, HazelcastInstance h2) {
Node h1Node = getNode(h1);
Node h2Node = getNode(h2);
h1Node.getJoiner().unblacklist(h2Node.getThisAddress());
h2Node.getJoiner().unblacklist(h1Node.getThisAddress());
}