public class LocalSystemImage extends java.lang.Object implements ISystemImage
ISystemImage for the local operating system.
Copyright (C) Micro Focus| Modifier and Type | Method and Description |
|---|---|
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.
|
EHostCodepage |
getEncoding() |
java.lang.String |
getHostName() |
static LocalSystemImage |
getInstance()
Gets the local system image singleton instance.
|
ELocalCodepage |
getLocalCharset() |
java.lang.String |
getName()
Returns the logical, unique name of the system.
|
java.lang.String |
getPassword() |
int |
getPort() |
java.lang.Object |
getSystemImplementation()
returns an object implementing this interface
|
java.lang.String |
getType()
Returns a unique system type.
|
java.lang.String |
getUserID()
Returns the user id of the user who is currently connected to this system
image.
|
boolean |
isConnected() |
boolean |
isConnecting() |
public static LocalSystemImage getInstance()
public 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 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 getUserID()
ISystemImagegetUserID in interface ISystemImagenull if the system
image is not connected.public java.lang.String getName()
ISystemImage
Note: The name Local is reserved by AWM and should
not be used by any other implementations.
getName in interface ISystemImagepublic boolean isConnected()
isConnected in interface ISystemImagetrue if there is an active connection to the remote
system. false otherwise.public java.lang.String getHostName()
getHostName in interface ISystemImagepublic int getPort()
getPort in interface ISystemImagepublic java.lang.String getPassword()
getPassword in interface ISystemImageISystemImage.getUserID()public boolean isConnecting()
isConnecting in interface ISystemImagetrue if the system is currently connectingpublic EHostCodepage getEncoding()
getEncoding in interface ISystemImagepublic ELocalCodepage getLocalCharset()
getLocalCharset in interface ISystemImagepublic java.lang.Object getSystemImplementation()
ISystemImagegetSystemImplementation in interface ISystemImagepublic java.lang.String getType()
ISystemImagegetType in interface ISystemImageCopyright © 2015 Micro Focus GmbH. All rights reserved.