import {Ice} from 'ice'; import '../Ice/Identity'; import '../Ice/BuiltinSequences'; declare module './IceGrid.ns' { namespace IceGrid { /** * This exception is raised if an application does not exist. */ class ApplicationNotExistException extends Ice.UserException { constructor(name?: string); /** * The name of the application. */ name: string; } /** * This exception is raised if a server does not exist. */ class ServerNotExistException extends Ice.UserException { constructor(id?: string); id: string; } /** * This exception is raised if a server failed to start. */ class ServerStartException extends Ice.UserException { constructor(id?: string, reason?: string); /** * The identifier of the server. */ id: string; /** * The reason for the failure. */ reason: string; } /** * This exception is raised if a server failed to stop. */ class ServerStopException extends Ice.UserException { constructor(id?: string, reason?: string); /** * The identifier of the server. */ id: string; /** * The reason for the failure. */ reason: string; } /** * This exception is raised if an adapter does not exist. */ class AdapterNotExistException extends Ice.UserException { constructor(id?: string); /** * The id of the object adapter. */ id: string; } /** * This exception is raised if an object already exists. */ class ObjectExistsException extends Ice.UserException { constructor(id?: Ice.Identity); /** * The identity of the object. */ id: Ice.Identity; } /** * This exception is raised if an object is not registered. */ class ObjectNotRegisteredException extends Ice.UserException { constructor(id?: Ice.Identity); /** * The identity of the object. */ id: Ice.Identity; } /** * This exception is raised if a node does not exist. */ class NodeNotExistException extends Ice.UserException { constructor(name?: string); /** * The node name. */ name: string; } /** * This exception is raised if a registry does not exist. */ class RegistryNotExistException extends Ice.UserException { constructor(name?: string); /** * The registry name. */ name: string; } /** * An exception for deployment errors. */ class DeploymentException extends Ice.UserException { constructor(reason?: string); /** * The reason for the failure. */ reason: string; } /** * This exception is raised if a node could not be reached. */ class NodeUnreachableException extends Ice.UserException { constructor(name?: string, reason?: string); /** * The name of the node that is not reachable. */ name: string; /** * The reason why the node couldn't be reached. */ reason: string; } /** * This exception is raised if a server could not be reached. */ class ServerUnreachableException extends Ice.UserException { constructor(name?: string, reason?: string); /** * The id of the server that is not reachable. */ name: string; /** * The reason why the server couldn't be reached. */ reason: string; } /** * This exception is raised if a registry could not be reached. */ class RegistryUnreachableException extends Ice.UserException { constructor(name?: string, reason?: string); /** * The name of the registry that is not reachable. */ name: string; /** * The reason why the registry couldn't be reached. */ reason: string; } /** * This exception is raised if an unknown signal was sent to * to a server. */ class BadSignalException extends Ice.UserException { constructor(reason?: string); /** * The details of the unknown signal. */ reason: string; } /** * This exception is raised if a patch failed. */ class PatchException extends Ice.UserException { constructor(reasons?: Ice.StringSeq); /** * The reasons why the patch failed. */ reasons: Ice.StringSeq; } /** * * * * This exception is raised if a registry lock wasn't * * acquired or is already held by a session. * * */ class AccessDeniedException extends Ice.UserException { constructor(lockUserId?: string); /** * The id of the user holding the lock (if any). */ lockUserId: string; } /** * This exception is raised if the allocation of an object failed. */ class AllocationException extends Ice.UserException { constructor(reason?: string); /** * The reason why the object couldn't be allocated. */ reason: string; } /** * This exception is raised if the request to allocate an object times * out. */ class AllocationTimeoutException extends AllocationException {} /** * This exception is raised if a client is denied the ability to create * a session with IceGrid. */ class PermissionDeniedException extends Ice.UserException { constructor(reason?: string); /** * The reason why permission was denied. */ reason: string; } /** * This exception is raised if an observer is already registered with * the registry. * * @see AdminSession#setObservers * @see AdminSession#setObserversByIdentity */ class ObserverAlreadyRegisteredException extends Ice.UserException { constructor(id?: Ice.Identity); /** * The identity of the observer. */ id: Ice.Identity; } /** * This exception is raised if a file is not available. * * @see AdminSession#openServerStdOut * @see AdminSession#openServerStdErr * @see AdminSession#openNodeStdOut * @see AdminSession#openNodeStdErr * @see AdminSession#openRegistryStdOut * @see AdminSession#openRegistryStdErr */ class FileNotAvailableException extends Ice.UserException { constructor(reason?: string); /** * The reason for the failure. */ reason: string; } } } export {IceGrid} from './IceGrid.ns';