Options
Menu

Module Core

module

Core

Index

Interfaces

Classes

Object literals

Functions

Variables

Functions

$apply

  • $apply($scope: ng.IScope)
  • Performs a $scope.$apply() if not in a digest or apply phase on the given scope

    method

    $apply

    for

    Core

    static

    Parameters

    • $scope: ng.IScope

$applyLater

  • $applyLater($scope: any, timeout?: number50)
  • Performs a $scope.$apply() after the given timeout period

    method

    $applyLater

    for

    Core

    static

    Parameters

    • $scope: any
    • timeout?: number optional

$applyNowOrLater

  • $applyNowOrLater($scope: ng.IScope)
  • Performs a $scope.$apply() if not in a digest right now otherwise it will fire a digest later

    method

    $applyNowOrLater

    for

    Core

    static

    Parameters

    • $scope: ng.IScope

$digest

  • $digest($scope: ng.IScope)
  • Performs a $scope.$digest() if not in a digest or apply phase on the given scope

    method

    $apply

    for

    Core

    static

    Parameters

    • $scope: ng.IScope

_counterFunction

  • _counterFunction(d: any): any

_resetJolokiaUrls

  • _resetJolokiaUrls(): Array<String>

_resetUrlPrefix

  • _resetUrlPrefix()

addCSS

  • addCSS(path: any)
  • Adds the specified CSS file to the document's head, handy for external plugins that might bring along their own CSS

    Parameters

    • path: any

addRecentConnection

  • addRecentConnection(localStorage: any, name: any)

addResponse

  • addResponse(arguments: any, value: any)

adjustHeight

  • adjustHeight()

argumentsToString

  • argumentsToString(arguments: Array<any>): string

asArray

  • asArray(value: any): Array<any>
  • If the value is not an array then wrap it in one

    method

    asArray

    for

    Core

    static

    Parameters

    • value: any

    Returns Array<any>

authHeaderValue

booleanToString

  • booleanToString(value: boolean): string
  • Converts boolean value to string "true" or "false"

    Parameters

    • value: boolean

    Returns string

checkJolokiaOptimization

  • checkJolokiaOptimization(jolokia: any, jolokiaStatus: any)
  • Queries available server-side MBean to check if can call optimized jolokia.list() operation

    Parameters

    • jolokia: any
    • jolokiaStatus: any

clearConnections

  • clearConnections()

clearNotifications

  • clearNotifications()

compareVersionNumberArrays

  • compareVersionNumberArrays(v1: Array<number>, v2: Array<number>): number
  • Compares the 2 version arrays and returns -1 if v1 is less than v2 or 0 if they are equal or 1 if v1 is greater than v2

    method

    compareVersionNumberArrays

    for

    Core

    static

    Parameters

    • v1: Array<number>

      an array of version numbers with the most significant version first (major, minor, patch).

    • v2: Array<number>

    Returns number

configuredPluginsForPerspectiveId

  • configuredPluginsForPerspectiveId(perspectiveId: any, workspace: any, jolokia: any, localStorage: any): Array<any>
  • Function to return the configured plugin for the given perspective. The returned list is sorted in the configured order. Notice the list contains plugins which may have been configured as disabled.

    Parameters

    • perspectiveId: any
    • workspace: any
    • jolokia: any
    • localStorage: any

    Returns Array<any>

connectToServer

createConnectOptions

createConnectToServerOptions

createGraphStates

  • createGraphStates(nodes: any, links: any, transitions: any): any

createHref

  • createHref($location: any, href: any, removeParams?: anynull): any
  • Creates a link by appending the current $location.search() hash to the given href link, removing any required parameters from the link

    method

    createHref

    for

    Core

    static

    Parameters

    • $location: any
    • href: any

      the link to have any $location.search() hash parameters appended

    • removeParams?: any optional

      any parameters to be removed from the $location.search()

    Returns any

    the link with any $location.search() parameters added

createJolokia

  • createJolokia(url: string, username: string, password: string): Jolokia.IJolokia
  • Creates a jolokia object for connecting to the container with the given remote jolokia URL, username and password

    method

    createJolokia

    for

    Core

    static

    Parameters

    • url: string
    • username: string
    • password: string

    Returns Jolokia.IJolokia

createRemoteWorkspace

  • createRemoteWorkspace(remoteJolokia: any, $location: any, localStorage: any, $rootScope?: anynull, $compile?: anynull, $templateCache?: anynull, userDetails?: anynull): Workspace
  • Creates a remote workspace given a remote jolokia for querying the JMX MBeans inside the jolokia

    Parameters

    • remoteJolokia: any
    • $location: any
    • localStorage: any
    • $rootScope?: any optional
    • $compile?: any optional
    • $templateCache?: any optional
    • userDetails?: any optional

    Returns Workspace

createResponseKey

  • createResponseKey(arguments: any): string

createServerConnectionUrl

d3ForceGraph

  • d3ForceGraph(scope: any, nodes: any, links: any, canvasElement: any)

dagreLayoutGraph

  • dagreLayoutGraph(nodes: any, links: any, width: any, height: any, svgElement: any, allowDrag?: booleanfalse, onClick?: anynull): any
  • Parameters

    • nodes: any
    • links: any
    • width: any
    • height: any
    • svgElement: any
    • allowDrag?: boolean optional
    • onClick?: any optional

    Returns any

dagreUpdateGraphData

  • dagreUpdateGraphData(data: any)

defaultJolokiaErrorHandler

  • defaultJolokiaErrorHandler(response: any, options?: {}{})
  • The default error handler which logs errors either using debug or log level logging based on the silent setting

    Parameters

    • response: any

      the response from a jolokia request

    • options?: {} optional

doNothing

  • doNothing(value: any): any

escapeHtml

  • escapeHtml(str: any): any

executePostLoginTasks

  • executePostLoginTasks()

executePreLogoutTasks

  • executePreLogoutTasks(onComplete: Function)

extractHashURL

  • extractHashURL(url: string): string

extractTargetUrl

  • extractTargetUrl($location: any, scheme: any, port: any): string
  • Extracts the url of the target, eg usually http://localhost:port, but if we use fabric to proxy to another host, then we return the url that we proxied too (eg the real target)

    Parameters

    • $location: any
    • scheme: any

      to force use a specific scheme, otherwise the scheme from location is used

    • port: any

      to force use a specific port number, otherwise the port from location is used

    Returns string

fileExtension

  • fileExtension(name: string, defaultValue?: string""): string
  • Returns the lowercase file extension of the given file name or returns the empty string if the file does not have an extension

    method

    fileExtension

    for

    Core

    static

    Parameters

    • name: string
    • defaultValue?: string optional

    Returns string

filterTopLevelTabs

  • filterTopLevelTabs(perspective: any, workspace: any, configuredPlugins: any): Array<any>

forEachLeafFolder

  • forEachLeafFolder(folders: any, fn: any)
  • Invokes the given function on each leaf node in the array of folders

    method

    forEachLeafFolder

    for

    Core

    static

    Parameters

    • folders: any
    • fn: any

getBasicAuthHeader

  • getBasicAuthHeader(username: string, password: string): string

getConnectOptions

  • getConnectOptions(name: string, localStorage?: WindowLocalStorageCore.getLocalStorage()): ConnectOptions
  • Returns the connection options for the given connection name from localStorage

    Parameters

    • name: string
    • localStorage?: WindowLocalStorage optional

    Returns ConnectOptions

getConnectionNameParameter

  • getConnectionNameParameter(search: any): string
  • Returns the current connection name using the given search parameters

    Parameters

    • search: any

    Returns string

getDefaultPlugin

  • getDefaultPlugin(perspectiveId: any, workspace: any, jolokia: any, localStorage: any): any
  • Gets the default configured plugin for the given perspective, or null if no default has been configured.

    Parameters

    • perspectiveId: any
    • workspace: any
    • jolokia: any
    • localStorage: any

    Returns any

getDocHeight

  • getDocHeight(): number

getJolokiaUrl

  • getJolokiaUrl(): String
  • Returns Jolokia URL by checking its availability if not in local mode

    Returns String

getLocalStorage

  • getLocalStorage(): WindowLocalStorage

getMBeanTypeFolder

  • getMBeanTypeFolder(workspace: Workspace, domain: string, typeName: string): Folder
  • Returns the Folder object for the given domain name and type name or null if it can not be found

    method

    getMBeanTypeFolder

    for

    Core

    static

    Parameters

    • workspace: Workspace
    • domain: string
    • typeName: string

    Returns Folder

getMBeanTypeObjectName

  • getMBeanTypeObjectName(workspace: Workspace, domain: string, typeName: string): string
  • Returns the JMX objectName for the given jmx domain and type name

    method

    getMBeanTypeObjectName

    for

    Core

    static

    Parameters

    • workspace: Workspace
    • domain: string
    • typeName: string

    Returns string

getOldestKey

getOrCreateElements

  • getOrCreateElements(domElement: any, arrayOfElementNames: Array<string>): any