Package org.dcache.xrootd.util
Class ServerProtocolFlags
- java.lang.Object
-
- org.dcache.xrootd.util.ServerProtocolFlags
-
public class ServerProtocolFlags extends java.lang.ObjectServer-wide settings. These are used to determine the flags returned to the client, depending on the client information. These can be configured locally, or used as a placeholder for the protocol flags received by the client. NOTE: as far as I can tell, the kXR_tlsTPC flag is meaningless and is not observed in the current implementation of xrootd. In order to maintain uniformity, I have eliminated the "requiresTPC" setting from these flags.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerProtocolFlags.TlsMode
-
Constructor Summary
Constructors Constructor Description ServerProtocolFlags()ServerProtocolFlags(int flags)Constructor used in conjunction with flags from remote (source) server.ServerProtocolFlags(ServerProtocolFlags serverProtocolFlags)
-
Method Summary
-
-
-
Constructor Detail
-
ServerProtocolFlags
public ServerProtocolFlags()
-
ServerProtocolFlags
public ServerProtocolFlags(int flags)
Constructor used in conjunction with flags from remote (source) server.- Parameters:
flags- received with protocol response.
-
ServerProtocolFlags
public ServerProtocolFlags(ServerProtocolFlags serverProtocolFlags)
-
-
Method Detail
-
allowsAnonymousGPFile
public boolean allowsAnonymousGPFile()
-
getFlags
public int getFlags()
-
getMode
public ServerProtocolFlags.TlsMode getMode()
-
goToTLS
public boolean goToTLS()
-
hasManagerRole
public boolean hasManagerRole()
-
hasMetaServerRole
public boolean hasMetaServerRole()
-
hasProxyServerRole
public boolean hasProxyServerRole()
-
hasServerRole
public boolean hasServerRole()
-
hasSupervisorRole
public boolean hasSupervisorRole()
-
isDataServer
public boolean isDataServer()
-
isLoadBalancingServer
public boolean isLoadBalancingServer()
-
requiresTLSForData
public boolean requiresTLSForData()
-
requiresTLSForGPF
public boolean requiresTLSForGPF()
-
requiresTLSForGPFA
public boolean requiresTLSForGPFA()
-
requiresTLSForLogin
public boolean requiresTLSForLogin()
-
requiresTLSForSession
public boolean requiresTLSForSession()
-
requiresTLSForTPC
public boolean requiresTLSForTPC()
-
setAllowsAnonymousGPFile
public void setAllowsAnonymousGPFile(boolean value)
-
setDataServer
public void setDataServer(boolean value)
-
setMode
public void setMode(ServerProtocolFlags.TlsMode mode)
-
setGoToTLS
public void setGoToTLS(boolean value)
-
setLoadBalancingServer
public void setLoadBalancingServer(boolean value)
-
setManagerRole
public void setManagerRole(boolean value)
-
setMetaServerRole
public void setMetaServerRole(boolean value)
-
setProxyServerRole
public void setProxyServerRole(boolean value)
-
setRequiresTLSForData
public void setRequiresTLSForData(boolean value)
-
setRequiresTLSForGPF
public void setRequiresTLSForGPF(boolean value)
-
setRequiresTLSForGPFA
public void setRequiresTLSForGPFA(boolean value)
-
setRequiresTLSForLogin
public void setRequiresTLSForLogin(boolean value)
-
setRequiresTLSForSession
public void setRequiresTLSForSession(boolean value)
-
setRequiresTLSForTPC
public void setRequiresTLSForTPC(boolean value)
-
setServerRole
public void setServerRole(boolean value)
-
setSupervisorRole
public void setSupervisorRole(boolean value)
-
setSupportsGPFile
public void setSupportsGPFile(boolean value)
-
setSupportsPGReadWrite
public void setSupportsPGReadWrite(boolean value)
-
setSupportsPersistOnClose
public void setSupportsPersistOnClose(boolean value)
-
setSupportsTLS
public void setSupportsTLS(boolean value)
-
supportsGPFile
public boolean supportsGPFile()
-
supportsPGReadWrite
public boolean supportsPGReadWrite()
-
supportsPersistOnClose
public boolean supportsPersistOnClose()
-
supportsTLS
public boolean supportsTLS()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-