public class CommandlineUtilityServer extends IfsProtocolServer implements Serializable, CupConstants
IfsServer.ServerRequest
Modifier and Type | Field and Description |
---|---|
static String |
CUP_DESCRIPTIVE_NAME |
static String |
CUP_NAME |
static String |
CUP_STATUS |
static int |
DEFAULT_PORT |
protected boolean |
m_ObfuscateIds |
static String |
OBFUSCATE_IDS
ObfuscateIds
|
LOCALE_COUNTRY, LOCALE_LANGUAGE, LOCALE_VARIANT, LOCALHOST_DEFAULT, m_AcceptQueueSize, m_AnonymousAllowed, m_AnonymousName, m_AnonymousPool, m_AnonymousPoolsize, m_BindAddress, m_Channels, m_ChannelSequence, m_Commands, m_ControlPort, m_ControlSocketServer, m_DateFormat, m_Delimiter, m_HostAddress, m_HostName, m_LastStaleSessionRemoval, m_Locale, m_LocaleCountry, m_LocaleLanguage, m_LocaleVariant, m_Localhost, m_Localizer, m_ProtocolSessions, m_Random, m_SessionStateTimeoutPeriod, m_SessionTimeoutPeriod, m_StaleSessionRemovalPeriod, m_Version
LEVEL_HIGH, LEVEL_LOW, LEVEL_MEDIUM, LEVEL_OFF
ACCEPT_QUEUE_SIZE, ANONYMOUS_ALLOWED, ANONYMOUS_POOLSIZE, DATE_FORMAT, DELIMITER, HOST_ADDRESS, HOST_NAME, LAST_STALE_SESSION_REMOVAL_TIME, LIBRARY_VERSION, LOCALHOST, PORT, SESSION_STATE_TIMEOUT_PERIOD, SESSION_TIMEOUT_PERIOD, STALE_SESSION_REMOVAL_PERIOD
SERVERSTATUS_DISPOSED, SERVERSTATUS_RUNNING, SERVERSTATUS_STARTING, SERVERSTATUS_STOPPED, SERVERSTATUS_STOPPING, SERVERSTATUS_SUSPENDED, SERVERSTATUS_UNKNOWN
Constructor and Description |
---|
CommandlineUtilityServer()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
protected IfsServerChannel |
constructChannel(Socket socket,
int channelKey,
String threadName)
Construct an IfsProtocolChannel.
|
protected String |
getAcceptQueueSizeKey() |
protected String |
getAnonymousAllowedKey() |
protected String |
getAnonymousPoolsizeKey() |
protected String |
getAnonymousPoolSizeKey() |
protected String |
getDateFormatKey() |
int |
getDefaultPort()
get Server's default port.
|
String |
getDefaultServerName()
get Server's default name, in case ServerManager doesn't specify
one explcitly.
|
protected String |
getDelimiterKey() |
String |
getDescriptiveName()
get Server's descriptive name.
|
protected String |
getHostAddressKey() |
protected String |
getHostNameKey() |
protected String |
getLastStaleSessionRemovalPeriodKey() |
protected String |
getLibraryVersionKey() |
protected String |
getLocalhostKey() |
IfsLogger |
getLogger()
Gets the appropriate logger for this server.
|
protected IfsLogger |
getLoggerForLegacyLogging()
Gets the IfsLogger to use for legacy logging.
|
boolean |
getObfuscateIds()
get if the date and ids should be removed from listing commands.
|
protected String |
getPortKey() |
protected String |
getSessionStateTimeoutKey() |
protected String |
getSessionTimeoutKey() |
protected String |
getStaleSessionRemovalPeriodKey() |
void |
initialize()
Initializes this Server.
|
boolean |
isPropertyReadonly(String name)
Gets whether the specified dynamic property is readonly.
|
static void |
main(String[] args)
This is used to run the CupServer in the standalone mode.
|
protected void |
registerCommands(LibrarySession session)
Register the Commands that this Server invokes.
|
protected void |
registerSpecificCommand(String key,
String cmd,
LibrarySession session) |
protected void |
useInitializationSession(LibrarySession session)
Initialize variables
|
addNewProtocolSession, clearDerivedProperties, closeSocketServer, dispose, establishServerSocket, getAnonymousAllowed, getAnonymousSession, getAnonymousUserName, getBindAddress, getCommandInvoker, getControlPort, getDateFormatProperty, getDelimiterProperty, getHostname, getLocale, getProtocolSession, getResourceString, getResourceString, getServerSocket, getSessionTimeoutPeriodProperty, handlePropertyChangeRequest, handlePropertyChangeRequest, handleStopRequest, postAcceptLoop, postRun, preAcceptLoop, preRun, registerCommand, registerCommand, registerCommand, releaseAnonymousSession, removeChannel, removeProtocolSession, run, shouldHandlePropertyRequest, shutdown, supportsPriority, supportsSuspendResume
checkSession, connectSession, constructSession, convertTimerInterval, convertTimerInterval, convertTimerInterval, getLastTimerActivation, getNextTimerActivation, getService, getTimerActivationPeriod, getTimerClassName, getTimerConfiguration, handlePriorityChangeRequest, handlePropertyChangeRequest, handleRequest, handleRequests, handleResumeRequest, handleServerStateControllerRequest, handleSuspendRequest, handleTimerExpired, isNonCompeting, isServiceAvailable, isTimerActive, isTokenNonCompeting, postCheckServerStateRequest, postRequest, processEvent, processEvents, queueEvent, resetTimer, restart, resume, serviceAvailabilityCheckNeeded, setPriority, setProperty, setProperty, start, startTimer, stop, stopRequested, stopTimer, suspend, timerExpired, waitForServiceAvailability, waitServer
acquireSession, constructLibrarySessionPool, createServerState, deregister, disconnectSession, getConfigurationOverridesTable, getConfigurationTable, getCredential, getDesiredStatus, getIfsHome, getInitialConfigurationTable, getName, getNode, getNodeName, getOracleHome, getParameterTable, getPriority, getProperties, getProperty, getServerConfigurationName, getServerState, getServerStateValue, getServerType, getServiceName, getSession, getStateTable, getStatus, getSystemUserCredential, handleServerConfigurationOverrideRequest, handleServerStateEvent, initialize, initialize, isAgent, isDisposed, isInitialized, isLogged, log, log, log, releaseSession, releaseSession, setDesiredStatus, setDesiredStatus, setSessionTimeoutPrevented, setStateProperty, setStatus, startStandalone, startStandalone, toStatusLabel, toStatusLabel, toStatusLabel, verifyNotDisposed, verifyNotDisposed
public static final String OBFUSCATE_IDS
public static final String CUP_NAME
public static final String CUP_DESCRIPTIVE_NAME
public static final String CUP_STATUS
public static final int DEFAULT_PORT
protected boolean m_ObfuscateIds
public IfsLogger getLogger()
Typically overridden by subclasses to return the IfsLogger associatged with the specific server.
public String getDefaultServerName() throws IfsException
IfsException
public String getDescriptiveName() throws IfsException
getDescriptiveName
in class IfsProtocolServer
IfsException
public int getDefaultPort() throws IfsException
getDefaultPort
in class IfsProtocolServer
IfsException
public boolean getObfuscateIds() throws IfsException
IfsException
protected IfsServerChannel constructChannel(Socket socket, int channelKey, String threadName) throws Exception
constructChannel
in class IfsProtocolServer
IfsException
- if the operation failsException
protected String getPortKey()
getPortKey
in class IfsProtocolServer
protected String getDelimiterKey()
getDelimiterKey
in class IfsProtocolServer
protected String getDateFormatKey()
getDateFormatKey
in class IfsProtocolServer
protected String getAnonymousAllowedKey()
getAnonymousAllowedKey
in class IfsProtocolServer
protected String getLibraryVersionKey()
getLibraryVersionKey
in class IfsProtocolServer
protected String getAnonymousPoolSizeKey()
getAnonymousPoolSizeKey
in class IfsProtocolServer
protected String getSessionTimeoutKey()
getSessionTimeoutKey
in class IfsProtocolServer
protected String getSessionStateTimeoutKey()
getSessionStateTimeoutKey
in class IfsProtocolServer
protected String getStaleSessionRemovalPeriodKey()
getStaleSessionRemovalPeriodKey
in class IfsProtocolServer
protected String getAcceptQueueSizeKey()
getAcceptQueueSizeKey
in class IfsProtocolServer
protected String getLocalhostKey()
getLocalhostKey
in class IfsProtocolServer
protected String getLastStaleSessionRemovalPeriodKey()
getLastStaleSessionRemovalPeriodKey
in class IfsProtocolServer
protected String getHostNameKey()
getHostNameKey
in class IfsProtocolServer
protected String getHostAddressKey()
getHostAddressKey
in class IfsProtocolServer
protected String getAnonymousPoolsizeKey()
getAnonymousPoolsizeKey
in class IfsProtocolServer
public void initialize() throws Exception
This method is called when the Server is first loaded.
If this method throws an exception, loading of the Server is aborted.
initialize
in class IfsProtocolServer
Exception
- if the operation failspublic boolean isPropertyReadonly(String name) throws IfsException
IfsServer
Readonly properties cannot be set using setProperty
.
isPropertyReadonly
in interface ServerInterface
isPropertyReadonly
in class IfsProtocolServer
name
- the property namesetProperty
IfsException
- (IFS-45176) if the operation failsprotected void useInitializationSession(LibrarySession session) throws Exception
useInitializationSession
in class IfsProtocolServer
Exception
protected void registerCommands(LibrarySession session) throws IfsException
registerCommands
in class IfsProtocolServer
IfsException
- if the operation failsprotected void registerSpecificCommand(String key, String cmd, LibrarySession session) throws IfsException
IfsException
protected IfsLogger getLoggerForLegacyLogging()
getLoggerForLegacyLogging
in class Server
Copyright © 2023. All rights reserved.