Java Code Examples for com.alibaba.dubbo.common.utils.Assert#notNull()

The following examples show how to use com.alibaba.dubbo.common.utils.Assert#notNull() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DecodeableRpcResult.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public DecodeableRpcResult(Channel channel, Response response, InputStream is, Invocation invocation, byte id) {
    Assert.notNull(channel, "channel == null");
    Assert.notNull(response, "response == null");
    Assert.notNull(is, "inputStream == null");
    this.channel = channel;
    this.response = response;
    this.inputStream = is;
    this.invocation = invocation;
    this.serializationType = id;
}
 
Example 2
Source File: DecodeableRpcInvocation.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
public DecodeableRpcInvocation(Channel channel, Request request, InputStream is, byte id) {
    Assert.notNull(channel, "channel == null");
    Assert.notNull(request, "request == null");
    Assert.notNull(is, "inputStream == null");
    this.channel = channel;
    this.request = request;
    this.inputStream = is;
    this.serializationType = id;
}
 
Example 3
Source File: DecodeableRpcInvocation.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public DecodeableRpcInvocation(Channel channel, Request request, InputStream is, byte id) {
    Assert.notNull(channel, "channel == null");
    Assert.notNull(request, "request == null");
    Assert.notNull(is, "inputStream == null");
    this.channel = channel;
    this.request = request;
    this.inputStream = is;
    this.serializationType = id;
}
 
Example 4
Source File: DecodeableRpcResult.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public DecodeableRpcResult(Channel channel, Response response, InputStream is, Invocation invocation, byte id) {
    Assert.notNull(channel, "channel == null");
    Assert.notNull(response, "response == null");
    Assert.notNull(is, "inputStream == null");
    this.channel = channel;
    this.response = response;
    this.inputStream = is;
    this.invocation = invocation;
    this.serializationType = id;
}
 
Example 5
Source File: AbstractChannelHandlerDelegate.java    From dubbox with Apache License 2.0 4 votes vote down vote up
protected AbstractChannelHandlerDelegate(ChannelHandler handler) {
    Assert.notNull(handler, "handler == null");
    this.handler = handler;
}
 
Example 6
Source File: NettyBackedChannelBuffer.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public NettyBackedChannelBuffer(ByteBuf buffer) {
    Assert.notNull(buffer, "buffer == null");
    this.buffer = buffer;
}
 
Example 7
Source File: AbstractChannelHandlerDelegate.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
protected AbstractChannelHandlerDelegate(ChannelHandler handler) {
    Assert.notNull(handler, "handler == null");
    this.handler = handler;
}
 
Example 8
Source File: NettyBackedChannelBuffer.java    From dubbo-remoting-netty4 with Apache License 2.0 4 votes vote down vote up
public NettyBackedChannelBuffer(ByteBuf buffer) {
    Assert.notNull(buffer, "buffer == null");
    this.buffer = buffer;
}
 
Example 9
Source File: NativeJavaObjectOutput.java    From dubbox with Apache License 2.0 4 votes vote down vote up
protected NativeJavaObjectOutput(ObjectOutputStream out) {
    Assert.notNull(out, "output == null");
    this.outputStream = out;
}
 
Example 10
Source File: NativeJavaObjectInput.java    From dubbox with Apache License 2.0 4 votes vote down vote up
protected NativeJavaObjectInput(ObjectInputStream is) {
    Assert.notNull(is, "input == null");
    inputStream = is;
}
 
Example 11
Source File: NativeJavaObjectInput.java    From dubbox with Apache License 2.0 4 votes vote down vote up
protected NativeJavaObjectInput(ObjectInputStream is) {
    Assert.notNull(is, "input == null");
    inputStream = is;
}
 
Example 12
Source File: NativeJavaObjectOutput.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
protected NativeJavaObjectOutput(ObjectOutputStream out) {
    Assert.notNull(out, "output == null");
    this.outputStream = out;
}
 
Example 13
Source File: NettyBackedChannelBuffer.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public NettyBackedChannelBuffer(org.jboss.netty.buffer.ChannelBuffer buffer) {
    Assert.notNull(buffer, "buffer == null");
    this.buffer = buffer;
}
 
Example 14
Source File: AbstractChannelHandlerDelegate.java    From dubbox with Apache License 2.0 4 votes vote down vote up
protected AbstractChannelHandlerDelegate(ChannelHandler handler) {
    Assert.notNull(handler, "handler == null");
    this.handler = handler;
}
 
Example 15
Source File: CodecAdapter.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public CodecAdapter(Codec codec) {
    Assert.notNull(codec, "codec == null");
    this.codec = codec;
}
 
Example 16
Source File: ZkClientWrapper.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public boolean exists(String path) {
    Assert.notNull(client, new IllegalStateException("Zookeeper is not connected yet!"));
    return client.exists(path);
}
 
Example 17
Source File: ZkClientWrapper.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public List<String> getChildren(String path) {
    Assert.notNull(client, new IllegalStateException("Zookeeper is not connected yet!"));
    return client.getChildren(path);
}
 
Example 18
Source File: AbstractChannelHandlerDelegate.java    From dubbox with Apache License 2.0 4 votes vote down vote up
protected AbstractChannelHandlerDelegate(ChannelHandler handler) {
    Assert.notNull(handler, "handler == null");
    this.handler = handler;
}
 
Example 19
Source File: NettyBackedChannelBuffer.java    From dubbo-remoting-netty4 with Apache License 2.0 4 votes vote down vote up
public NettyBackedChannelBuffer(ByteBuf buffer) {
    Assert.notNull(buffer, "buffer == null");
    this.buffer = buffer;
}
 
Example 20
Source File: CodecAdapter.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public CodecAdapter(Codec codec) {
    Assert.notNull(codec, "codec == null");
    this.codec = codec;
}