1 /**
2 * Logback: the reliable, generic, fast and flexible logging framework.
3 *
4 * Copyright (C) 1999-2006, QOS.ch
5 *
6 * This library is free software, you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by the Free
8 * Software Foundation.
9 */
10
11 package chapter7;
12
13 import java.rmi.Remote;
14 import java.rmi.RemoteException;
15
16
17 /**
18 * NumberCruncher factors positive integers.
19 */
20 public interface NumberCruncher extends Remote {
21 /**
22 * Factor a positive integer <code>number</code> and return its
23 * <em>distinct</em> factor's as an integer array.
24 * */
25 int[] factor(int number) throws RemoteException;
26 }