public class TdbGridSysProps extends TdbMessageProvider implements com.tietoenator.trip.jxp.internal.utils.DOMSink
Constructor and Description |
---|
TdbGridSysProps(TdbSession session)
Constructor, creates a blank properties collection
|
Modifier and Type | Method and Description |
---|---|
void |
get()
Retrieve the most recently written set of properties from the grid.
|
java.lang.String |
getAnonymousPassword()
Get the password of the user that will be substituted into all anonymous requests
|
java.lang.String |
getAnonymousUser()
Get the name of the user that will be substituted into all anonymous requests
|
java.lang.String |
getAuthenticationServer()
Get the name of the TRIPserver that will provide authentication services for the grid.
|
boolean |
getUseConsoleLogging()
Check if the grid is enabled for logging all activity to a console
|
boolean |
getUseDebugMessages()
Check whether the grid is issuing debug messages, i.e. fully decorated
error messages including stack traces.
|
java.util.Map<java.lang.String,java.lang.String> |
properties()
Retrieve the full set of properties.
|
void |
put()
Store the current collection properties to the grid.
|
void |
remove(java.lang.String name)
Remove a named property from the collection
|
void |
setAnonymousPassword(java.lang.String name)
Set the password of the user that will be substituted into all anonymous requests
|
void |
setAnonymousUser(java.lang.String name)
Set the name of the user that will be substituted into all anonymous requests
|
void |
setAuthenticationServer(java.lang.String server)
Set the name of the TRIPserver that will provide authentication services for the grid.
|
void |
setUseConsoleLogging(boolean log)
Establish whether the grid should log all activity to a console; this requires
a valid console to be available to the grid router
|
void |
setUseDebugMessages(boolean messages)
Establish whether the grid should issue debug messages, i.e. fully
decorated error messages including stack traces.
|
void |
unremove(java.lang.String name)
Reverses any prior removal of a property from the collection.
|
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessages
cancel, getSession, isCancelable, setCancelable
public TdbGridSysProps(TdbSession session) throws TdbException
session
- Active sessionTdbException
public java.util.Map<java.lang.String,java.lang.String> properties()
remove
or unremove
operations. The retrieved set is a snapshot, is
not live, and cannot be used to propagate changes down to the underlying
collection.public java.lang.String getAuthenticationServer()
public void setAuthenticationServer(java.lang.String server)
server
- Server namepublic java.lang.String getAnonymousUser()
public void setAnonymousUser(java.lang.String name)
name
- Anonymous user namepublic java.lang.String getAnonymousPassword()
public void setAnonymousPassword(java.lang.String name)
name
- Anonymous user's passwordpublic boolean getUseConsoleLogging()
public void setUseConsoleLogging(boolean log)
log
- if true, the grid router will attempt to log all activitypublic boolean getUseDebugMessages()
public void setUseDebugMessages(boolean messages)
messages
- If true, the grid will emit all error messages in
fully decorated form, including stack traces.public void remove(java.lang.String name)
name
- The name of the property to removepublic void unremove(java.lang.String name)
name
- The name of the property to restorepublic void get() throws TdbException
TdbException
public void put() throws TdbException
TdbException