public class

HeadlessClientContext

extends AbstractClientContext
implements IClientContext
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.events.EventSource
     ↳ com.pnfsoftware.jeb.client.AbstractContext
       ↳ com.pnfsoftware.jeb.client.AbstractClientContext
         ↳ com.pnfsoftware.jeb.client.HeadlessClientContext

Class Overview

Headless client context for the command-line client. This context is used:
- for license key generation in headless environments
- for command-line based software update
- as the base of the built-in script runner (v2)

Summary

[Expand]
Inherited Constants
From class com.pnfsoftware.jeb.client.AbstractClientContext
From class com.pnfsoftware.jeb.client.AbstractContext
[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.client.AbstractClientContext
From class com.pnfsoftware.jeb.client.AbstractContext
From class com.pnfsoftware.jeb.util.events.EventSource
Public Constructors
HeadlessClientContext()
Public Methods
boolean checkUpdate()
Not called locally: it is entirely up to the client to implement and decide who calls this method.
void displayDemoInformation(String demoInfo)
Called from start().
boolean displayEula(String eula)
Called from start().
void initialize(String[] argv)
void notifyFloatingClient(ControllerNotification notification)
May be called from anywhere, any thread.
void notifySupportExpired()
Called from start().
void onUpdatedSoftware(String changelist, Version oldVersion)
Notify a concrete client that a new version of JEB is being run for the first time.
String retrieveLicenseKey(String licdata)
Called from start().
boolean setupController()
Called from start().
void start()
The headless client implementation of start() also initialize the JEB engines.
void stop()
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.client.AbstractClientContext
From class com.pnfsoftware.jeb.client.AbstractContext
From class com.pnfsoftware.jeb.util.events.EventSource
From class java.lang.Object
From interface com.pnfsoftware.jeb.client.api.IClientContext
From interface com.pnfsoftware.jeb.util.events.IEventSource

Public Constructors

public HeadlessClientContext ()

Public Methods

public boolean checkUpdate ()

Not called locally: it is entirely up to the client to implement and decide who calls this method.

public void displayDemoInformation (String demoInfo)

Called from start().

public boolean displayEula (String eula)

Called from start().

public void initialize (String[] argv)

public void notifyFloatingClient (ControllerNotification notification)

May be called from anywhere, any thread.

public void notifySupportExpired ()

Called from start().

public void onUpdatedSoftware (String changelist, Version oldVersion)

Notify a concrete client that a new version of JEB is being run for the first time.

Called from start().

Parameters
changelist an optional change log
oldVersion the last version of JEB that was run (note: the current version is always available as a static public field)

public String retrieveLicenseKey (String licdata)

Called from start().

public boolean setupController ()

Called from start().

public void start ()

The headless client implementation of start() also initialize the JEB engines.

Throws
JebException

public void stop ()