public class ZExplorerConnectorService extends AbstractConnectorService implements ISystemImage, org.eclipse.ui.IWorkbenchListener, java.util.Observer
Note that this is the zExplorer implementation of the ISystemImage.
AbstractConnectorService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_HOST_CP |
static java.lang.String |
PROPERTY_LOCAL_CP |
static java.lang.String |
PROPSET_CODEPAGES |
static java.lang.String |
SYSTEM_TYPE_ID
ID of the z/Server RSE system type.
|
| Constructor and Description |
|---|
ZExplorerConnectorService(java.lang.String pName,
java.lang.String pDescription,
IHost pHost,
int pPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireCredentials(boolean pRefresh) |
void |
changePassword(SystemMessage pSysMsg) |
void |
clearCredentials() |
void |
clearPassword(boolean pPersist,
boolean pPropagate) |
void |
connectSystem(org.eclipse.core.runtime.IProgressMonitor pMon)
Establishes a connection to the remote system.
|
void |
disconnectSystem(org.eclipse.core.runtime.IProgressMonitor pMon)
Disconnects the system.
|
ICredentials |
getCredentials() |
EHostCodepage |
getEncoding() |
EHostCodepage |
getHostCodepage() |
ISubSystem |
getJESSubSystem() |
ELocalCodepage |
getLocalCharset() |
ELocalCodepage |
getLocalCodepage() |
MvsSubsystem |
getMVSSubSystem() |
java.lang.String |
getPassword() |
java.lang.Object |
getSystemImplementation()
returns an object implementing this interface
|
ITaurusSystem |
getTaurusSystem()
Gets the AWM system that is associated to this z/Server connection.
|
java.lang.String |
getType()
Returns a unique system type.
|
java.lang.String |
getUserId() |
java.lang.String |
getUserID()
Returns the user id of the user who is currently connected to this system
image.
|
IUssSubSystem |
getUSSubSystem() |
java.lang.String |
getVersionReleaseModification() |
boolean |
hasPassword(boolean pPersistent) |
boolean |
inheritsCredentials() |
boolean |
isConnected() |
boolean |
isConnecting() |
boolean |
isSuppressed() |
boolean |
killOpenTaurusProcesses()
Displays a confirmation dialog whether to stop any running z/Server user
servers used for ISPF dialog communication.
|
void |
postShutdown(org.eclipse.ui.IWorkbench pArg0) |
boolean |
preShutdown(org.eclipse.ui.IWorkbench pWorkbench,
boolean pForce) |
void |
removePassword() |
void |
removeUserId() |
boolean |
requiresPassword() |
boolean |
requiresUserId() |
java.lang.String |
resolveUserIDVariable(java.lang.String pFilterString)
Resolves
%userid% and &userid. to the user ID
of the last connected (or default) user name. |
void |
savePassword() |
void |
saveUserId() |
void |
setAbortDisconnect(boolean pAbortDisconnect)
Used to be called by an object that listens on the BEFORE_DISCONNECT
CommunicationsEvent.
|
void |
setPassword(java.lang.String pMatchingUserId,
java.lang.String pPassword,
boolean pPersist,
boolean pPropagate) |
void |
setSuppressed(boolean pSuppress) |
void |
setUserId(java.lang.String pUserId) |
boolean |
sharesCredentials() |
boolean |
supportsPassword() |
boolean |
supportsUserId() |
void |
update(java.util.Observable pO,
java.lang.Object pNotification) |
static void |
waitForNextPassTicketRequest()
Waits at least 1100 milliseconds between being called.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHostName, getName, getPortpublic static final java.lang.String SYSTEM_TYPE_ID
public static final java.lang.String PROPERTY_LOCAL_CP
public static final java.lang.String PROPERTY_HOST_CP
public static final java.lang.String PROPSET_CODEPAGES
public ZExplorerConnectorService(java.lang.String pName,
java.lang.String pDescription,
IHost pHost,
int pPort)
public ELocalCodepage getLocalCodepage()
public EHostCodepage getHostCodepage()
public boolean isConnected()
isConnected in interface ISystemImagetrue if there is an active connection to the remote
system. false otherwise.public java.lang.String getVersionReleaseModification()
public boolean supportsUserId()
public boolean supportsPassword()
public java.lang.String getUserId()
public ICredentials getCredentials()
public void setUserId(java.lang.String pUserId)
public void saveUserId()
public void removeUserId()
public void setPassword(java.lang.String pMatchingUserId,
java.lang.String pPassword,
boolean pPersist,
boolean pPropagate)
public MvsSubsystem getMVSSubSystem()
public IUssSubSystem getUSSubSystem()
public void savePassword()
public void removePassword()
public void clearPassword(boolean pPersist,
boolean pPropagate)
public boolean hasPassword(boolean pPersistent)
public boolean inheritsCredentials()
public boolean sharesCredentials()
public void clearCredentials()
public void acquireCredentials(boolean pRefresh)
throws org.eclipse.core.runtime.OperationCanceledException
org.eclipse.core.runtime.OperationCanceledExceptionpublic boolean isSuppressed()
public void setSuppressed(boolean pSuppress)
public boolean requiresPassword()
public void changePassword(SystemMessage pSysMsg)
public boolean requiresUserId()
public boolean isConnecting()
isConnecting in interface ISystemImagetrue if the ConnectorService is currently trying to
connect to the hostpublic void connectSystem(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
ISystemImageconnectSystem in interface ISystemImagepMon - progress monitorjava.io.IOException - if the connection could not be establishedpublic java.lang.String getUserID()
ISystemImagegetUserID in interface ISystemImagenull if the system
image is not connected.public void disconnectSystem(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
ISystemImagedisconnectSystem in interface ISystemImagepMon - progress monitorjava.io.IOException - if the disconnect fails e.g. because of network problemspublic java.lang.String getPassword()
getPassword in interface ISystemImageISystemImage.getUserID()public static void waitForNextPassTicketRequest()
Does not wait when being called for the first time, or if the last method call was longer than 1100 milliseconds ago.
public EHostCodepage getEncoding()
getEncoding in interface ISystemImagepublic ELocalCodepage getLocalCharset()
getLocalCharset in interface ISystemImagepublic java.lang.Object getSystemImplementation()
ISystemImagegetSystemImplementation in interface ISystemImagepublic ITaurusSystem getTaurusSystem()
null if the connection
was not established yetpublic void postShutdown(org.eclipse.ui.IWorkbench pArg0)
postShutdown in interface org.eclipse.ui.IWorkbenchListenerpublic boolean preShutdown(org.eclipse.ui.IWorkbench pWorkbench,
boolean pForce)
preShutdown in interface org.eclipse.ui.IWorkbenchListenerpublic boolean killOpenTaurusProcesses()
public void update(java.util.Observable pO,
java.lang.Object pNotification)
update in interface java.util.Observerpublic java.lang.String getType()
ISystemImagegetType in interface ISystemImagepublic void setAbortDisconnect(boolean pAbortDisconnect)
pAbortDisconnect - true = abort the disconnectpublic ISubSystem getJESSubSystem()
public java.lang.String resolveUserIDVariable(java.lang.String pFilterString)
%userid% and &userid. to the user ID
of the last connected (or default) user name.pFilterString - the string to resolveCopyright © 2015 Micro Focus GmbH. All rights reserved.