lbimpl.java

来自「ssd8 java socket编程实验的代码」· Java 代码 · 共 35 行

JAVA
35
字号
package rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class LBImpl extends UnicastRemoteObject implements
		LB {

	private static final long serialVersionUID = 227240710333308083L;
	private String description;

	public LBImpl(String des) throws RemoteException {
		this.description = des;
	}

	public boolean isOn() throws RemoteException {
		return true;
	}

	public void off() throws RemoteException {
		// TODO Auto-generated method stub

	}

	public void on() throws RemoteException {
		// TODO Auto-generated method stub

	}

	public String getDescription() throws RemoteException {
		return "i am "+description;
	}

}

⌨️ 快捷键说明

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