public void run() {
		try {
			serverSocket = new ServerSocket(port);
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		System.out.println("server started at port:" + port);
		while (runflag) {
			Socket socket = null;
			try {
				socket = serverSocket.accept();
				ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
				ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
				Invocation invocation = (Invocation) ois.readObject();
				if (invocation != null) {
					System.out.println("port:"+this.port+" get a call" );
					oos.writeObject(doInvoke(invocation));
				}
			} catch (IOException e) {
				e.printStackTrace();
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			} finally {
				try {
					if (socket != null)
						socket.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
		System.out.println("服务关闭了");
	}