|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.Prominic.jFTPd.FTPRemoteCtrlImpl
public class FTPRemoteCtrlImpl
This class is a RMI wrapper for the FTPHandler. It offers all the informations the FTPHandler has to offer to any RMI client needed to monitor/administer the jFTPd server.
| Field Summary | |
|---|---|
(package private) boolean |
authorized
|
(package private) FTPHandler |
handler
|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
FTPRemoteCtrlImpl(FTPHandler handler)
Creates an FTPRemoteCtrlImpl object. |
|
| Method Summary | |
|---|---|
boolean |
authorized()
Returns the authorized state of the RMI connection. |
java.util.Hashtable |
getAllParameters()
|
int |
getConnectionCount()
|
java.util.Vector |
getConnections()
|
protected FTPConnection |
getConnectionWithID(int id)
Returns the FTPConnection with the given id. |
java.lang.String |
getParameter(java.lang.String key)
|
java.lang.String |
getServerUptime()
Creation date: (10-Dec-01 20:58:34) |
java.util.Vector |
getUserActivity(int id)
|
boolean |
login(java.lang.String password)
Login to the RMI controller. |
boolean |
serverRunning()
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Sets a configuration parameter value, unless the RMI connection is not authorised when it does nothing. |
void |
startService()
Starts jFTPd or just returns if RMI connection is not authorised. |
void |
stopService()
Stops jFTPd or just returns if RMI connection is not authorised. |
boolean |
terminateConnection(int id)
Terminates a connection given the id. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
FTPHandler handler
boolean authorized
| Constructor Detail |
|---|
public FTPRemoteCtrlImpl(FTPHandler handler)
throws java.rmi.RemoteException
handler - -
the FTPHandler.
java.rmi.RemoteException| Method Detail |
|---|
public boolean authorized()
throws java.rmi.RemoteException
authorized in interface RemoteControllerjava.rmi.RemoteException
public java.util.Hashtable getAllParameters()
throws java.rmi.RemoteException
getAllParameters in interface RemoteControllerjava.rmi.RemoteException
public int getConnectionCount()
throws java.rmi.RemoteException
getConnectionCount in interface RemoteControllerjava.rmi.RemoteException
public java.util.Vector getConnections()
throws java.rmi.RemoteException
getConnections in interface RemoteControllerjava.rmi.RemoteExceptionprotected FTPConnection getConnectionWithID(int id)
id - -
id of connection.
public java.lang.String getParameter(java.lang.String key)
throws java.rmi.RemoteException
getParameter in interface RemoteControllerjava.rmi.RemoteExceptionpublic java.lang.String getServerUptime()
getServerUptime in interface RemoteController
public java.util.Vector getUserActivity(int id)
throws java.rmi.RemoteException
getUserActivity in interface RemoteControllerjava.rmi.RemoteException
public boolean login(java.lang.String password)
throws java.rmi.RemoteException
login in interface RemoteControllerjava.rmi.RemoteException
public boolean serverRunning()
throws java.rmi.RemoteException
serverRunning in interface RemoteControllerjava.rmi.RemoteException
public void setParameter(java.lang.String key,
java.lang.String value)
throws java.rmi.RemoteException
setParameter in interface RemoteControllerkey - - parameter name.value - - parameter value.
java.rmi.RemoteException
public void startService()
throws java.rmi.RemoteException
startService in interface RemoteControllerjava.rmi.RemoteException
public void stopService()
throws java.rmi.RemoteException
stopService in interface RemoteControllerjava.rmi.RemoteException
public boolean terminateConnection(int id)
throws java.rmi.RemoteException
terminateConnection in interface RemoteControllerid - - connection id to be terminated.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||