|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.base.System
public class System
| Method Summary | |
|---|---|
void |
addExceptionMapping(java.lang.String s,
java.lang.Object o)
|
void |
addLookupPath(java.lang.String path)
Add a (file system) path where classes are looked up on calls to newInstance(String, Object[]). |
java.lang.Object |
createStackTrace()
JVM creates its stack traces in a different way |
java.net.URL[] |
getClassPathURLs()
|
java.lang.String |
getDeviceID()
Return the deviceID for this device. |
java.lang.Object |
getExceptionPlaceholder()
|
java.lang.Object |
getHmapRoot()
|
java.lang.String |
getRootPath(java.lang.String deviceID,
java.lang.String rootFolder)
Return the PalCom root path including a rootFolder last |
static java.util.ArrayList |
getUDPNetworkInterfaces()
Get list with UDPNetworkInterfaces with IP and subnet masks in String format from all network interfaces. |
static System |
instance()
|
java.lang.Object |
newInstance(java.lang.String className,
java.lang.Object[] params)
Construct an object of a class, given by a class name, and return it. |
void |
removeLookupPath(java.lang.String path)
Remove a path added by addLookupPath(String). |
int |
select(Channel[] channels,
int numberOfChannels,
int[] results,
long timeout)
Block for at most timeout milliseconds, or until data is available on at least one of the first numberOfChannels Channels in channels. |
int |
selectNow(Channel[] channels,
int numberOfChannels,
int[] results)
Check if data is available on at least one of the first numberOfChannels Channels in channels, and return without blocking. |
void |
sleep(int milliseconds)
Suspend entire service for the indicated duration. |
int |
time()
|
void |
yield()
Yield - this is a no-op in java |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static System instance()
public void sleep(int milliseconds)
public int time()
public int select(Channel[] channels,
int numberOfChannels,
int[] results,
long timeout)
channels - The Channels.numberOfChannels - The first numberOfChannels channels in channels are used.results - The result for each channel is put into this array (in the
same order). A positive value means that data is available.timeout - The timeout.
public int selectNow(Channel[] channels,
int numberOfChannels,
int[] results)
channels - The Channels.numberOfChannels - The first numberOfChannels channels in channels are used.results - The result for each channel is put into this array (in the
same order). A positive value means that data is available.
public void yield()
public java.lang.Object createStackTrace()
public java.lang.Object getHmapRoot()
public java.lang.Object getExceptionPlaceholder()
public void addExceptionMapping(java.lang.String s,
java.lang.Object o)
public java.lang.Object newInstance(java.lang.String className,
java.lang.Object[] params)
throws java.lang.Exception
addLookupPath(String) and
removeLookupPath(String).
className - The class nameparams - Parameters to the constructor
java.lang.Exception - if the object cannot be created.public java.net.URL[] getClassPathURLs()
public void addLookupPath(java.lang.String path)
newInstance(String, Object[]). It is platform dependent how the
search is performed at the path.
path - The pathpublic void removeLookupPath(java.lang.String path)
addLookupPath(String).
public java.lang.String getRootPath(java.lang.String deviceID,
java.lang.String rootFolder)
public java.lang.String getDeviceID()
throws java.io.IOException
java.io.IOExceptionpublic static java.util.ArrayList getUDPNetworkInterfaces()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||