Package com.tietoenator.trip.jxp.grid
Class TdbGridSysProps
java.lang.Object
com.tietoenator.trip.jxp.session.TdbSessionObject
com.tietoenator.trip.jxp.TdbMessageProvider
com.tietoenator.trip.jxp.grid.TdbGridSysProps
- All Implemented Interfaces:
com.tietoenator.trip.jxp.internal.utils.DOMSink
public class TdbGridSysProps
extends TdbMessageProvider
implements com.tietoenator.trip.jxp.internal.utils.DOMSink
Collection of system properties managed on the grid.
-
Constructor Summary
ConstructorsConstructorDescriptionTdbGridSysProps
(TdbSession session) Constructor, creates a blank properties collection -
Method Summary
Modifier and TypeMethodDescriptionvoid
get()
Retrieve the most recently written set of properties from the grid.Get the password of the user that will be substituted into all anonymous requestsGet the name of the user that will be substituted into all anonymous requestsGet the name of the TRIPserver that will provide authentication services for the grid.boolean
Check if the grid is enabled for logging all activity to a consoleboolean
Check whether the grid is issuing debug messages, i.e. fully decorated error messages including stack traces.Retrieve the full set of properties.void
put()
Store the current collection properties to the grid.void
Remove a named property from the collectionvoid
setAnonymousPassword
(String name) Set the password of the user that will be substituted into all anonymous requestsvoid
setAnonymousUser
(String name) Set the name of the user that will be substituted into all anonymous requestsvoid
setAuthenticationServer
(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 routervoid
setUseDebugMessages
(boolean messages) Establish whether the grid should issue debug messages, i.e. fully decorated error messages including stack traces.void
Reverses any prior removal of a property from the collection.Methods inherited from class com.tietoenator.trip.jxp.TdbMessageProvider
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessages
Methods inherited from class com.tietoenator.trip.jxp.session.TdbSessionObject
cancel, getSession, isCancelable, setCancelable
-
Constructor Details
-
TdbGridSysProps
Constructor, creates a blank properties collection- Parameters:
session
- Active session- Throws:
TdbException
-
-
Method Details
-
properties
Retrieve the full set of properties.
The property map retrieved is as modified to date by anyremove
orunremove
operations. The retrieved set is a snapshot, is not live, and cannot be used to propagate changes down to the underlying collection.- Returns:
- Property map
-
getAuthenticationServer
Get the name of the TRIPserver that will provide authentication services for the grid.- Returns:
- Server name
-
setAuthenticationServer
Set the name of the TRIPserver that will provide authentication services for the grid.- Parameters:
server
- Server name
-
getAnonymousUser
Get the name of the user that will be substituted into all anonymous requests- Returns:
- Anonymous user name
-
setAnonymousUser
Set the name of the user that will be substituted into all anonymous requests- Parameters:
name
- Anonymous user name
-
getAnonymousPassword
Get the password of the user that will be substituted into all anonymous requests- Returns:
- Anonymous user's password
-
setAnonymousPassword
Set the password of the user that will be substituted into all anonymous requests- Parameters:
name
- Anonymous user's password
-
getUseConsoleLogging
public boolean getUseConsoleLogging()Check if the grid is enabled for logging all activity to a console- Returns:
- true / false
-
setUseConsoleLogging
public 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- Parameters:
log
- if true, the grid router will attempt to log all activity
-
getUseDebugMessages
public boolean getUseDebugMessages()Check whether the grid is issuing debug messages, i.e. fully decorated error messages including stack traces.- Returns:
- true / false
-
setUseDebugMessages
public void setUseDebugMessages(boolean messages) Establish whether the grid should issue debug messages, i.e. fully decorated error messages including stack traces.- Parameters:
messages
- If true, the grid will emit all error messages in fully decorated form, including stack traces.
-
remove
Remove a named property from the collection- Parameters:
name
- The name of the property to remove
-
unremove
Reverses any prior removal of a property from the collection.- Parameters:
name
- The name of the property to restore
-
get
Retrieve the most recently written set of properties from the grid.This method causes network I/O.
- Throws:
TdbException
-
put
Store the current collection properties to the grid.This method causes network I/O.
- Throws:
TdbException
-