org.metastatic.rsync.v2
Class Module

java.lang.Object
  |
  +--org.metastatic.rsync.v2.Module
All Implemented Interfaces:
Comparable

public class Module
extends Object
implements Comparable


Field Summary
 String comment
           
 int connections
           
 String dontCompress
           
 String exclude
           
 String excludeFrom
           
 String gid
           
 String hostsAllow
           
 String hostsDeny
           
 boolean ignoreErrors
           
 boolean ignoreNonReadable
           
 String include
           
 String includeFrom
           
 boolean list
           
 String logFormat
           
 int maxConnections
           
 String name
           
 String path
           
 boolean readOnly
           
 String refuseOptions
           
 String secretsFile
           
 boolean strictModes
           
 int timeout
           
 int totalConnections
           
 String transferLogging
           
 String uid
           
 Set users
           
 
Constructor Summary
Module(String name)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean hostAllowed(InetAddress addr)
          Test if a given host is allowed to connect to this module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

path

public String path

comment

public String comment

readOnly

public boolean readOnly

list

public boolean list

users

public Set users

secretsFile

public String secretsFile

uid

public String uid

gid

public String gid

exclude

public String exclude

excludeFrom

public String excludeFrom

include

public String include

includeFrom

public String includeFrom

strictModes

public boolean strictModes

hostsAllow

public String hostsAllow

hostsDeny

public String hostsDeny

ignoreErrors

public boolean ignoreErrors

ignoreNonReadable

public boolean ignoreNonReadable

transferLogging

public String transferLogging

logFormat

public String logFormat

timeout

public int timeout

refuseOptions

public String refuseOptions

dontCompress

public String dontCompress

totalConnections

public int totalConnections

maxConnections

public int maxConnections

connections

public int connections
Constructor Detail

Module

public Module(String name)
Method Detail

hostAllowed

public boolean hostAllowed(InetAddress addr)
Test if a given host is allowed to connect to this module.

Parameters:
addr - The address to test.
Returns:
true if the host is allowed.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable