Sybase ESP .NET SDK  5.0 ESD#1
NetEspServer Class Reference

List of all members.

Public Types

enum  NET_ESP_SERVER_EVENT {
  NET_ESP_SERVER_EVENT_CONNECTED = 0x01000001, NET_ESP_SERVER_EVENT_MANAGER_LIST_CHANGE = 0x01000002, NET_ESP_SERVER_EVENT_CONTROLLER_LIST_CHANGE = 0x01000004, NET_ESP_SERVER_EVENT_WORKSPACE_LIST_CHANGE = 0x01000008,
  NET_ESP_SERVER_EVENT_APPLICATION_LIST_CHANGE = 0x01000010, NET_ESP_SERVER_EVENT_DISCONNECTED = 0x01000020, NET_ESP_SERVER_EVENT_CLOSED = 0x01000040, NET_ESP_SERVER_EVENT_ERROR = 0x01000080,
  NET_ESP_SERVER_EVENT_ALL = 0x010000FF, NET_ESP_SERVER_EVENT_PROJECT_LIST_CHANGE = 0x01000010
}
enum  NET_ESP_SERVER_OPERATION_T {
  NET_ESP_SERVER_OP_ADD_WORKSPACE, NET_ESP_SERVER_OP_REMOVE_WORKSPACE, NET_ESP_SERVER_OP_ADD_APPLICATION, NET_ESP_SERVER_OP_REMOVE_APPLICATION,
  NET_ESP_SERVER_OP_START_APPLICATION, NET_ESP_SERVER_OP_STOP_APPLICATION, NET_ESP_SERVER_OP_WAIT_STATUS
}
enum  NET_ESP_SERVER_STATUS_T { NET_ESP_SERVER_STATUS_STARTED, NET_ESP_SERVER_STATUS_STOPPED }

Public Member Functions

delegate void SERVER_EVENT_CALLBACK (NetEspServerEvent^ evt, IntPtr^ data)
 NetEspServer (NetEspUri^ uri, NetEspCredentials^ creds, NetEspServerOptions^ options)
 NetEspServer (String^ host, int32_t port, NetEspCredentials^ creds, NetEspServerOptions^ options)
 NetEspServer (ESP_SDK_NAMESPACE::EspServer *server)
ESP_SDK_NAMESPACE::EspServer * getEspServer ()
String^ get_name ()
int32_t connect (NetEspError^ error)
int32_t disconnect (NetEspError^ error)
int32_t close (NetEspError^ error)
NetEspProjectget_project (String^ workspace, String^ project, NetEspProjectOptions^ project_options, NetEspError^ error)
NetEspProjectget_project (NetEspProjectOptions^ project_options, NetEspError^ error)
NetEspServerOptionsget_options ()
int32_t set_callback (uint32_t events, SERVER_EVENT_CALLBACK^ callback, IntPtr^ user_data, NetEspError^ error)
int32_t remove_callback (SERVER_EVENT_CALLBACK^ callback, NetEspError^ error)
int32_t select_with (NetEspSelector^ selector, uint32_t events, NetEspError^ error)

Member Enumeration Documentation

Enumerator:
NET_ESP_SERVER_EVENT_CONNECTED 

Connection to server established

NET_ESP_SERVER_EVENT_MANAGER_LIST_CHANGE 

Change in managers on the server

NET_ESP_SERVER_EVENT_CONTROLLER_LIST_CHANGE 

Change in controllers on the server

NET_ESP_SERVER_EVENT_WORKSPACE_LIST_CHANGE 

Change in workspaces on the server

NET_ESP_SERVER_EVENT_APPLICATION_LIST_CHANGE 

Change in applications on the server

NET_ESP_SERVER_EVENT_DISCONNECTED 

Connection to server lost

NET_ESP_SERVER_EVENT_CLOSED 

The server object is closed

NET_ESP_SERVER_EVENT_ERROR 

Error processing an update or a request

NET_ESP_SERVER_EVENT_ALL 

All server events


Member Function Documentation

int32_t NetEspServer::close ( NetEspError error)

Once closed this server object is no longer available for interaction In DIRECT access mode, call returns when NetEspServer closes. In CALLBACK/SELECT returns immediately. Completion is indicated by an NET_ESP_SERVER_EVENT_CLOSED event.

int32_t NetEspServer::connect ( NetEspError error)

Connect to the backend cluster. In DIRECT access mode returns when connected. In CALLBACK/SELECT will return immediately. Completion will be indicated by an NET_ESP_SERVER_CONNECTED event.

int32_t NetEspServer::disconnect ( NetEspError error)

Disconnects from the backend cluster. In DIRECT access mode, call returns when NetEspServer disconnects. In CALLBACK/SELECT returns immediately. Completion is indicated by an NET_ESP_SERVER_EVENT_DISCONNECTED event.

NetEspProject NetEspServer::get_project ( String^  workspace,
String^  project,
NetEspProjectOptions project_options,
NetEspError error 
)

Retrieves the NetEspProject instance for the project belonging to the specified workspace and with the specified name.

int32_t NetEspServer::remove_callback ( SERVER_EVENT_CALLBACK^  callback,
NetEspError error 
)

Deregisters the specified callback handler for the server.

int32_t NetEspServer::select_with ( NetEspSelector selector,
uint32_t  events,
NetEspError error 
)

Registers this NetEspServer with the specified NetEspSelector. Waiting on the selector returns when the events registered for are triggered.

int32_t NetEspServer::set_callback ( uint32_t  events,
SERVER_EVENT_CALLBACK^  callback,
IntPtr^  user_data,
NetEspError error 
)

Registers a callback handler for the server in CALLBACK access mode