| java.lang.Object org.drftpd.master.RemoteSlave
All known Subclasses: org.drftpd.tests.DummyRemoteSlave,
Method Summary | |
public void | addMask(String mask) | final public void | addNetworkError(SocketException e) | protected void | addQueueDelete(String fileName) | protected void | addQueueRename(String fileName, String destName) | public synchronized void | addTransfer(TransferIndex transferIndex, RemoteTransfer transfer) | public boolean | checkConnect(Socket socket) | public void | commit() | final public int | compareTo(RemoteSlave o) | public synchronized void | connect(Socket socket, ObjectInputStream in, ObjectOutputStream out) | final public boolean | equals(Object obj) | public long | fetchChecksumFromIndex(String index) | public String | fetchDIZFileFromIndex(String index) | public ID3Tag | fetchID3TagFromIndex(String index) | public int | fetchMaxPathFromIndex(String maxPathIndex) | public void | fetchRemergeResponseFromIndex(String index) | public AsyncResponse | fetchResponse(String index) | public synchronized AsyncResponse | fetchResponse(String index, int wait) | public LightSFVFile | fetchSFVFileFromIndex(String index) | public ConnectInfo | fetchTransferResponseFromIndex(String index) | public GlobalContext | getGlobalContext() | final public long | getLastDownloadSending() | public long | getLastTimeOnline() | final public long | getLastTransfer() | public long | getLastTransferForDirection(char dir) | final public long | getLastUploadReceiving() | public HostMaskCollection | getMasks() | public String | getName() Returns the name. | public synchronized String | getPASVIP() | public int | getPort() | public Properties | getProperties() | public String | getProperty(String name, String def) | public String | getProperty(String key) | public long | getReceivedBytes() | public LinkedList<QueuedOperation> | getRenameQueue() | public long | getSentBytes() | public static String | getSlaveNameFromObjectInput(ObjectInputStream in) | public synchronized SlaveStatus | getSlaveStatus() | public synchronized SlaveStatus | getSlaveStatusAvailable() | public synchronized RemoteTransfer | getTransfer(TransferIndex transferIndex) | public synchronized Collection<RemoteTransfer> | getTransfers() | final public int | hashCode() | public void | init(GlobalContext globalContext) | public synchronized boolean | isAvailable() | public boolean | isAvailablePing() | public boolean | isMemberOf(String string) | public synchronized boolean | isOnline() | public void | issueAbortToSlave(TransferIndex transferIndex, String reason) | public String | issueChecksumToSlave(String string) | public String | issueConnectToSlave(String ip, int port, boolean encryptedDataChannel, boolean useSSLClientHandshake) | public String | issueDIZFileToSlave(LinkedRemoteFileInterface file) | public String | issueDeleteToSlave(String sourceFile) | public String | issueID3TagToSlave(String path) | public String | issueListenToSlave(boolean isSecureTransfer, boolean useSSLClientMode) | public String | issueMaxPathToSlave() | public String | issueReceiveToSlave(String name, char c, long position, TransferIndex tindex) | public String | issueRemergeToSlave(String path) | public String | issueRenameToSlave(String from, String toDirPath, String toName) | public String | issueSFVFileToSlave(String path) | public String | issueSendToSlave(String name, char c, long position, TransferIndex tindex) | public String | issueStatusToSlave() | public String | moreInfo() | public void | processQueue() | final public boolean | removeMask(String mask) | public String | removeProperty(String key) | final public static Hashtable | rslavesToHashtable(Collection rslaves) | public void | run() | public synchronized void | setAvailable(boolean available) | final public void | setLastDirection(char direction, long l) | final public void | setLastDownloadSending(long lastDownloadSending) | final public void | setLastUploadReceiving(long lastUploadReceiving) | public void | setMasks(HostMaskCollection masks) | public void | setOffline(String reason) | public void | setOffline(Throwable t) | public void | setProperties(Properties keysAndValues) | public void | setProperty(String name, String value) | public void | setRenameQueue(LinkedList<QueuedOperation> renameQueue) | public void | shutdown() | public void | simpleDelete(String path) | public void | simpleRename(String from, String toDirPath, String toName) | public String | toString() |
_errors | protected transient int _errors(Code) | | |
_lastNetworkError | protected transient long _lastNetworkError(Code) | | |
addNetworkError | final public void addNetworkError(SocketException e)(Code) | | If X # of errors occur in Y amount of time, kick slave offline
|
addQueueDelete | protected void addQueueDelete(String fileName)(Code) | | |
checkConnect | public boolean checkConnect(Socket socket) throws MalformedPatternException(Code) | | |
commit | public void commit()(Code) | | |
getLastDownloadSending | final public long getLastDownloadSending()(Code) | | |
getLastTimeOnline | public long getLastTimeOnline()(Code) | | |
getLastTransfer | final public long getLastTransfer()(Code) | | |
getLastTransferForDirection | public long getLastTransferForDirection(char dir)(Code) | | |
getLastUploadReceiving | final public long getLastUploadReceiving()(Code) | | |
getPort | public int getPort()(Code) | | |
getReceivedBytes | public long getReceivedBytes()(Code) | | |
getSentBytes | public long getSentBytes()(Code) | | |
getSlaveStatusAvailable | public synchronized SlaveStatus getSlaveStatusAvailable() throws SlaveUnavailableException(Code) | | Returns the RemoteSlave's stored SlaveStatus, will not return a status
before remerge() is completed
|
hashCode | final public int hashCode()(Code) | | |
isAvailable | public synchronized boolean isAvailable()(Code) | | true if the slave has synchronized its filelist since lastconnect |
isAvailablePing | public boolean isAvailablePing()(Code) | | |
isOnline | public synchronized boolean isOnline()(Code) | | |
removeMask | final public boolean removeMask(String mask)(Code) | | true if the mask was removed successfully |
setAvailable | public synchronized void setAvailable(boolean available)(Code) | | |
setLastDirection | final public void setLastDirection(char direction, long l)(Code) | | |
setLastDownloadSending | final public void setLastDownloadSending(long lastDownloadSending)(Code) | | |
setLastUploadReceiving | final public void setLastUploadReceiving(long lastUploadReceiving)(Code) | | |
setProperties | public void setProperties(Properties keysAndValues)(Code) | | Needed in order for this class to be a Bean
|
shutdown | public void shutdown()(Code) | | |
simpleDelete | public void simpleDelete(String path)(Code) | | Deletes files/directories and waits for the response
Meant to be used if you don't want to utilize asynchronization
|
simpleRename | public void simpleRename(String from, String toDirPath, String toName)(Code) | | Renames files/directories and waits for the response
|
|
|