⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lbimpl.java

📁 ssd8 java socket编程实验的代码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -