ariba.util.core
Interface ServerInterface


public interface ServerInterface

Interface that defines basic functionalities that should be provided by the servers.


Field Summary
static java.lang.String TopicStartupComplete
           
 
Method Summary
 boolean debug()
           
 void fatal(java.lang.String reason)
          Call to Terminate the application when a fatal error has been encountered.
 void fatalNoRestart(java.lang.String reason)
          Call to Terminate the application when a fatal error has been encountered.
 Parameters getParameters()
          Get the parameters for this server.
 ThreadFactory getServerThreadFactory()
          Returns the main ThreadFactory used by the server
 ThreadPool getThreadPool(java.lang.String threadPoolName)
          Returns the named ThreadPool used by this server
 boolean isProduction()
           
 java.lang.String nodeName()
          Name of the node
 void shutdown()
          Terminate the application when a normal safe exit is required.
 EventLoop timerEventLoop()
          Event loop used for timers
 

Field Detail

TopicStartupComplete

static final java.lang.String TopicStartupComplete
See Also:
Constant Field Values
Method Detail

fatal

void fatal(java.lang.String reason)
Call to Terminate the application when a fatal error has been encountered. Server gets restarted when it terminates via the 'fatal' exit method.

Parameters:
reason - Reason string

fatalNoRestart

void fatalNoRestart(java.lang.String reason)
Call to Terminate the application when a fatal error has been encountered. Server does not get restarted when it terminates via the 'fatal' exit method.

Parameters:
reason - Reason string

shutdown

void shutdown()
Terminate the application when a normal safe exit is required. Server does not get restarted when it terminates from here.


getParameters

Parameters getParameters()
Get the parameters for this server.


timerEventLoop

EventLoop timerEventLoop()
Event loop used for timers


debug

boolean debug()

isProduction

boolean isProduction()

nodeName

java.lang.String nodeName()
Name of the node

Returns:
the name of the Node or an empty String if not applicable

getServerThreadFactory

ThreadFactory getServerThreadFactory()
Returns the main ThreadFactory used by the server

Returns:
the main ThreadFactory managed by this server

getThreadPool

ThreadPool getThreadPool(java.lang.String threadPoolName)
Returns the named ThreadPool used by this server



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.