public interface JCoServer
JCoServerFactoryCF#getServer()
Modifier and Type | Method and Description |
---|---|
void |
addServerErrorListener(JCoServerErrorListener listener)
Adds a new listener to the list of error listeners.
|
void |
addServerExceptionListener(JCoServerExceptionListener listener)
Adds a new listener to the list of exception listeners.
|
void |
addServerStateChangedListener(JCoServerStateChangedListener listener)
Adds a new listener to the list of state change listeners.
|
int |
getConnectionCount() |
int |
getMaxConnectionCount()
Returns the maximum number of server connections that can be registered.
|
String |
getProperty(String key)
Returns the value for a property defined by the server configuration.
|
JCoRepository |
getRepository()
Returns the default repository instance used by this server instance.
|
JCoRepository |
getRepository(JCoServerContextInfo serverContext)
Returns the repository instance used by this server instance for the specified request context.
|
String |
getRepositoryDestination()
Returns the repository destination name for obtaining the default repository.
|
JCoServerState |
getState()
Returns the current state of this server.
|
String |
getTenant() |
JCoThroughput |
getThroughput()
Returns the throughput instance.
|
int |
getWebSocketPort()
Returns the current WebSocket port under which this server has been started on this machine.
|
boolean |
isValid()
Returns true if the corresponding server configuration was neither changed nor removed, false otherwise.
|
void |
release()
Releases all resources allocated by the server instance.
|
void |
removeServerErrorListener(JCoServerErrorListener listener)
Removes a listener from the list of error listeners.
|
void |
removeServerExceptionListener(JCoServerExceptionListener listener)
Removes a listener from the list of exception listeners.
|
void |
removeServerStateChangedListener(JCoServerStateChangedListener listener)
Removes a listener from the list of state change listeners.
|
void |
removeThroughput()
Removes the throughput instance from this server.
|
void |
setRepository(JCoDestination destination)
Sets the destination instance which is used for obtaining the default repository for querying
RFC metadata.
|
void |
setRepository(JCoRepository repository)
Sets the default repository instance which is being used for querying RFC metadata.
|
void |
setRepository(String sID,
String client,
JCoDestination destination)
Sets the repository destination instance for incoming RFC calls from the system with the system ID
sID and - if defined - with the appropriate client.
|
void |
setRepository(String sID,
String client,
JCoRepository repository)
Sets the repository instance for incoming RFC calls from the system with the system ID sID and
- if defined - with the appropriate client.
|
void |
setThroughput(JCoThroughput throughput)
Sets the throughput instance for measuring the RFC requests dispatched by this server.
|
int getConnectionCount()
int getMaxConnectionCount()
void release()
JCoRuntimeException
- in case some workers are still runningJCoRepository getRepository()
JCoRepository getRepository(JCoServerContextInfo serverContext)
serverContext
- request contextvoid setRepository(JCoDestination destination)
setRepository(JCoRepository)
will be overwritten by this method.destination
- a destination being used for obtaining the default repositoryvoid setRepository(JCoRepository repository)
setRepository(JCoDestination)
will be overwritten by this method.repository
- either a custom repository or a repository connected to an ABAP servervoid setRepository(String sID, String client, JCoDestination destination) throws JCoRuntimeException
setRepository(String, String, JCoRepository)
will be overwritten by this method.sID
- system ID of the SAP ABAP system containing exactly 3-lettersclient
- null or the client containing exactly 3 digitsdestination
- destination instance to be used for obtaining a repository if sID and client are matchingJCoRuntimeException
- is thrown if sID or client is illegal.void setRepository(String sID, String client, JCoRepository repository) throws JCoRuntimeException
setRepository(String, String, JCoDestination)
will be overwritten by this method.sID
- system ID of the SAP ABAP System containing exactly 3-lettersclient
- null or the client containing exactly 3 digitsrepository
- repository instance to be used if sID and client are matchingJCoRuntimeException
- is thrown if sID or client is illegal.String getProperty(String key)
key
- property key for looking up the property value to returnString getRepositoryDestination()
void addServerErrorListener(JCoServerErrorListener listener)
If a listener is added to the list of error listeners during firing an event, it won't be notified about this event.
listener
- the error listener to addremoveServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)
void addServerExceptionListener(JCoServerExceptionListener listener)
If a listener is added to the list of exception listeners during firing an event, it won't be notified about this event.
listener
- the listener to addremoveServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)
void addServerStateChangedListener(JCoServerStateChangedListener listener)
If a listener is added to the list of state change listeners during firing an event, it won't be notified about this event.
listener
- the listener to addremoveServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)
void removeServerErrorListener(JCoServerErrorListener listener)
If a listener is removed from the list of error listeners during firing an event, it will be still notified about this event.
listener
- the listener to removeaddServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)
void removeServerExceptionListener(JCoServerExceptionListener listener)
If a listener is removed from the list of exception listeners during firing an event, it will be still notified about this event.
listener
- the listener to removeaddServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)
void removeServerStateChangedListener(JCoServerStateChangedListener listener)
If a listener is removed from the list of state change listeners during firing an event, it will be still notified about this event.
listener
- the listener to removeaddServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)
void setThroughput(JCoThroughput throughput)
throughput
- the throughput instance for storing the performance dataJCoThroughput getThroughput()
void removeThroughput()
JCoServerState getState()
boolean isValid()
String getTenant()
int getWebSocketPort()
Copyright © 2023 SAP. All rights reserved.