chatservice_stub.java

来自「基于Java RMI开发的一个网络聊天室源码」· Java 代码 · 共 79 行

JAVA
79
字号
// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

package chatrmio;

public final class ChatService_Stub
    extends java.rmi.server.RemoteStub
    implements chatrmio.IChatService, java.rmi.Remote
{
    private static final long serialVersionUID = 2;
    
    private static java.lang.reflect.Method $method_addClient_0;
    private static java.lang.reflect.Method $method_removeClient_1;
    private static java.lang.reflect.Method $method_sendMessage_2;
    
    static {
	try {
	    $method_addClient_0 = chatrmio.IChatService.class.getMethod("addClient", new java.lang.Class[] {chatrmio.IChatClient.class, java.lang.String.class});
	    $method_removeClient_1 = chatrmio.IChatService.class.getMethod("removeClient", new java.lang.Class[] {chatrmio.IChatClient.class, java.lang.String.class});
	    $method_sendMessage_2 = chatrmio.IChatService.class.getMethod("sendMessage", new java.lang.Class[] {chatrmio.IChatClient.class, java.lang.String.class});
	} catch (java.lang.NoSuchMethodException e) {
	    throw new java.lang.NoSuchMethodError(
		"stub class initialization failed");
	}
    }
    
    // constructors
    public ChatService_Stub(java.rmi.server.RemoteRef ref) {
	super(ref);
    }
    
    // methods from remote interfaces
    
    // implementation of addClient(IChatClient, String)
    public void addClient(chatrmio.IChatClient $param_IChatClient_1, java.lang.String $param_String_2)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_addClient_0, new java.lang.Object[] {$param_IChatClient_1, $param_String_2}, -1778989871482843947L);
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of removeClient(IChatClient, String)
    public void removeClient(chatrmio.IChatClient $param_IChatClient_1, java.lang.String $param_String_2)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_removeClient_1, new java.lang.Object[] {$param_IChatClient_1, $param_String_2}, -4927504530679926561L);
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of sendMessage(IChatClient, String)
    public void sendMessage(chatrmio.IChatClient $param_IChatClient_1, java.lang.String $param_String_2)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_sendMessage_2, new java.lang.Object[] {$param_IChatClient_1, $param_String_2}, -1807815241739330242L);
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?