本文整理汇总了Java中com.esri.ges.core.component.RunningException类的典型用法代码示例。如果您正苦于以下问题:Java RunningException类的具体用法?Java RunningException怎么用?Java RunningException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RunningException类属于com.esri.ges.core.component包,在下文中一共展示了RunningException类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
public void start() throws RunningException
{
try
{
switch (getRunningState())
{
case STARTING:
case STARTED:
case STOPPING:
return;
}
setRunningState(RunningState.STARTING);
thread = new Thread(this);
thread.start();
}
catch (Exception e)
{
LOGGER.error("UNEXPECTED_ERROR_STARTING", e);
stop();
}
}
示例2: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@Override
public void start() throws RunningException
{
try
{
setRunningState(RunningState.STARTING);
connectToAwsEventHub();
setRunningState(RunningState.STARTED);
}
catch (Exception e)
{
LOGGER.error("INIT_ERROR", e);
setErrorMessage(e.getMessage());
setRunningState(RunningState.ERROR);
}
}
示例3: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
public void start() throws RunningException
{
try
{
switch (getRunningState())
{
case STARTING:
case STARTED:
case STOPPING:
return;
}
setRunningState(RunningState.STARTING);
thread = new Thread(this);
thread.start();
}
catch (Exception e)
{
log.error("UNEXPECTED_ERROR_STARTING", e);
stop();
}
}
示例4: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@Override
public void start() throws RunningException
{
try
{
setRunningState(RunningState.STARTING);
applyProperties();
connectMqtt();
setRunningState(RunningState.STARTED);
}
catch (Exception e)
{
log.error("INIT_ERROR", e, this.getClass().getName());
setRunningState(RunningState.ERROR);
}
}
示例5: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
public void start() throws RunningException {
switch (getRunningState())
{
case STARTING:
case STARTED:
return;
}
setRunningState(RunningState.STARTING);
thread = new Thread(this);
thread.setPriority(thread.getPriority()+1);
thread.start();
}
示例6: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@Override
public void start() throws RunningException {
switch (getRunningState())
{
case STARTING:
case STARTED:
case ERROR:
return;
default:
// fall-through
break;
}
setRunningState(RunningState.STARTING);
setup();
try {
connectOBI();
runThread = new WorkerThread();
setRunningState(RunningState.STARTED);
runThread.setName("InboundMLOBIFeatureServiceWorkerThread-"+ featureService + "-" + layerIndex);
runThread.start();
setErrorMessage(null);
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
}
}
示例7: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
public void start() throws RunningException
{
switch (getRunningState())
{
case STARTING:
case STARTED:
case STOPPING:
return;
}
setRunningState(RunningState.STARTING);
applyProperties();
/*
* ConnectionManager takes a Profile to use for new connections.
*/
manager = new ConnectionManager(new Profile(nickName));
/*
* One instance of ConnectionManager can connect to many IRC networks.
* ConnectionManager#requestConnection(String) will return a Session object.
* The Session is the main way users will interact with this library and IRC
* networks
*/
Session session = manager.requestConnection(serverName);
/*
* JerkLib fires IRCEvents to notify users of the lib of incoming events
* from a connected IRC server.
*/
session.addIRCEventListener(this);
}
示例8: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
public void start() throws RunningException
{
switch (getRunningState())
{
case STARTING:
case STARTED:
case STOPPING:
return;
}
setRunningState(RunningState.STARTING);
/*
* ConnectionManager takes a Profile to use for new connections.
*/
manager = new ConnectionManager(new Profile(nickName));
/*
* One instance of ConnectionManager can connect to many IRC networks.
* ConnectionManager#requestConnection(String) will return a Session object.
* The Session is the main way users will interact with this library and IRC
* networks
*/
Session session = manager.requestConnection(serverName);
/*
* JerkLib fires IRCEvents to notify users of the lib of incoming events
* from a connected IRC server.
*/
session.addIRCEventListener(this);
applyProperties();
}
示例9: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
public synchronized void start() throws RunningException {
switch (getRunningState())
{
case STOPPING:
case STOPPED:
case ERROR:
connect();
break;
}
}
示例10: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@Override
public synchronized void start() throws RunningException {
switch (getRunningState()) {
case STOPPING:
case STOPPED:
case ERROR:
connect();
break;
}
}
示例11: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
public synchronized void start() throws RunningException
{
switch (getRunningState())
{
case STOPPING:
case STOPPED:
case ERROR:
connect();
break;
}
}
示例12: update
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@Override
public void update(Observable observable, Object obj)
{
if (obj instanceof RabbitMQTransportEvent)
{
RabbitMQTransportEvent event = (RabbitMQTransportEvent) obj;
switch (event.getStatus())
{
case CREATED:
case RECOVERY:
try
{
start();
}
catch (RunningException e)
{
;
}
break;
case DISCONNECTED:
disconnect("");
break;
case SHUTDOWN:
shutdown();
break;
case RECOVERY_FAILED:
case CREATION_FAILED:
LOGGER.error(event.getDetails());
disconnect(event.getDetails());
setRunningState(RunningState.ERROR);
break;
case RECOVERY_STARTED:
break;
case RECOVERY_COMPLETED:
break;
default:
break;
}
}
}
示例13: start
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
@Override
public synchronized void start() throws RunningException
{
switch (getRunningState())
{
case STOPPING:
case STOPPED:
case ERROR:
connect();
break;
}
}
示例14: notifyInputs
import com.esri.ges.core.component.RunningException; //导入依赖的package包/类
private void notifyInputs(Stream input, String planFolder) throws PropertyException, RunningException
{
TransportProxy tp = input.getTransportProxy();
Transport t = tp.getProxiedTransport();
input.stop();
t.setProperty("inputDirectory", planFolder);
input.start();
}